HIGH 7.4

CVE-2026-134845

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

Preliminary: affected artifacts were declared by the CNA in the CVE record and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.postgresql » postgresqlpreliminary
>= 9.4.1208, < 42.7.15
42.7.15

Blast radius

1affected artifacts
192affected versions
14,731dependent artifacts (est.)
766,200dependent versions

81% of the dependent artifacts (12,014) still pull an affected version in their latest release.

DepthDependent versions
Direct
149,364
2 hops
355,253
3 hops
162,343
4 hops
67,371
5 hops
22,680
6 hops
9,189

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.