CVE-2026-134841 - pgjdbc parses quoted text as SQL in JDBC escapes, dollar quotes and E strings
Vulnerability · Reported by NVD · · CWE-89
- Severity
- High Risk score 81/100
- CVSS
- 8.1 v3.1 · from NVD
- Exploit chance (EPSS)
- 0.74% Higher than 51% of CVEs
- Known exploited
- No Not in CISA KEV
Summary
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.
How this vulnerability can be exploited
This is a SQL injection flaw (CWE-89). An attacker can exploit this vulnerability remotely over the network, without any login, and without any action from a user. Attack complexity is high, meaning specific conditions must exist first. If successful, the attacker could read sensitive data, modify data or code and crash or disrupt the service.
Is it being exploited?
The EPSS model estimates a 0.74% chance this CVE will be exploited in the next 30 days, which is low and higher than 51% of all published CVEs.
Patch priority and what to do
Patch as soon as possible, ideally within days. It is remotely reachable or critical severity, so exposure to the internet greatly increases risk. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Review logs for signs of exploitation since the publication date.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Tags
CVE-2026-134841
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-134841 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.