# CVE-2026-29080: Rucio SQL Injection in FilterEngine Oracle JSON Path via DID Search API

- Severity: Critical 9.4 (CVSS:4.0, scored by GitHub_M) `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`
- 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.28%, higher than 22% of CVEs (2026-12-01)
- Published: 2026-05-06T16:42:49.000Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-vjr5-c9qv-hgm3, PYSEC-2026-528
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

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

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

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.27.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.27.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.27.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.4 Critical `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`
- 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:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`
- 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:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://github.com/rucio/rucio/security/advisories/GHSA-vjr5-c9qv-hgm3> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-29080> (advisory)
- <https://github.com/advisories/GHSA-vjr5-c9qv-hgm3> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/rucio/PYSEC-2026-528.yaml> (web)
- <https://github.com/rucio/rucio> (package)
- <https://pypi.org/project/rucio> (package, web)

## Sources

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

---

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