Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as DIRAC grid user
-
DeliveryCall FileCatalog checkDataset with crafted datasets
-
ExploitInject SQL into __checkDataset f-string query
-
ExecutionReturn attacker-controlled value into eval()
-
PersistExecute arbitrary Python on server
-
ImpactExfiltrate dirac.cfg, DB passwords, proxies and tokens
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a valid authenticated DIRAC account (CVSS PR:L) able to reach the FileCatalog service over the network and invoke the checkDataset / DatasetManager dataset-checking operation - the vulnerable path is the __checkDataset f-string query whose result is passed to eval(). No user interaction, no non-default configuration, and no elevated privilege is needed beyond ordinary authenticated access; the injectable parameter is the user-controlled datasets argument. Limiting factor: the attacker must hold credentials on the DIRAC installation (it is not remote-unauthenticated), so the realistic threat population is the collaboration's authorized grid users and anyone who obtains such credentials. |
| Impact | This is a genuine high priority, not an inflated CVSS. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H, 9.9) is internally consistent with the description: network-reachable service, low complexity, only low privileges required (any authenticated DIRAC user), no user interaction, and a scope change because compromising the service host exposes credentials for the whole grid. The vendor's stated impact - reading dirac.cfg, harvesting database passwords, and exporting all stored user proxies and tokens, plus log tampering to erase evidence - supports C:H/I:H/A:H. No EPSS score, KEV entry, or POC was provided, so probability of widespread opportunistic exploitation cannot be quantified from the data; however, exploitation prerequisites are low (valid credentials on a system whose whole purpose is multi-user job submission), and the advisory pinpoints exact vulnerable lines, lowering the barrier to weaponization. The main mitigating factor is PR:L: the attacker must already be an authenticated grid user, which is a large but not unrestricted population in a collaboration. No SSVC decision data was supplied. |
| Exploit ScenarioDerived | An authenticated grid user calls the FileCatalog checkDataset operation with a crafted datasets value containing SQL injection that makes the query return a malicious Python expression; when DIRAC eval()s that result, the attacker's code runs on the FileCatalog server. From there they read dirac.cfg, extract database passwords, export all stored user proxies and tokens for lateral movement across the grid, and can wipe local logs to hide the intrusion. No public POC was provided, but the advisory identifies the exact vulnerable lines, making exploit development straightforward. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 13, 2026
Remote code execution in DIRAC (Distributed Infrastructure with Remote Agent Control) grid middleware lets any authenticated user run arbitrary commands on the server through the FileCatalog DatasetManager. A SQL injection (CWE-89) in the checkDataset code path lets the attacker control a value that is fed directly into a Python eval(), turning a data-layer flaw into full server compromise. Rated CVSS 9.9 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H); no public exploit identified at time of analysis, though the vendor advisory names the exact vulnerable source lines.
RemediationAI
Upgrade to a fixed release matching your branch: Vendor-released patch: 8.0.79 (for the 6.x-8.0.x line, https://pypi.org/project/DIRAC/8.0.79/), 9.0.22 (for the 8.1.0a1-9.0.x line, https://pypi.org/project/DIRAC/9.0.22/), or 9.1.10 (for the 9.1.x line, https://pypi.org/project/DIRAC/9.1.10/). Full details are in advisory GHSA-m4m7-4cw8-62j6. If immediate patching is impossible, restrict who can reach and authenticate to the FileCatalog service and treat the dataset-checking endpoints as untrusted: limit the DatasetManager/FileCatalog service to trusted, audited users and network segments, and monitor its DB queries for injection patterns - note this reduces but does not eliminate risk since any authenticated user is in scope. Because credentials on the host may already be exposed, after patching rotate the FileCatalog database passwords and re-issue/revoke any proxies and tokens that could have been exported, and review logs (kept off the compromised host where possible, given the advisory's note that local logs can be tampered with).
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in pypi, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
DIRAC is Python-based grid computing middleware widely used by large scientific collaborations (notably the LHCb experiment at CERN and other high-energy physics/WLCG communities) to manage distributed workloads and data across sites. The flaw is in the DataManagementSystem FileCatalog: FileCatalogHandler.checkDataset passes the user-supplied datasets argument to DatasetManager.__checkDataset, which builds a SQL query using an unescaped Python f-string (CWE-89, SQL Injection). Because DIRAC then passes the query result straight into eval() (line 409 of DatasetManager.py in commit f7e0a3a), an attacker who controls the injected SQL result also controls the string that Python evaluates, chaining classic injection into arbitrary code execution. The advisory notes other functions in the same file follow the same result-into-eval pattern and are likely similarly exploitable.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Network-reachable service exploitable by any authenticated user (PR:L) with no interaction; SQLi-to-eval yields full host compromise and credential theft crossing security scope (S:C, C/I/A:H).
Primary rating from Vendor (https://github.com/DIRACGrid/DIRAC).
CVSS VectorVendor: https://github.com/DIRACGrid/DIRAC
DescriptionCVE.org
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/
Executive ViewAI
DIRAC grid middleware contains a critical remote code execution vulnerability that allows any authenticated user to bypass security controls and execute arbitrary commands on the server. The flaw combines SQL injection with Python code evaluation in the FileCatalog DatasetManager, enabling complete system compromise. Organizations operating DIRAC infrastructure face immediate risk of data exfiltration, system manipulation, and denial of service across their computational grid.
No vendor-released patch identified at time of analysis. Interim mitigations include: restrict FileCatalog network access to trusted subnets and authenticated users only; implement real-time alerting on checkDataset function calls; deploy Web Application Firewall rules to block SQL injection payloads; disable or restrict the remote command execution capability if your DIRAC operations do not require it; apply code-level input sanitization upstream of the vulnerable eval() function if feasible through your DIRAC distribution; and maintain offline backups isolated from the DIRAC grid to enable rapid recovery if compromise is detected.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-78896
GHSA-m4m7-4cw8-62j6
NVD
CVE.org
EPSS
Exploit-DB