{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-134841","assignerOrgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","state":"PUBLISHED","assignerShortName":"PostgreSQL","dateReserved":"2026-11-22T17:13:47.179Z","datePublished":"2026-11-23T16:59:14.067Z","dateUpdated":"2026-11-23T16:59:14.067Z"},"containers":{"cna":{"providerMetadata":{"orgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","shortName":"PostgreSQL","dateUpdated":"2026-11-23T16:59:14.067Z"},"title":"pgjdbc parses quoted text as SQL in JDBC escapes, dollar quotes and E strings","descriptions":[{"lang":"en","value":"pgjdbc, the PostgreSQL JDBC Driver, misreads some quoted text in its query parser. A `}` inside a literal ends a JDBC escape such as `{ts}`, and the rest of the literal is translated as SQL. A dollar quote whose tag has a non-ASCII symbol or space is not recognized. An `E''` string with a doubled quote is scanned as a standard string. `{fn right}` and `{fn timestampdiff}` with a negative argument produce a `--` comment. In each case text that the application quoted correctly can run as SQL with the privileges of the application's database role. All versions before 42.7.15 are affected, and 42.7.15 fixes the problem."}],"affected":[{"vendor":"pgjdbc","product":"pgjdbc","collectionURL":"https://repo.maven.apache.org/maven2","packageName":"org.postgresql:postgresql","repo":"https://github.com/pgjdbc/pgjdbc","programFiles":["pgjdbc/src/main/java/org/postgresql/core/Parser.java","pgjdbc/src/main/java/org/postgresql/jdbc/EscapedFunctions2.java","pgjdbc/src/main/java/org/postgresql/jdbc/EscapedFunctions.java"],"programRoutines":[{"name":"org.postgresql.core.Parser.parseSql"},{"name":"org.postgresql.core.Parser.parseDollarQuotes"},{"name":"org.postgresql.core.Parser.parseSingleQuotes"},{"name":"org.postgresql.jdbc.EscapedFunctions2.sqlright"},{"name":"org.postgresql.jdbc.EscapedFunctions2.sqltimestampdiff"}],"defaultStatus":"unaffected","versions":[{"version":"0","lessThan":"42.7.15","status":"affected","versionType":"maven"}]}],"problemTypes":[{"descriptions":[{"lang":"en","type":"CWE","cweId":"CWE-89","description":"CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')"}]}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":8.1,"baseSeverity":"HIGH"}}],"solutions":[{"lang":"en","value":"Upgrade to pgjdbc 42.7.15 or later."}],"credits":[{"lang":"en","type":"finder","value":"Anthropic OSS Scanner (ANT-2026-F8ORRHGA)"},{"lang":"en","type":"finder","value":"Anthropic OSS Scanner (ANT-2026-CSULRTN9)"},{"lang":"en","type":"finder","value":"Anthropic OSS Scanner (ANT-2026-V49PY3LL)"},{"lang":"en","type":"finder","value":"Anthropic OSS Scanner (ANT-2026-8HOO55D6)"}],"timeline":[{"time":"2026-10-16T00:00:00.000Z","lang":"en","value":"Reported by Anthropic OSS Scanner (ANT-2026-F8ORRHGA)."},{"time":"2026-10-16T00:00:00.000Z","lang":"en","value":"Reported by Anthropic OSS Scanner (ANT-2026-CSULRTN9)."},{"time":"2026-10-16T00:00:00.000Z","lang":"en","value":"Reported by Anthropic OSS Scanner (ANT-2026-V49PY3LL)."},{"time":"2026-10-16T00:00:00.000Z","lang":"en","value":"Reported by Anthropic OSS Scanner (ANT-2026-8HOO55D6)."}],"references":[{"url":"https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-4743-5rfh-f7mp","tags":["vendor-advisory"]}]}}}