{"id":"CVE-2026-45579","aliases":["PYSEC-2026-3462"],"url":"https://o3.security/vulnerability/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/","published":"2026-07-13T17:20:18Z","modified":"2026-07-23T15:11:46.251064004Z","cvss":{"score":9.9,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":null,"affectedPackages":[{"ecosystem":"PyPI","name":"dirac","fixedVersion":"8.0.79"},{"ecosystem":"PyPI","name":"dirac","fixedVersion":"9.0.22"},{"ecosystem":"PyPI","name":"dirac","fixedVersion":"9.1.10"}],"fix":null,"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-23T15:11:46.251064004Z"}}