# CVE-2026-134842: pgjdbc simple query mode quotes parameters for the wrong standard\_conforming\_strings value

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 42.7.15 (CNA); fix release not confirmed
- Status: published
- Published: 2026-11-23 · Modified: 2026-11-23
- Aliases: DEBIAN-CVE-2026-134842, UBUNTU-CVE-2026-134842, CGA-9597-23jm-xqqx, CGA-j8rm-7vpx-j6xp, CGA-rvh3-42jh-qqh5, CGA-vhhq-v54w-4hpg, CGA-fxqq-9f23-q2wc, CGA-v86x-8v88-q86f, CGA-rmhx-7pcj-55qx
- Record: https://cvemate.com/vulnerability/CVE-2026-134842 · JSON: https://cvemate.com/vulnerability/CVE-2026-134842/json

## Description

```text
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.
```

## Signals

- CVSS: 8.1 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.742%, percentile 56.047%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard flyway (Chainguard): \< 13.13.0-r3
- chainguard flyway-fips (Chainguard): \< 13.13.0-r1
- chainguard keycloak-26.8 (Chainguard): \< 26.8.2-r2
- chainguard keycloak-26.8-iamguarded-compat (Chainguard): \< 26.8.2-r2
- wolfi flyway (Wolfi): \< 13.13.0-r3
- debian libpgjava (Debian): All versions (No fix recorded) \| \< 42.7.15-1
- ubuntu libpgjava (Ubuntu): All versions (No fix recorded)
- pgjdbc pgjdbc: \< 42.7.15

## References

- <https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-6rxc-3r4p-gpff>
- <https://security-tracker.debian.org/tracker/CVE-2026-134842>
- <https://ubuntu.com/security/CVE-2026-134842>
- <https://www.cve.org/CVERecord?id=CVE-2026-134842>
- <https://repo.maven.apache.org/maven2>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134842.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-134842>
- <https://github.com/pgjdbc/pgjdbc>

---

Data as of 2026-12-05T06:23:40.662Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
