Vulnerability · Published May 6, 2026 · Assigned by GitHub_M
CVE-2026-29090Rucio SQL injection in postgres_meta DID search path compromises PostgreSQL metadata database
Critical 9.0
In plain English
A critical-severity SQL injection in rucio from rucio. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 23% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | rucio | 35.8.5 | GHSA-6j7p-qjhg-9947 |
| PyPI | rucio | 38.5.5 | GHSA-6j7p-qjhg-9947 |
| PyPI | rucio | 39.4.2 | GHSA-6j7p-qjhg-9947 |
| PyPI | rucio | 40.1.1 | GHSA-6j7p-qjhg-9947 |
| PyPI | rucio | 35.8.5, 38.5.5, 39.4.2, 40.1.1 | PYSEC-2026-527 |
Affected products (as reported)
Weakness: CWE-89 · 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
References
- https://github.com/rucio/rucio/security/advisories/GHSA-6j7p-qjhg-9947 x_refsource_CONFIRM