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.
Metrics
Affected Vendors & Products
Advisories
No advisories yet.
Fixes
Solution
Upgrade to pgjdbc 42.7.15 or later. From 42.7.15 an ssl value other than true, false or empty is refused.
Workaround
Set sslmode=verify-full in the URL or the Properties, and pass a service name in the URL.
References
History
Mon, 23 Nov 2026 17:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | pgjdbc does not enforce TLS for some ssl, service and DataSource settings | |
| Weaknesses | CWE-295 CWE-319 |
|
| References |
| |
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: PostgreSQL
Published:
Updated: 2026-11-23T16:59:16.734Z
Reserved: 2026-11-22T17:13:47.180Z
Link: CVE-2026-134845
No data.
Status : Received
Published: 2026-11-23T17:17:49.613
Modified: 2026-11-23T17:17:49.613
Link: CVE-2026-134845
No data.
OpenCVE Enrichment
No data.