Skip to content
DayZeroHub
High Not yet writtenCVSS 7.4CVE-2026-134845

CVE-2026-134845: pgjdbc does not enforce TLS for some ssl, service and DataSource settings

pgjdbc pgjdbc

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-134845: high-severity vulnerability (CVSS 7.4) in pgjdbc pgjdbc.

What happened

Original description from the source: pgjdbc, the PostgreSQL JDBC Driver, does not enforce TLS for some settings that ask for it. When sslmode is not set, an ssl value such as 1, on, yes or verify-full gives sslmode=prefer, or no TLS before 42.2.5. A service given in the Properties instead of the URL is ignored, so the sslmode of its pg_service.conf entry is lost. BaseDataSource.setUrl() keeps an sslmode, channelBinding or gssEncMode that was set before it. An attacker on the network path can then read and change the traffic. Versions 9.4.1208 through 42.7.14 are affected, and 42.7.15 fixes the problem.

Why it matters

High severity, CVSS 7.4.

Affected products and versions

pgjdbc pgjdbc >= 9.4.1208, < 42.7.15

ProductVersionsFixed in
pgjdbc pgjdbc>= 9.4.1208, < 42.7.15—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-295, CWE-319

Relevant change history

  1. Published

    Preliminary advisory published.