---
id: CVE-2026-134845
title: >-
  pgjdbc, the PostgreSQL JDBC Driver, does not enforce TLS for some settings
  that ask for it
summary: >-
  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 Pro…
severity: high
cvss: 7.4
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'
cwe:
  - CWE-295
  - CWE-319
vendor: pgjdbc
product: 'org.postgresql:postgresql'
affected:
  - 'org.postgresql:postgresql >= 9.4.1208 < 42.7.15'
published: '2026-11-23'
updated: '2026-11-24'
sourceUpdated: '2026-11-24T18:56:39.360'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-134845'
references:
  - url: 'https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-3mrw-838h-x9j9'
    label: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
  - url: 'https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-3mrw-838h-x9j9'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-11-23T19:30:55.310896Z'
ingestedAt: '2026-11-23T20:35:33.368Z'
epss: 0.00203
epssPercentile: 0.101
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
