CVE-2026-134841

published 23 Nov 2026 · updated 24 Nov 2026

pgjdbc parses quoted text as SQL in JDBC escapes, dollar quotes and E strings

8.1HighCVSS 8.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 42.7.15.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
pgjdbc<42.7.1542.7.15

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-134841 severity on Zeptric[![CVE-2026-134841](https://zeptric.io/badge/cve/CVE-2026-134841.svg)](https://zeptric.io/cve/CVE-2026-134841)