Skip to main content

DIRAC EUVDEUVD-2026-78896

| CVE-2026-61667 CRITICAL
SQL Injection (CWE-89)
2026-07-13 https://github.com/DIRACGrid/DIRAC GHSA-m4m7-4cw8-62j6 PYSEC-2026-3463
9.9
CVSS 3.1 · Vendor: https://github.com/DIRACGrid/DIRAC
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as DIRAC grid user
  2. Delivery
    Call FileCatalog checkDataset with crafted datasets
  3. Exploit
    Inject SQL into __checkDataset f-string query
  4. Execution
    Return attacker-controlled value into eval()
  5. Persist
    Execute arbitrary Python on server
  6. Impact
    Exfiltrate 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

DIRAC 9.0.0a1, < 9.0.22
DIRAC 6r0, < 8.0.79
DIRAC 9.1.0, < 9.1.10

Affected Packages

pypi dirac fix: 8.0.79, 9.0.22, 9.1.10
euvd dirac_6r0 fix: 8.0.79
euvd dirac_9_0_0a1 fix: 9.0.22

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

Vendor (https://github.com/DIRACGrid/DIRAC) PRIMARY 9.9 CRITICAL
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 9.9 CRITICAL

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

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (https://github.com/DIRACGrid/DIRAC).

CVSS VectorVendor: https://github.com/DIRACGrid/DIRAC

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.7%
Top 50% exploitable
Prevalence
Low
niche scientific grid middleware used mainly by HEP/WLCG collaborations
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

51
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +50
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy