CVE-2026-45579
JSON

9.9critical

DIRAC: RCE in RequestManager due to eval on untrusted input

Severity
9.9critical CVSS:3.1 by GitHub_M
Exploit likelihood
0.86% (higher than 56% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-9jpv-c7p4-997xPYSEC-2026-3462

Description

DIRAC is an interware, meaning a software framework for distributed computing. Prior to versions 8.0.79, 9.0.22, and 9.1.10, the RequestManagementSystem/Service/ReqManagerHandler.py export_getRequestCountersWeb function passes an authenticated caller-controlled groupingAttribute to RequestManagementSystem/DB/RequestDB.py getRequestCountersWeb. An unrecognized value is resolved against the Request object and evaluated as Python code, allowing a crafted dunder attribute expression to reach operating-system functions and execute commands as the account running the DIRAC services. Successful exploitation can expose dirac.cfg, database passwords, stored proxies, and tokens, fully compromise the DIRAC system, and allow alteration of local log evidence. This issue is fixed in versions 8.0.79, 9.0.22, and 9.1.10.

Affected

Product or packageVersionsReported by
DIRACGrid DIRAC>= 6r0, < 8.0.79, >= 9.0.0a1, < 9.0.22, >= 9.1.0, < 9.1.10CVE List
dirac (PyPI)from 6 before 8.0.79, from 8.1.0a1 before 9.0.22, from 9.1.0 before 9.1.10GitHub Advisory Database, PyPA Advisory Database

All scores

GitHub_M9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
GitHub9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
PyPA Advisory Database9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Classification

CWE-95

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

DIRAC is an interware, meaning a software framework for distributed computing. Prior to versions 8.0.79, 9.0.22, and 9.1.10, the RequestManagementSystem/Service/ReqManagerHandler.py export_getRequestCountersWeb function passes an authenticated caller-controlled groupingAttribute to RequestManagementSystem/DB/RequestDB.py getRequestCountersWeb. An unrecognized value is resolved against the Request object and evaluated as Python code, allowing a crafted dunder attribute expression to reach operating-system functions and execute commands as the account running the DIRAC services. Successful exploitation can expose dirac.cfg, database passwords, stored proxies, and tokens, fully compromise the DIRAC system, and allow alteration of local log evidence. This issue is fixed in versions 8.0.79, 9.0.22, and 9.1.10.

GitHub Advisory Database
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/

References

https://github.com/DIRACGrid/DIRAC/security/advisories/GHSA-9jpv-c7p4-997xweb
https://github.com/DIRACGrid/DIRAC/commit/8ec11072f48103d94e8b7cca831e2c7ce304d6c7web
https://github.com/DIRACGrid/DIRAC/commit/99f1af88b525e69a77f204aebf7d8df3b6056142web
https://github.com/DIRACGrid/DIRAC/commit/a6f75ce5d369254d46ca6f1d39e3f384366fa396web
https://github.com/DIRACGrid/DIRAC/releases/tag/v8.0.79web
https://github.com/DIRACGrid/DIRAC/releases/tag/v9.0.22web
https://github.com/DIRACGrid/DIRAC/releases/tag/v9.1.10web
https://nvd.nist.gov/vuln/detail/CVE-2026-45579advisory
https://github.com/DIRACGrid/DIRACpackage
https://github.com/pypa/advisory-database/tree/main/vulns/dirac/PYSEC-2026-3462.yamlweb
https://pypi.org/project/DIRAC/8.0.79web
https://pypi.org/project/DIRAC/9.0.22web

Sources

SourceRecordLicence
CVE ListCVE-2026-45579 changed 2026-09-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-9jpv-c7p4-997x changed 2026-11-10CC-BY-4.0
NVDCVE-2026-45579 changed 2026-09-30Public domain
PyPA Advisory DatabasePYSEC-2026-3462 changed 2026-07-23CC-BY-4.0