SQL injection in Postgresql JDBC Driver - CVE-2026-134842
Published: November 23, 2026
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.