CVE-2026-134845
7.4high
pgjdbc does not enforce TLS for some ssl, service and DataSource settings
- Severity
- 7.4high CVSS:3.1 by PostgreSQL
- Exploit likelihood
- 0.31% (higher than 25% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- PostgreSQL
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
| Product or package | Versions | Reported by |
|---|---|---|
| org.postgresql:postgresql | from 9.4.1208 before 42.7.15 | CVE List |
Classification
References
| https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-3mrw-838h-x9j9 | exploit, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-134845 changed 2026-11-23 | CVE Terms of Use |
| NVD | CVE-2026-134845 changed 2026-11-24 | Public domain |