Improper Neutralization of Special Elements in Output Used by a Downstream Component in PostgreSQL - CVE-2026-6464

 

Improper Neutralization of Special Elements in Output Used by a Downstream Component in PostgreSQL - CVE-2026-6464

Published: August 15, 2026


Vulnerability identifier: #VU142646
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-6464
CWE-ID: CWE-74
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute psql commands.

The vulnerability exists due to untrusted data inclusion in psql COPY FROM STDIN handling when a COPY FROM STDIN or \\copy FROM STDIN command fails before the server indicates that it awaits input rows. A remote attacker can trigger an early failure so that in-line data rows are processed as psql commands to execute psql commands.

A complete attack requires control of both the server and the data rows, although an attacker controlling only the data rows might succeed if a coincidental error occurs.


Affected software

PostgreSQL
Debian Linux
postgresql-17 (Debian package)

How to mitigate CVE-2026-6464

Install security update from vendor's website.

PostgreSQL - addressed in versions 14.24, 15.19, 16.15, 17.11, 18.5
postgresql-17 (Debian package) - update to 17.11-0+deb13u1

External References

Related Security Bulletins