# CVE-2026-29090: Rucio SQL injection in postgres_meta DID search path compromises PostgreSQL metadata database

- Severity: Critical 9.0 (CVSS:4.0, scored by 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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.54%, higher than 39% of CVEs (2026-11-30)
- Published: 2026-05-06T16:44:07.000Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-6j7p-qjhg-9947, PYSEC-2026-527
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- rucio rucio: >= 1.30.0, < 35.8.5; >= 35.9.0, < 38.5.5; >= 38.6.0, < 39.4.2; >= 40.0.0, < 40.1.1
- rucio (PyPI): from 1.30.0 before 35.8.5; from 36.0.0 before 38.5.5; from 39.0.0 before 39.4.2; from 40.0.0 before 40.1.1
- cern rucio: from 1.30.0 before 35.8.5; from 36.0.0 before 38.5.5; from 39.0.0 before 39.4.2; from 40.0.0 before 40.1.1

## Every score

- GitHub_M: CVSS:4.0 9.0 Critical `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`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `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> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-29090> (advisory)
- <https://github.com/advisories/GHSA-6j7p-qjhg-9947> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/rucio/PYSEC-2026-527.yaml> (web)
- <https://github.com/rucio/rucio> (package)
- <https://pypi.org/project/rucio> (package, web)

## Sources

- CVE List: [CVE-2026-29090](https://www.cve.org/CVERecord?id=CVE-2026-29090), CVE Terms of Use, modified 2026-05-06
- GitHub Advisory Database: [GHSA-6j7p-qjhg-9947](https://github.com/advisories/GHSA-6j7p-qjhg-9947), CC-BY-4.0, modified 2026-06-30
- NVD: [CVE-2026-29090](https://nvd.nist.gov/vuln/detail/CVE-2026-29090), Public domain, modified 2026-11-11
- PyPA Advisory Database: [PYSEC-2026-527](https://osv.dev/vulnerability/PYSEC-2026-527), CC-BY-4.0, modified 2026-07-02

---

Page: https://cve.day/CVE-2026-29090 · Whole record: https://cve.day/CVE-2026-29090.json · Rebuilt by cve.day 2026-11-25T22:59:20.781Z
