<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Cve-2026-61667 - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/cve-2026-61667/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Mon, 13 Jul 2026 18:41:36 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/cve-2026-61667/feed.xml" rel="self" type="application/rss+xml"/><item><title>DIRAC Vulnerable to Remote Code Execution via SQL Injection and Eval in DatasetManager</title><link>https://feed.craftedsignal.io/briefs/2026-07-dirac-rce/</link><pubDate>Mon, 13 Jul 2026 18:41:36 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-dirac-rce/</guid><description>An authenticated user can achieve remote code execution in DIRAC's FileCatalog DatasetManager due to an SQL injection vulnerability (CVE-2026-61667) that allows manipulation of query results passed to an `eval` function, leading to full system compromise.</description><content:encoded><![CDATA[<p>A critical remote code execution vulnerability, tracked as CVE-2026-61667, has been identified in DIRAC's FileCatalog DatasetManager. This vulnerability allows an authenticated user to execute arbitrary code on the server by combining an SQL injection flaw with the improper use of Python's <code>eval</code> function. Specifically, the <code>checkDataset</code> function in <code>FileCatalogHandler.py</code> passes user-controlled input directly into an SQL query without proper escaping, leading to injection. The malicious SQL injection can manipulate the database query's result, which is subsequently passed to <code>eval</code> in <code>DatasetManager.py</code>, granting an attacker full control over the system. This allows for reading sensitive configuration files, exfiltrating database passwords, and compromising stored proxies and tokens, with the potential to also erase exploit evidence from logs. Patched versions are available for DIRAC 8.0.79, 9.0.22, and 9.1.10.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An authenticated attacker initiates a request to the DIRAC system, targeting the <code>FileCatalog.checkDataset</code> function.</li>
<li>The attacker crafts a malicious <code>datasets</code> argument containing an SQL injection payload and sends it to the backend database handler.</li>
<li>The <code>__checkDataset</code> function in <code>DatasetManager.py</code> constructs an SQL query using an f-string with the unescaped, user-controlled <code>datasets</code> argument, creating an SQL injection vulnerability.</li>
<li>The injected SQL payload is designed to manipulate the query's result set, inserting arbitrary Python code that the attacker wishes to execute.</li>
<li>The database executes the modified query and returns the manipulated result, which now contains the attacker's arbitrary Python code.</li>
<li>The <code>DatasetManager.py</code> module immediately passes this returned, attacker-controlled result to Python's <code>eval</code> function.</li>
<li>The <code>eval</code> function executes the attacker's arbitrary Python code with the privileges of the DIRAC application.</li>
<li>Remote code execution is achieved, allowing the attacker to perform actions such as reading <code>dirac.cfg</code>, exfiltrating database credentials, and deleting log evidence.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-61667 grants any authenticated user the ability to execute arbitrary commands on the DIRAC server, leading to a complete compromise of the system. Attackers can read sensitive configuration files like <code>dirac.cfg</code>, extract database passwords, and exfiltrate all stored proxies and tokens, thereby gaining extensive access to the environment. Furthermore, if local logging is employed, the attacker can leverage this RCE to remove evidence of their activities, hindering incident response and forensic investigations. The vulnerability affects multiple versions of DIRAC, specifically versions from 6 up to 8.0.79, 8.1.0a1 up to 9.0.22, and 9.1.0 up to 9.1.10.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Immediately update all affected DIRAC installations to a patched version (8.0.79, 9.0.22, or 9.1.10) as listed in the advisory to remediate CVE-2026-61667.</li>
<li>Ensure proper input validation and parameterized queries are implemented for all database interactions within applications to prevent similar SQL injection vulnerabilities.</li>
<li>Implement robust logging and monitoring for critical application functions and ensure logs are forwarded to a secure, immutable log management system to prevent tampering, as attackers can remove evidence if local logging is used.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>remote-code-execution</category><category>sql-injection</category><category>python</category><category>web-application</category><category>vulnerability</category><category>cve-2026-61667</category></item></channel></rss>