{"id":"CVE-2026-29090","published":"2026-05-06T17:21:24Z","modified":"2026-05-06T18:17:58Z","title":"Rucio SQL injection in postgres_meta DID search path compromises PostgreSQL metadata database","vendor":"rucio","product":"rucio","tier":"tail","description":{"text":"### 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9,"severity":"CRITICAL","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00301,"percentile":0.23399,"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-6j7p-qjhg-9947","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.0,"factors":[{"name":"EPSS percentile","points":4.68},{"name":"CVSS severity","points":6.3}]},"vendorSlug":"rucio","affectedVersions":[{"vendor":"rucio","product":"rucio","versions":[">= 1.30.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-06T18:17:46.352636Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"rucio","vulnerableRanges":[">=1.30.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-6j7p-qjhg-9947","PYSEC-2026-527"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-27875","exploited":false,"provenance":"source"}}