Skip to content
RedCVE

CVE-2026-134842Pgjdbc 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, 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.

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-134842 being exploited?

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

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

CVE-2026-134842 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-134842?

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.