Vulnerability details
CVE-2026-29090
Rucio SQL injection in postgres_meta DID search path compromises PostgreSQL metadata database
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.
CVSS scores
| Score | Version | Source | Vector |
|---|---|---|---|
| 9.0Critical | 4.0 | CVEProject cvelistV5 (CNA) (GitHub_M) | 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 |
Affected products
| Vendor | Product | Versions | Source |
|---|---|---|---|
| rucio | rucio | >= 1.30.0, < 35.8.5 | CVEProject cvelistV5 (CNA) |
| rucio | rucio | >= 35.9.0, < 38.5.5 | CVEProject cvelistV5 (CNA) |
| rucio | rucio | >= 38.6.0, < 39.4.2 | CVEProject cvelistV5 (CNA) |
| rucio | rucio | >= 40.0.0, < 40.1.1 | CVEProject cvelistV5 (CNA) |
References and advisories
1- https://github.com/rucio/rucio/security/advisories/GHSA-6j7p-qjhg-9947 x_refsource_CONFIRM
Details
- Published
- 2026-05-06
- Last updated
- 2026-05-06
- State
- Published
- Assigner (CNA)
- GitHub_M
Exploit prediction (EPSS)
SSVC assessment (CISA)
- Automatable
- No
- Exploitation
- None
- Technical impact
- Total
Weaknesses (CWE)
- CWE-89Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')