Loading...
Skip to main content

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

CRITICAL

DIRAC is vulnerable to RCE in FileCatalog DatasetManager via SQL injection + eval

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

Summary

### Summary The FileCatalog DatasetManager runs a query on the database and passes the result to eval. The SQL query contains an injection vulnerability which allows an authenticated user to control the parameter returned to the eval resulting in remote code execution. ### Details The FileCatalog checkDataset function passes its datasets argument directly to the backend DB handler: https://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/Service/FileCatalogHandler.py#L591-L593 Which in turn passes it to the __checkDataset function: https://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DatasetManager/DatasetManager.py#L390 This uses an f-string to create a query without escaping, resulting in an SQL injection: https://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DatasetManager/DatasetManager.py#L400-L402 The result (which is user controllable due to the SQL injection) is passed into eval almost immediately on return, leading to code execution: https://github.com/DIRACGrid/DIRAC/blob/f7e0a3ac153315030fb3520e8ca747f013758967/src/DIRAC/DataManagementSystem/DB/FileCatalogComponents/DatasetManager/DatasetManager.py#L409 There are other functions in the same file which use a similar pattern and would likely be exploitable in a similar way. ### 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. ### 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-61667?
DIRAC is vulnerable to RCE in FileCatalog DatasetManager via SQL injection + eval 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-61667?
CVE-2026-61667 affects dirac. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-61667 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-m4m7-4cw8-62j6
PYSEC-2026-3463

Related CVEs

Check if you're affected

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

Scan Your Dependencies