SQL injection in Postgresql JDBC Driver - CVE-2026-134842

 

SQL injection in Postgresql JDBC Driver - CVE-2026-134842

Published: November 23, 2026


Vulnerability identifier: #VU169758
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-134842
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary SQL with the privileges of the application's database role.

The vulnerability exists due to improper SQL literal handling in pgjdbc when simple query mode quotes parameters or reuses cached parses under a mismatched standard_conforming_strings setting, or when character encoding changes how the server interprets escaping in simple query mode or PGConnection.escapeLiteral. A remote attacker can supply a crafted string value that the server interprets as SQL rather than data to execute arbitrary SQL with the application's database privileges.


Affected software

Postgresql JDBC Driver

How to mitigate CVE-2026-134842

Install security update from vendor's website.

Postgresql JDBC Driver - update to 42.7.15

External References

Related Security Bulletins