# CVE-2026-134841: pgjdbc parses quoted text as SQL in JDBC escapes, dollar quotes and E strings

- 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-134841, UBUNTU-CVE-2026-134841, CGA-2qr4-7rgx-67pr, CGA-4vc7-hv8v-qm4c, CGA-5mx6-x6m9-6h84, CGA-rmpw-636f-59v4, CGA-8p5h-w7hq-q573, CGA-4jqg-9h99-3pgx, CGA-95xf-29cw-4277
- Record: https://cvemate.com/vulnerability/CVE-2026-134841 · JSON: https://cvemate.com/vulnerability/CVE-2026-134841/json

## Description

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

## 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.048%, 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-4743-5rfh-f7mp>
- <https://security-tracker.debian.org/tracker/CVE-2026-134841>
- <https://ubuntu.com/security/CVE-2026-134841>
- <https://www.cve.org/CVERecord?id=CVE-2026-134841>
- <https://repo.maven.apache.org/maven2>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134841.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-134841>
- <https://github.com/pgjdbc/pgjdbc>

---

Data as of 2026-12-05T14:03:58.853Z. 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
