CVE-2026-134845

published 23 Nov 2026 · updated 24 Nov 2026

pgjdbc does not enforce TLS for some ssl, service and DataSource settings

7.4HighCVSS 7.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 42.7.15.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
pgjdbc>=9.4.1208 <42.7.1542.7.15

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-134845 severity on Zeptric[![CVE-2026-134845](https://zeptric.io/badge/cve/CVE-2026-134845.svg)](https://zeptric.io/cve/CVE-2026-134845)