Skip to main content

Rucio CVE-2026-29090

| EUVDEUVD-2026-27875 CRITICAL
SQL Injection (CWE-89)
2026-05-06 https://github.com/rucio/rucio GHSA-6j7p-qjhg-9947
9.0
CVSS 4.0 · Vendor: https://github.com/rucio/rucio
View

Attack ChainAIDerived

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

  1. Access
    Obtain valid Rucio credentials
  2. Delivery
    Send crafted GET /dids/<scope>/dids/search request with SQL injection in filter parameters
  3. Exploit
    Trigger str.format interpolation in FilterEngine.create_postgres_query
  4. Execution
    Execute stacked queries to extract tokens/identities/credentials tables
  5. Persist
    Crack SHA-256 password hashes or hijack bearer tokens
  6. Impact
    Establish persistent access with elevated privileges

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

Deployment must have explicitly configured the postgres_meta external metadata plugin in the Rucio server configuration (non-default optional feature). Attacker requires valid authentication credentials for any Rucio user account regardless of role or permissions - the vulnerable GET /dids/<scope>/dids/search endpoint is available to all authenticated users. Exploitation is limited to Rucio deployments using PostgreSQL as the metadata backend; MySQL/Oracle/SQLite configurations are not affected by this specific vulnerability. Remote code execution escalation via COPY...FROM PROGRAM requires the PostgreSQL database user to have superuser privileges or specific pg_execute_server_program role - standard least-privilege database configurations limit impact to data exfiltration and modification. File system access via COPY...TO/FROM requires appropriate OS-level permissions for the PostgreSQL process user. Impact severity increases significantly when the same PostgreSQL database and credentials are shared between the metadata plugin and core Rucio infrastructure, enabling lateral movement from metadata compromise to full application compromise.

Impact

Real-world risk assessment reveals critical severity despite limited deployment scope. CVSS 9.9 accurately reflects the technical severity: network-accessible (AV:N), low complexity (AC:L), low privilege requirement (PR:L - any authenticated user), scope change (S:C - database compromise affects resources beyond the vulnerable application), and complete CIA impact. However, actual organizational risk depends heavily on deployment configuration. The vulnerability ONLY affects Rucio installations that explicitly configure the postgres_meta plugin - not default deployments. For affected installations, risk is extreme: authentication requirement (PR:L) is minimal since any valid user account suffices, and the DID search endpoint is standard functionality. The scope change metric is particularly relevant here: successful exploitation compromises not just the metadata plugin but potentially the entire Rucio infrastructure if shared database credentials are used. Attack automation is straightforward once authentication is obtained. The absence of a key derivation function for password hashing means extracted credentials provide persistent access even after token expiration. With vendor-released patches available across all affected version branches (35.8.5, 38.5.5, 39.4.2, 40.1.1), this represents high urgency for affected deployments. No EPSS data available, no CISA KEV listing suggests exploitation is not yet widespread, but the low technical barrier and high impact warrant immediate patching for any deployment using postgres_meta.

Exploit ScenarioDerived

An authenticated attacker with basic Rucio credentials (obtainable via any supported auth method including userpass, x509 certificate, or OIDC) crafts a malicious HTTP GET request to /dids/<scope>/dids/search with SQL injection payloads embedded in filter parameters. The vulnerable FilterEngine.create_postgres_query method interpolates these payloads directly into the PostgreSQL query via str.format, executing attacker-controlled SQL. Using stacked queries, the attacker extracts the tokens table to hijack active admin sessions, dumps rse_settings containing storage endpoint credentials, and exfiltrates identities table password hashes. If the database user has elevated privileges, the attacker uses COPY...FROM PROGRAM to execute system commands on the database server, establishing persistent access. The stolen admin tokens provide immediate elevated access to Rucio's data management functions, while cracked passwords enable long-term persistence.

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

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

Alert me

AnalysisAIv1 – May 06, 2026

SQL injection in Rucio's DID search API allows any authenticated user to execute arbitrary SQL against the PostgreSQL metadata database when the postgres_meta plugin is configured. The vulnerability exists in FilterEngine.create_postgres_query where attacker-controlled filter parameters are interpolated directly into raw SQL via Python str.format. Exploitation enables complete database compromise including extraction of authentication tokens, password hashes (SHA-256 single-iteration, GPU-crackable), storage credentials, and session hijacking. Remote code execution is possible via PostgreSQL COPY...FROM PROGRAM if database privileges permit. CVSS 9.9 (Critical) reflects the scope change and cascading impact across confidentiality, integrity, and availability. No public exploit identified at time of analysis, but attack complexity is low (AC:L) requiring only basic authenticated access.

RemediationAI

Upgrade immediately to patched versions: 35.8.5 (for 1.30.x-35.x branch), 38.5.5 (for 36.x-38.x branch), 39.4.2 (for 39.x branch), or 40.1.1 (for 40.x branch). Patches implement parameterized queries replacing the vulnerable str.format interpolation in FilterEngine.create_postgres_query. Until patching is possible, disable the postgres_meta metadata plugin entirely by removing it from the Rucio server configuration - this eliminates the vulnerable code path while preserving core DID functionality using internal metadata storage. For deployments requiring postgres_meta functionality during remediation windows, implement defense-in-depth: restrict /dids/<scope>/dids/search endpoint access via reverse proxy ACLs to only trusted user populations, apply PostgreSQL REVOKE pg_execute_server_program to the metadata database user to prevent COPY...FROM PROGRAM RCE escalation, run the metadata database connection with minimal privileges (read-only to metadata schema, no superuser), and enable PostgreSQL query logging to detect injection attempts. Note that these compensating controls reduce but do not eliminate risk - privilege restrictions prevent RCE but not data exfiltration. Reference GitHub security advisory GHSA-6j7p-qjhg-9947 for complete remediation guidance and version-specific upgrade paths.

Affected VersionsENISA

rucio 40.0.0, < 40.1.1
rucio 35.9.0, < 38.5.5
rucio 38.6.0, < 39.4.2
rucio 1.30.0, < 35.8.5

Affected Packages

pypi rucio fix: 35.8.5, 38.5.5, 39.4.2, 40.1.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Rucio is a scientific data management framework used by CERN and other research institutions to manage exabyte-scale datasets across distributed storage. The vulnerability resides in the FilterEngine.create_postgres_query method which constructs SQL queries for the DID (Data IDentifier) search endpoint. When the optional postgres_meta external metadata plugin is enabled, user-supplied filter keys and values from GET /dids/<scope>/dids/search requests are passed directly to Python's str.format method without sanitization or parameterization, creating classic CWE-89 SQL injection. PostgreSQL's support for stacked queries and administrative functions (COPY...FROM PROGRAM, file I/O operations) elevates this from data theft to potential RCE. The single-iteration SHA-256 password hashing scheme (mentioned as lacking a proper KDF) compounds the risk by making extracted password hashes trivially crackable with modern GPUs. Affected versions span multiple major releases: 1.30.0-35.8.4, 36.0.0-38.5.4, 39.0.0-39.4.1, and 40.0.0-40.1.0.

Know when PostgreSQL gets its next vulnerability

  • 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/rucio/rucio) PRIMARY 9.0 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (https://github.com/rucio/rucio) · only source for this CVE.

CVSS VectorVendor: https://github.com/rucio/rucio

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

Lifecycle Timeline

2
Patch available
May 06, 2026 - 19:03 EUVD
CVSS changed
May 06, 2026 - 18:22 NVD
9.9 (CRITICAL) 9.0 (CRITICAL)

DescriptionCVE.org

Summary

A SQL injection vulnerability in FilterEngine.create_postgres_query allows any authenticated Rucio user to execute arbitrary SQL against the configured PostgreSQL metadata database through the DID search endpoint (GET /dids/<scope>/dids/search). When the external metadata plugin postgres_meta is configured, attacker-controlled filter keys and values are interpolated directly into raw SQL statements via Python str.format. This enables full database compromise including data exfiltration, data modification, and potential remote code execution via COPY ... FROM PROGRAM.

Details

*Will follow in two weeks (2025-05-19).*

Impact

Vulnerability type: SQL Injection (CWE-89)

Who is impacted:

  • Rucio deployments that have explicitly configured the postgres_meta metadata plugin.

What an attacker can do:

  • Data modification: PostgreSQL stacked queries enable arbitrary INSERT/UPDATE/DELETE operations.
  • Remote code execution: Via PostgreSQL's COPY ... FROM PROGRAM if the database user has superuser or pg_execute_server_program privileges.
  • File system access: Via COPY ... TO/FROM '/path' if filesystem permissions allow.

Further elevation when the same postgres database and access is used for metadata and for Rucio itself

  • Full database read access: Extract any table including identities (password hashes and salts), tokens (active authentication sessions), accounts (user enumeration), rse_settings (storage endpoint credentials), and rules (data management policies) could be extracted.
  • Password hash extraction: Combined with Rucio's use of single-iteration SHA-256 for password hashing (no KDF), extracted hashes can be cracked at GPU speed.
  • Authentication token theft: Active bearer tokens can be extracted and used for immediate session hijacking.

Required attacker privileges: Any authenticated Rucio user. Authentication tokens can be obtained via any supported method (userpass, x509, OIDC, SAML, SSH, GSS). No special roles or administrative permissions are required. The GET /dids/<scope>/dids/search endpoint is available to all authenticated users.

Executive ViewAI

Why It Matters

CVE-2026-29090 is a critical SQL injection vulnerability in Rucio's DID search API that allows authenticated users to completely compromise the PostgreSQL metadata database, including extraction of authentication tokens, credentials, and password hashes. Organizations running Rucio with the postgres_meta plugin configured face immediate risk of data breach and potential lateral movement across dependent systems. This vulnerability requires urgent remediation as no vendor patch is currently available.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable postgres_meta plugin if operationally feasible and switch to alternative metadata backend; (2) Implement network-layer access controls restricting DID search API to trusted internal networks only; (3) Deploy Web Application Firewall (WAF) rules to block SQL injection patterns in filter parameters; (4) Enable PostgreSQL query logging and audit for anomalous SQL patterns; (5) Apply principle of least privilege to PostgreSQL service account to prevent COPY...FROM PROGRAM execution; (6) Implement secrets rotation for all database credentials, API tokens, and storage credentials in metadata store.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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 Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity + public POC available
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

65
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +45
PoC: +20
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.

CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

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