SQL injection in PostgreSQL - CVE-2026-6638

 

SQL injection in PostgreSQL - CVE-2026-6638

Published: May 14, 2026


Vulnerability identifier: #VU131464
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-6638
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: PostgreSQL Global Development Group
Affected software:
PostgreSQL

Detailed vulnerability description

The vulnerability allows a remote user to execute arbitrary SQL with the subscription's publication-side credentials.

The vulnerability exists due to SQL injection in ALTER SUBSCRIPTION ... REFRESH PUBLICATION when processing a table name. A remote user can create a crafted subscriber table name to execute arbitrary SQL with the subscription's publication-side credentials.

User interaction is required for the next REFRESH PUBLICATION to occur.


How to mitigate CVE-2026-6638

Install security update from vendor's website.

Sources