pgjdbc parses quoted text as SQL in JDBC escapes, dollar quotes and E strings
Summary
| CVE | CVE-2026-134841 |
|---|---|
| State | PUBLISHED |
| Assigner | PostgreSQL |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-23 17:17:49 UTC |
| Updated | 2026-11-23 17:17:49 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 8.1 HIGH from f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Problem Types: CWE-89 | CWE-89 CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 | Secondary | 8.1 | HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 8.1 | HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/pgjdbc/pgjdbc/security/advisories/GHSA-4743-5rfh-f7mp | f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Anthropic OSS Scanner (ANT-2026-F8ORRHGA) (en)
CNA: Anthropic OSS Scanner (ANT-2026-CSULRTN9) (en)
CNA: Anthropic OSS Scanner (ANT-2026-V49PY3LL) (en)
CNA: Anthropic OSS Scanner (ANT-2026-8HOO55D6) (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-10-16T00:00:00.000Z | Reported by Anthropic OSS Scanner (ANT-2026-F8ORRHGA). |
| CNA | 2026-10-16T00:00:00.000Z | Reported by Anthropic OSS Scanner (ANT-2026-CSULRTN9). |
| CNA | 2026-10-16T00:00:00.000Z | Reported by Anthropic OSS Scanner (ANT-2026-V49PY3LL). |
| CNA | 2026-10-16T00:00:00.000Z | Reported by Anthropic OSS Scanner (ANT-2026-8HOO55D6). |
Solutions
CNA: Upgrade to pgjdbc 42.7.15 or later.
There are currently no legacy QID mappings associated with this CVE.