CVE-2026-134842: pgjdbc simple query mode quotes parameters for the wrong standard_conforming_strings value
Vulnerability summary
CVE-2026-134842 is a high (CVSS 8.1) vulnerability in pgjdbc. EPSS estimates a 0.74% chance of exploitation in the next 30 days, higher than 56% of scored vulnerabilities.
Severe, CVSS 8.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 23-11-2026PublishedVulnerability first disclosed.
- 23-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
6 scores · 6 sources · 1 version- NVDNIST8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · WolfiEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · ChainguardEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.74%
Chance of exploitation in the next 30 days
Percentile
56%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard4 products
- flyway< 13.13.0-r3
- flyway-fips< 13.13.0-r1
- keycloak-26.8< 26.8.2-r2
- keycloak-26.8-iamguarded-compat< 26.8.2-r2
Debian1 product
- libpgjavaAll versions (No fix recorded) | < 42.7.15-1
Pgjdbc1 product
- pgjdbc< 42.7.15
Ubuntu1 product
- libpgjavaAll versions (No fix recorded)
Wolfi1 product
- flyway< 13.13.0-r3
5 vendors · 8 products
References
8 links- github.com/pgjdbc/pgjdbcPACKAGE