pgjdbc does not enforce TLS for some ssl, service and DataSource settings
Summary
| CVE | CVE-2026-134845 |
|---|---|
| State | PUBLISHED |
| Assigner | PostgreSQL |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-11-23 17:17:49 UTC |
| Updated | 2026-11-23 17:17:49 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.4 HIGH from f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Problem Types: CWE-295 | CWE-319 | CWE-295 CWE-295 Improper Certificate Validation | CWE-319 CWE-319 Cleartext Transmission of Sensitive Information
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 | Secondary | 7.4 | HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| 3.1 | CNA | DECLARED | 7.4 | HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
NoneCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/pgjdbc/pgjdbc/security/advisories/GHSA-3mrw-838h-x9j9 | f86ef6dc-4d3a-42ad-8f28-e6d5547a5007 | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Anthropic OSS Scanner (ANT-2026-JON5W0PA) (en)
CNA: Anthropic OSS Scanner (ANT-2026-CHV7PJLQ) (en)
CNA: Anthropic OSS Scanner (ANT-2026-QMR87C71) (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-10-16T00:00:00.000Z | Reported by Anthropic OSS Scanner (ANT-2026-JON5W0PA). |
| CNA | 2026-10-16T00:00:00.000Z | Reported by Anthropic OSS Scanner (ANT-2026-CHV7PJLQ). |
| CNA | 2026-10-16T00:00:00.000Z | Reported by Anthropic OSS Scanner (ANT-2026-QMR87C71). |
Solutions
CNA: Upgrade to pgjdbc 42.7.15 or later. From 42.7.15 an ssl value other than true, false or empty is refused.
Workarounds
CNA: Set sslmode=verify-full in the URL or the Properties, and pass a service name in the URL.
There are currently no legacy QID mappings associated with this CVE.