{"api_version":"1","generated_at":"2026-11-23T18:16:33+00:00","cve":"CVE-2026-134842","urls":{"html":"https://cve.report/CVE-2026-134842","api":"https://cve.report/api/cve/CVE-2026-134842.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-134842","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-134842"},"summary":{"title":"pgjdbc simple query mode quotes parameters for the wrong standard_conforming_strings value","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.","state":"PUBLISHED","assigner":"PostgreSQL","published_at":"2026-11-23 17:17:49","updated_at":"2026-11-23 17:17:49"},"problem_types":["CWE-89","CWE-89 CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"],"metrics":[{"version":"3.1","source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","type":"Secondary","score":"8.1","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"8.1","severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-6rxc-3r4p-gpff","name":"https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-6rxc-3r4p-gpff","refsource":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-134842","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-134842","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"pgjdbc","product":"pgjdbc","version":"affected 42.7.15 maven","platforms":[]}],"timeline":[{"source":"CNA","time":"2026-10-16T00:00:00.000Z","lang":"en","value":"Reported by Anthropic OSS Scanner (ANT-2026-CPJGFCH9)."},{"source":"CNA","time":"2026-10-16T00:00:00.000Z","lang":"en","value":"Reported by Anthropic OSS Scanner (ANT-2026-H4KGSOTO)."},{"source":"CNA","time":"2026-10-16T00:00:00.000Z","lang":"en","value":"Reported by Anthropic OSS Scanner (ANT-2026-JZYBNC5Y)."}],"solutions":[{"source":"CNA","title":"","value":"Upgrade to pgjdbc 42.7.15 or later.","time":"","lang":"en"}],"workarounds":[{"source":"CNA","title":"","value":"Use the default extended query mode, or keep standard_conforming_strings on.","time":"","lang":"en"}],"exploits":[],"credits":[{"source":"CNA","value":"Anthropic OSS Scanner (ANT-2026-CPJGFCH9)","lang":"en"},{"source":"CNA","value":"Anthropic OSS Scanner (ANT-2026-H4KGSOTO)","lang":"en"},{"source":"CNA","value":"Anthropic OSS Scanner (ANT-2026-JZYBNC5Y)","lang":"en"}],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.maven.apache.org/maven2","defaultStatus":"unaffected","packageName":"org.postgresql:postgresql","product":"pgjdbc","programFiles":["pgjdbc/src/main/java/org/postgresql/core/v3/SimpleParameterList.java","pgjdbc/src/main/java/org/postgresql/core/BaseQueryKey.java","pgjdbc/src/main/java/org/postgresql/core/CachedQueryCreateAction.java","pgjdbc/src/main/java/org/postgresql/core/Utils.java"],"programRoutines":[{"name":"org.postgresql.core.v3.SimpleParameterList.quoteAndCast"},{"name":"org.postgresql.core.CachedQueryCreateAction.create"},{"name":"org.postgresql.core.Utils.escapeLiteral"}],"repo":"https://github.com/pgjdbc/pgjdbc","vendor":"pgjdbc","versions":[{"lessThan":"42.7.15","status":"affected","version":"0","versionType":"maven"}]}],"credits":[{"lang":"en","type":"finder","value":"Anthropic OSS Scanner (ANT-2026-CPJGFCH9)"},{"lang":"en","type":"finder","value":"Anthropic OSS Scanner (ANT-2026-H4KGSOTO)"},{"lang":"en","type":"finder","value":"Anthropic OSS Scanner (ANT-2026-JZYBNC5Y)"}],"descriptions":[{"lang":"en","value":"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."}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","description":"CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-23T16:59:14.633Z","orgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","shortName":"PostgreSQL"},"references":[{"tags":["vendor-advisory"],"url":"https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-6rxc-3r4p-gpff"}],"solutions":[{"lang":"en","value":"Upgrade to pgjdbc 42.7.15 or later."}],"timeline":[{"lang":"en","time":"2026-10-16T00:00:00.000Z","value":"Reported by Anthropic OSS Scanner (ANT-2026-CPJGFCH9)."},{"lang":"en","time":"2026-10-16T00:00:00.000Z","value":"Reported by Anthropic OSS Scanner (ANT-2026-H4KGSOTO)."},{"lang":"en","time":"2026-10-16T00:00:00.000Z","value":"Reported by Anthropic OSS Scanner (ANT-2026-JZYBNC5Y)."}],"title":"pgjdbc simple query mode quotes parameters for the wrong standard_conforming_strings value","workarounds":[{"lang":"en","value":"Use the default extended query mode, or keep standard_conforming_strings on."}]}},"cveMetadata":{"assignerOrgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","assignerShortName":"PostgreSQL","cveId":"CVE-2026-134842","datePublished":"2026-11-23T16:59:14.633Z","dateReserved":"2026-11-22T17:13:47.180Z","dateUpdated":"2026-11-23T16:59:14.633Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-23 17:17:49","lastModifiedDate":"2026-11-23 17:17:49","problem_types":["CWE-89","CWE-89 CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"],"metrics":{"cvssMetricV31":[{"source":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":2.2,"impactScore":5.9}]},"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"134842","Ordinal":"1","Title":"pgjdbc simple query mode quotes parameters for the wrong standar","CVE":"CVE-2026-134842","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"134842","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"pgjdbc simple query mode quotes parameters for the wrong standar"}]}}}