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

Published Updated

Network attackers can read and alter traffic because pgjdbc ignores some TLS settings when a service name is used; Java apps using pgjdbc should care.

CVSS score

High

7.4/10

CVSS 3.1 · Scored by PostgreSQL Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
None known
No public exploit found
Fix
Available
42.2.5
Attack path
Over the internet
No login, no user action

What is CVE-2026-134845?

CVE-2026-134845 is a high-severity security feature bypass vulnerability in pgjdbc, published on 23 Nov 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-319, CWE-295

How severe is CVE-2026-134845?

CVE-2026-134845 scores 7.4 out of 10 under CVSS 3.1, which is high severity. It was scored by PostgreSQL.

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

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Which versions are affected by CVE-2026-134845?

An affected version is only exploitable if your software calls BaseDataSource.setUrl(). Many projects that include it are not exposed.

How do I fix CVE-2026-134845?

Upgrade pgjdbc to 42.2.5 or later. The advisory says that version fixes it.

Upgrade to the fixed version, and do not rely on a single control for protection. More about Security feature bypass.

Is CVE-2026-134845 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-134845 exists.

Sources

Also known as DEBIAN-CVE-2026-134845, GHSA-3mrw-838h-x9j9, UBUNTU-CVE-2026-134845.

Is CVE-2026-134845 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free