Skip to content
RedCVE

CVE-2026-134841Pgjdbc SQL injection

pgjdbcPublished:

CVSS score

8.1

High

CVSS 3.1 from f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

Exploit probability (EPSS)

No EPSS score yet.

CISA KEV

Not in KEV

No confirmed exploitation reported by CISA so far.

Official 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.

Source: NVD · CNA: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

How to fix it, step by step

  1. Check whether you're affected

    Find every system running Pgjdbc and compare its version with the affected versions.

  2. Update to a fixed version

    • Update Pgjdbc to 42.7.15 or later.
  3. Confirm the fix

    Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.

Was this useful?

How it can be exploited

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

Affected productsVersions
pgjdbc Pgjdbc< 42.7.15

Weakness

Timeline

  1. Published:
  2. Last modified:

Frequently asked questions

Is CVE-2026-134841 being exploited?

There is no confirmed exploitation in CISA's KEV catalog so far.

What is the CVSS score of CVE-2026-134841?

CVE-2026-134841 has a CVSS 3.1 base score of 8.1 (high).

Which versions are affected?

Pgjdbc Pgjdbc (< 42.7.15)

Is there a patch for CVE-2026-134841?

The official record links to vendor advisories or patches; see “What to do” above.

References

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.