Skip to content
OpenAdvisories
High · 8.1 CVE-2026-134842 EUVD-2026-133247

pgjdbc simple query mode quotes parameters for the wrong standard_conforming_strings value

Published Nov 23, 2026 · Updated Nov 23, 2026 · Assigned by PostgreSQL

Description

pgjdbc, the PostgreSQL JDBC Driver, can quote a string parameter for the wrong value of standard_conforming_strings when preferQueryMode=simple is set. A statement, trigger or configuration reload can turn the setting off during a session. A parameter value with a backslash and a quote then ends the literal, and the rest of the value runs as SQL. Before 42.7.6 any session with the setting off was affected. The statement cache can also reuse a parse made under the other setting. With allowEncodingChanges=true and the EUC_JP or SJIS client encoding, the yen sign acts as a backslash. All versions before 42.7.15 are affected, and 42.7.15 fixes the problem.

Affected products

VendorProductAffectedFixed
pgjdbc pgjdbc < 42.7.15 42.7.15

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libpgjava No fix yet —
Debian 13 libpgjava No fix yet —
Debian 12 libpgjava No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libpgjava No fix yet —
Ubuntu 26.04 LTS libpgjava No fix yet —
Ubuntu 24.04 LTS libpgjava No fix yet —
Ubuntu 22.04 LTS libpgjava No fix yet —
Ubuntu 16.04 LTS libpgjava No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS libpgjava No fix yet —
Ubuntu Pro 20.04 LTS libpgjava No fix yet —
Ubuntu Pro 18.04 LTS libpgjava No fix yet —

Advisories 1

References