CVE-2026-45579: DIRAC Remote Code Execution Vulnerability

CRITICAL
Advisory Identifier: GHSA-9jpv-c7p4-997x
CVSS 9.9
CWE-95
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-45579
GHSA Identifier GHSA-9jpv-c7p4-997x
Severity CRITICAL
CVSS v3.1 Base Score 9.9
CWE Classification CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
Affected Product DIRAC
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (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.

DIRAC fixed: 8.0.79
pip install DIRAC>=8.0.79
DIRAC fixed: 9.0.22
pip install DIRAC>=9.0.22
DIRAC fixed: 9.1.10
pip install DIRAC>=9.1.10
Verify Direct and Transitive Dependencies

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

### 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/

CVE-2026-45579 Affected DIRAC Versions

3 component(s)
Fixed Versions:
8.0.799.0.229.1.10
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?
CVE-2026-45579 is a security vulnerability in DIRAC involving DIRAC is vulnerable to RCE in RequestManager due to eval on untrusted input under CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection').
Which DIRAC versions are affected?
Affected versions include releases prior to 8.0.79, 9.0.22, 9.1.10 across affected packages: DIRAC.
What version fixes CVE-2026-45579?
Upgrading to 8.0.79, 9.0.22, 9.1.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is DIRAC affected?
Yes, DIRAC is affected in releases prior to 8.0.79, 9.0.22, 9.1.10. Upgrade your dependency to 8.0.79, 9.0.22, 9.1.10 or later.
What is the CVSS score of CVE-2026-45579?
CVE-2026-45579 has a CVSS v3.1 base score of 9.9 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-45579?
CVE-2026-45579 is classified under CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') (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").).
How can I check PyPI dependencies for CVE-2026-45579?
Run the dependency tree command: 'pip show DIRAC'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}