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

- Severity: High 7.4 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-23T16:59:16.734Z
- Modified: 2026-11-24T18:56:39.360Z
- Weaknesses: CWE-295, CWE-319
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- org.postgresql:postgresql: from 9.4.1208 before 42.7.15

## References

- <https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-3mrw-838h-x9j9> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-134845](https://www.cve.org/CVERecord?id=CVE-2026-134845), CVE Terms of Use, modified 2026-11-23
- NVD: [CVE-2026-134845](https://nvd.nist.gov/vuln/detail/CVE-2026-134845), Public domain, modified 2026-11-24

---

Page: https://cve.day/CVE-2026-134845 · Whole record: https://cve.day/CVE-2026-134845.json · Rebuilt by cve.day 2026-11-25T22:59:52.672Z
