CVE-2026-134842 - pgjdbc simple query mode quotes parameters for the wrong standard_conforming_strings value
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, can quote a string parameter for the wrong value of standard_conforming_strings when preferQueryMode=simple is set. A statement, trigger or configuration reload can turn the setting off during a session. A parameter value with a backslash and a quote then ends the literal, and the rest of the value runs as SQL. Before 42.7.6 any session with the setting off was affected. The statement cache can also reuse a parse made under the other setting. With allowEncodingChanges=true and the EUC_JP or SJIS client encoding, the yen sign acts as a backslash. 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-134842
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-134842 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.