CVE-2026-45579: DIRAC Remote Code Execution Vulnerability
CRITICALCVE-2026-45579 is a CRITICAL (CVSS 9.9) remote code execution vulnerability (CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')) affecting DIRAC libraries in the PyPI ecosystem. The issue involves dirac is vulnerable to rce in requestmanager due to eval on untrusted input. Remediation is available by upgrading affected packages to version 8.0.79, 9.0.22, 9.1.10.
CVE-2026-45579 at a Glance
Security Impact
CVSS: 9.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H).
How to Fix CVE-2026-45579
To remediate this vulnerability, upgrade all affected DIRAC dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install DIRAC>=8.0.79
pip install DIRAC>=9.0.22
pip install DIRAC>=9.1.10
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show DIRAC
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-45579, inspect your installed packages using pip:
pip show DIRAC
Analyze the terminal output to locate any version of DIRAC in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.0.79), your application is affected.
Note: The pip show DIRAC command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection'), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval"). In DIRAC, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-45579 Affected DIRAC Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
DIRAC
|
PyPI |
≥ 6
< 8.0.79
|
8.0.79
|
|
DIRAC
|
PyPI |
≥ 8.1.0a1
< 9.0.22
|
9.0.22
|
|
DIRAC
|
PyPI |
≥ 9.1.0
< 9.1.10
|
9.1.10
|
References
Frequently Asked Questions
What is CVE-2026-45579?
Which DIRAC versions are affected?
What version fixes CVE-2026-45579?
Is DIRAC affected?
What is the CVSS score of CVE-2026-45579?
What CWE is associated with CVE-2026-45579?
How can I check PyPI dependencies for CVE-2026-45579?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9jpv-c7p4-997x",
"modified" : "2026-07-13T17:20:19Z",
"published" : "2026-07-13T17:20:18Z",
"aliases" : [ "CVE-2026-45579" ],
"summary" : "DIRAC is vulnerable to RCE in RequestManager due to eval on untrusted input",
"details" : "### Summary\nAn remote code execution vulnerability exists in RequestManager due to the use of eval on untrusted input that allows any authenticated user to run code/commands on the DIRAC server as the system user running the DIRAC services.\n\n### Details\nThe export_getRequestCountersWeb function is callable by any authenticated user and just passes its parameters directly to the database instance:\nhttps://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/RequestManagementSystem/Service/ReqManagerHandler.py#L270\n\nIf the groupingAttribute string is unrecognised, `Request.` is prepended to it and the result is passed into an `eval()` call:\nhttps://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/RequestManagementSystem/DB/RequestDB.py#L766-L776\n\nBy passing in a dunder string that is applicable to the Request object, it's possible to work back up to functions in the os module and trigger them to be called in the server context.\n\nThere are other uses of eval in ReqManager/RequestDB which may be equally accessible.\n\n### Impact\nThis allows any authenticated user to run commands on the server, which allows a full compromise of the DIRAC system (they can read the local dirac.cfg, get database passwords and export all stored proxies and tokens). If local logging is used, they can also remove evidence of the exploit from the log (it leaves an exception printout in the RequestManager log when used).\n\n### Patched versions:\nhttps://pypi.org/project/DIRAC/8.0.79/\nhttps://pypi.org/project/DIRAC/9.0.22/\nhttps://pypi.org/project/DIRAC/9.1.10/",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "DIRAC"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6"
}, {
"fixed" : "8.0.79"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "DIRAC"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.1.0a1"
}, {
"fixed" : "9.0.22"
} ]
} ]
}, {
"package" : {
"ecosystem" : "PyPI",
"name" : "DIRAC"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "9.1.0"
}, {
"fixed" : "9.1.10"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/DIRACGrid/DIRAC/security/advisories/GHSA-9jpv-c7p4-997x"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/DIRACGrid/DIRAC"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/DIRAC/8.0.79"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/DIRAC/9.0.22"
}, {
"type" : "WEB",
"url" : "https://pypi.org/project/DIRAC/9.1.10"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-95" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-13T17:20:18Z",
"nvd_published_at" : null
}
}