{"id":"CVE-2026-29080","published":"2026-05-06T16:44:54Z","modified":"2026-05-06T17:21:43Z","title":"Rucio SQL Injection in FilterEngine Oracle JSON Path via DID Search API","vendor":"rucio","product":"rucio","tier":"tail","description":{"text":"A SQL injection vulnerability in `FilterEngine.create_sqla_query()` allows any authenticated Rucio user to execute arbitrary SQL against the backend database through the DID search endpoint (`GET /dids/<scope>/dids/search`). On Oracle deployments attacker-controlled filter keys and values are interpolated directly into `sqlalchemy.text()` via Python `.format()`, completely bypassing parameterization. This enables full database compromise including extraction of authentication tokens, password hashes, and all managed data identifiers. This affects versions 1.27.0 and later before 35.8.5, 38.5.5, 39.4.2, and 40.1.1.\n\nThe vulnerability exists in `lib/rucio/core/did_meta_plugins/filter_engine.py` within the `create_sqla_query()` method. When the database dialect is Oracle, filter expressions for JSON metadata columns are constructed using `text()` with Python string formatting. Both `key` and `value` are attacker-controlled strings derived from HTTP query parameters. The `text()` function creates a raw SQL fragment — it does **not** escape or parameterize its contents.\n\nAny authenticated Rucio user can exploit this through the DID search API to execute arbitrary SQL against the backend database. This can expose all managed data identifiers and sensitive tables such as identities, tokens, accounts, rse_settings, and rules, and may allow modification of database contents. The issue affects Oracle deployments using the default json_meta plugin and does not affect PostgreSQL or MySQL deployments using that plugin. \n\nThis vulnerability has been fixed in versions 35.8.5, 38.5.5, 39.4.2, and 40.1.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.4,"severity":"CRITICAL","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00281,"percentile":0.21076,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/rucio/rucio/security/advisories/GHSA-vjr5-c9qv-hgm3","tags":["x_refsource_CONFIRM"]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":4.22},{"name":"CVSS severity","points":6.58}]},"vendorSlug":"rucio","affectedVersions":[{"vendor":"rucio","product":"rucio","versions":[">= 1.27.0, < 35.8.5",">= 35.9.0, < 38.5.5",">= 38.6.0, < 39.4.2",">= 40.0.0, < 40.1.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-05-06T17:21:09.695320Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"rucio","vulnerableRanges":[">=1.27.0, <35.8.5",">=36.0.0, <38.5.5",">=39.0.0, <39.4.2",">=40.0.0, <40.1.1"],"patched":["35.8.5","38.5.5","39.4.2","40.1.1"],"from":["GHSA-vjr5-c9qv-hgm3","PYSEC-2026-528"],"provenance":"source"}],"summary":{"text":"The flaw is a SQL injection in the FilterEngine Oracle JSON path of Rucio, specifically in the create_sqla_query() method of lib/rucio/core/did_meta_plugins/filter_engine.py, which is reached through the DID search API. An attacker with any authenticated Rucio account can send crafted filter keys and values to the DID search endpoint on an Oracle-backed deployment using the default json_meta plugin, where they are interpolated into a raw SQL fragment and executed against the backend database, with no network-position requirement beyond reaching the API and no user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:07Z"},"euvd":{"id":"EUVD-2026-27869","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-29080","published":"2026-05-06","fixed":"40.1.1","kev":false},{"cve":"CVE-2026-29090","published":"2026-05-06","fixed":"40.1.1","kev":false},{"cve":"CVE-2026-58273","published":"2026-11-05","fixed":"41.0.0rc1","kev":false,"link":{"from":"CVE-2026-29080","to":"CVE-2026-58273","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:rucio","fromFixed":"35.8.5","toFixed":"35.9.0","daysApart":183},{"kind":"version-step","provenance":"source","package":"PyPI:rucio","fromFixed":"38.5.5","toFixed":"38.6.0","daysApart":183}]}},{"cve":"CVE-2026-100397","published":"2026-11-17","fixed":"41.1.1","kev":false,"link":{"from":"CVE-2026-29080","to":"CVE-2026-100397","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:rucio","fromFixed":"40.1.1","toFixed":"40.4.2","daysApart":195}]}}],"package":"PyPI:rucio"}}