CVE-2026-134845
pgjdbc does not enforce TLS for some ssl, service and DataSource settings
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)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.postgresql » postgresqlpreliminary | >= 9.4.1208, < 42.7.15 | 42.7.15 |
Blast radius
81% of the dependent artifacts (12,014) still pull an affected version in their latest release.
| Depth | Dependent 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
- org.apache.spark » spark-sql3,174 usages
- org.apache.kafka » kafka-clients3,135 usages
- org.apache.spark » spark-core2,899 usages
- org.apache.kafka » kafka1,450 usages
- org.apache.spark » spark-mllib831 usages
- com.atlassian.confluence » confluence724 usages
- org.apache.hive » hive-exec699 usages
- org.apache.spark » spark-streaming670 usages
- org.apache.spark » spark-hive633 usages
- org.dbunit » dbunit596 usages
- org.openmrs.api » openmrs-api564 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- org.openmrs.web » openmrs-web521 usages
- org.openmrs.test » openmrs-test514 usages
- org.apache.kafka » kafka-streams513 usages
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.
References
- Advisoryhttps://github.com/CVEProject/cvelistV5/tree/main/cves/2026/134xxx/CVE-2026-134845.json
- Packagehttps://github.com/pgjdbc/pgjdbc
- Advisoryhttps://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-3mrw-838h-x9j9
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-134845
- Webhttps://repo.maven.apache.org/maven2
