PT-2026-38087 · Postgresql Global Development Group+1 · Postgresql+1

Mistz1

·

Published

2026-05-06

·

Updated

2026-05-06

·

CVE-2026-29090

CVSS v4.0

9.0

Critical

VectorAV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Name of the Vulnerable Software and Affected Versions Rucio versions 1.30.0 through 35.8.4 Rucio versions 38.x through 38.5.4 Rucio versions 39.x through 39.4.1 Rucio versions 40.x through 40.1.0
Description An issue exists in the FilterEngine.create postgres query() function where authenticated users can execute arbitrary SQL against the PostgreSQL metadata database. This occurs when the postgres meta metadata plugin is configured, as attacker-controlled filter keys and values are interpolated directly into raw SQL strings using Python .format(), which are then processed as trusted syntax by psycopg3's sql.SQL(). The flaw is accessible via the 'GET /dids//dids/search' endpoint. Depending on database privileges, this can lead to the exposure of sensitive tables (such as identities, tokens, accounts, rse settings, and rules), modification or deletion of metadata, access to server-side files, or remote code execution through the COPY ... FROM PROGRAM feature. Password hashes may also be extracted and cracked due to the use of single-iteration SHA-256 without a Key Derivation Function (KDF), a method used to strengthen passwords before hashing.
Recommendations Update to version 35.8.5. Update to version 38.5.5. Update to version 39.4.2. Update to version 40.1.1. As a temporary mitigation, restrict access to the 'GET /dids//dids/search' endpoint or disable the postgres meta metadata plugin.

Fix

SQL injection

Weakness Enumeration

Related Identifiers

CVE-2026-29090
GHSA-6J7P-QJHG-9947

Affected Products

Postgresql
Rucio