cve.bz

CVE-2026-29090

9.0 criticalEPSS 0.3%

Critical (9.0) in cern rucio. EPSS 0.3% chance of exploitation in the next 30 days. Fixed in rucio 35.8.5, 38.5.5, 39.4.2.

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

Severity

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

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
EPSS
0.3% chance of exploitation in the next 30 days; higher than 22% of CVEs (scores of 2026-10-31)
CWE
CWE-89
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-6j7p-qjhg-9947PyPIrucio>=1.30.0 <35.8.535.8.5
GHSA-6j7p-qjhg-9947PyPIrucio>=36.0.0 <38.5.538.5.5
GHSA-6j7p-qjhg-9947PyPIrucio>=39.0.0 <39.4.239.4.2
GHSA-6j7p-qjhg-9947PyPIrucio>=40.0.0 <40.1.140.1.1
PYSEC-2026-527PyPIrucio>=1.30.0 <35.8.5
>=36.0.0 <38.5.5
>=39.0.0 <39.4.2
>=40.0.0 <40.1.1
35.8.5, 38.5.5, 39.4.2, 40.1.1

References

Check your stackJSON