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.
Project Subscriptions
No data.
Advisories
No advisories yet.
Fixes
Solution
Upgrade to pgjdbc 42.7.15 or later.
Workaround
No workaround given by the vendor.
References
History
Mon, 23 Nov 2026 17:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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. | |
| Title | pgjdbc parses quoted text as SQL in JDBC escapes, dollar quotes and E strings | |
| Weaknesses | CWE-89 | |
| References |
| |
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: PostgreSQL
Published:
Updated: 2026-11-23T16:59:14.067Z
Reserved: 2026-11-22T17:13:47.179Z
Link: CVE-2026-134841
No data.
Status : Received
Published: 2026-11-23T17:17:49.083
Modified: 2026-11-23T17:17:49.083
Link: CVE-2026-134841
No data.
OpenCVE Enrichment
No data.
Weaknesses