Loading...
Skip to main content

CVE-2026-45579 — DIRAC is vulnerable to RCE in dirac — CVE Details

CRITICAL

DIRAC is vulnerable to RCE in RequestManager due to eval on untrusted input

Published July 13, 2026Updated July 23, 2026Source: osv

Summary

### Summary An 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. ### Details The export_getRequestCountersWeb function is callable by any authenticated user and just passes its parameters directly to the database instance: https://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/RequestManagementSystem/Service/ReqManagerHandler.py#L270 If the groupingAttribute string is unrecognised, `Request.` is prepended to it and the result is passed into an `eval()` call: https://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/RequestManagementSystem/DB/RequestDB.py#L766-L776 By 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. There are other uses of eval in ReqManager/RequestDB which may be equally accessible. ### Impact This 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). ### Patched versions: https://pypi.org/project/DIRAC/8.0.79/ https://pypi.org/project/DIRAC/9.0.22/ https://pypi.org/project/DIRAC/9.1.10/

Advisory Timeline

  • First published July 13, 2026 (91 days ago).
  • Last revised July 23, 2026 — 10 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

pip
Update dirac to 8.0.79 or later
pip install "dirac>=8.0.79"
pip
Update dirac to 9.1.10 or later
pip install "dirac>=9.1.10"
pip
Update dirac to 9.0.22 or later
pip install "dirac>=9.0.22"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: pypi (1).

PackageEcosystemAffectedFixed In
dirac
pypi
7.2.0, 7.2.0a32, 7.2.0a33, 7.2.0a34 (+217 more)8.0.79
dirac
pypi
9.1.0, 9.1.1, 9.1.2, 9.1.3 (+6 more)9.1.10
dirac
pypi
8.1.0a1, 8.1.0a10, 8.1.0a11, 8.1.0a12 (+101 more)9.0.22

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2026-45579?
DIRAC is vulnerable to RCE in RequestManager due to eval on untrusted input This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
How do I check if my project is affected by CVE-2026-45579?
CVE-2026-45579 affects dirac. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-45579 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.9

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-9jpv-c7p4-997x
PYSEC-2026-3462

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies