String Parameter Misconfiguration in PostgreSQL JDBC Driver
CVE-2026-134842

8.1HIGH

Key Information:

Vendor

Pgjdbc

Status
Vendor
CVE Published:
23 November 2026

What is CVE-2026-134842?

The PostgreSQL JDBC Driver may incorrectly quote a string parameter when the 'preferQueryMode' is set to 'simple' and the 'standard_conforming_strings' value is misconfigured. As a result, if the setting is disabled during a session, a backslash and a quote can prematurely terminate the string literal, leading to potential SQL injection vulnerabilities. This flaw can be exacerbated by specific client encodings, particularly with 'allowEncodingChanges' set to true, where the yen sign acts as a backslash. Versions prior to 42.7.15 are vulnerable, but the issue has been addressed in newer releases.

Affected Version(s)

pgjdbc 0 < 42.7.15

References

CVSS V3.1

Score:
8.1
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Anthropic OSS Scanner (ANT-2026-CPJGFCH9)
Anthropic OSS Scanner (ANT-2026-H4KGSOTO)
Anthropic OSS Scanner (ANT-2026-JZYBNC5Y)
.