Skip to main content

PostgreSQL JDBC Driver CVE-2026-134845

| EUVDEUVD-2026-133250 HIGH
Improper Certificate Validation (CWE-295)
2026-11-23 f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
7.4
CVSS 3.1 · Vendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain man-in-the-middle position on network path
  2. Delivery
    Victim app connects using ssl=on/service/setUrl config
  3. Exploit
    Driver negotiates sslmode=prefer with no cert check
  4. Execution
    Refuse TLS or present forged certificate
  5. Impact
    Intercept and alter database traffic and credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate validation
Exploitation Conditions

Requires an active man-in-the-middle on the network path between the application and the PostgreSQL server - the flaw cannot be triggered by a remote attacker lacking interception capability. The victim application must additionally use one of these specific pgjdbc configurations: (1) sslmode unset while ssl is 1, on, yes or verify-full, yielding sslmode=prefer (or no TLS at all on versions before 42.2.5); (2) a service entry passed via the Properties of getConnection() rather than in the URL, which is ignored so the pg_service.conf sslmode is lost; or (3) BaseDataSource.setUrl() invoked such that a previously-set sslmode, channelBinding or gssEncMode is retained. Limiting factors: exploitation needs the MITM position plus one of these non-default/edge configurations, and applications that explicitly set sslmode=verify-full within the JDBC URL are not affected. Per the vendor advisory, updating to 42.7.15 is the fix.

Impact

CVSS 3.1 base score is 7.4 (High) with vector AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N: network-reachable and requiring no attacker authentication or victim interaction, but gated by AC:H. The high complexity is substantive here because exploitation demands TWO independent conditions - an active man-in-the-middle position on the path between the Java application and the PostgreSQL server, AND a victim using one of the specific vulnerable configuration patterns (ssl=1/on/yes/verify-full with sslmode unset, a service supplied via Properties, or a setUrl() that preserves an earlier sslmode/channelBinding/gssEncMode). It is therefore NOT remotely mass-exploitable against default, correctly-configured deployments. No EPSS score was provided in the input, so probabilistic exploitation likelihood cannot be quantified. The vulnerability is NOT in CISA KEV and there is no confirmed active exploitation. The vuln.today priority is 'this_week' (not act_now/emergency), and no SSVC decision vector was supplied in the input. Net: a legitimately High-severity TLS-downgrade / certificate-validation flaw whose real-world risk is moderated by the required privileged network position and non-default client configuration - worth patching this week, but it is not an in-the-wild emergency on current signals.

Exploit ScenarioDerived

A Java application sets ssl=on expecting TLS with certificate verification, but pgjdbc silently uses sslmode=prefer, so TLS is optional and the server certificate is not validated. An attacker positioned on the network path (e.g., via ARP spoofing, a rogue gateway, or compromised infrastructure) refuses the TLS upgrade or presents any certificate, then reads and modifies the database traffic - including the password for some authentication methods. The vendor advisory includes a conceptual proof-of-concept connection string; a public PoC reference exists but is not verified as working exploit code.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 23, 2026

Silent TLS downgrade in pgjdbc (the PostgreSQL JDBC Driver) lets an active man-in-the-middle read and modify database traffic, including the password for some authentication methods, for Java applications using versions 9.4.1208 through 42.7.14. Three configuration paths trigger it: sslmode left unset while ssl is 1, on, yes or verify-full (which resolves to sslmode=prefer, or no TLS at all before 42.2.5); a service supplied through the Properties of getConnection() instead of the URL, whose pg_service.conf sslmode is silently dropped; and BaseDataSource.setUrl() retaining an earlier sslmode, channelBinding or gssEncMode. Exploitation is unauthenticated and requires no victim interaction, but is gated by the attacker holding a network-path position plus one of those non-default configurations; applications that set sslmode=verify-full in the JDBC URL are not affected. The vendor advisory carries a PoC configuration reference rather than verified working exploit code; the fix is 42.7.15 and should be scheduled this week.

RemediationAI

Upgrade the org.postgresql:postgresql dependency to 42.7.15, which the vendor advisory identifies as the complete fix, and rebuild/redeploy any application that bundles the driver; prioritize this within the current week given a High 7.4 score, unauthenticated network reachability and the confidentiality/integrity exposure on the wire. Audit connection configuration in parallel, because upgrading removes the defect but does not retroactively prove any past connection was protected: replace every reliance on ssl=1, on, yes or verify-full with an explicit sslmode=verify-full in the JDBC URL, which is confirmed unaffected, and move any service reference out of the Properties map into the URL or otherwise ensure the intended pg_service.conf sslmode takes effect. Code that reuses a BaseDataSource should not depend on setUrl() to overwrite a previously set sslmode, channelBinding or gssEncMode; construct a fresh DataSource or re-apply the intended TLS properties after each setUrl() call, otherwise the stale weaker value persists even on a patched driver. The trade-off of forcing sslmode=verify-full is that servers presenting self-signed or privately issued certificates, or hostnames not matching the certificate, will fail to connect until the truststore or certificate is corrected.

Affected VersionsENISA

pgjdbc 9.4.1208 <42.7.15

Affected Packages

euvd pgjdbc fix: 42.7.15

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

pgjdbc is the official PostgreSQL JDBC driver for Java, and connection security is governed by the sslmode parameter, which ranges from disable through prefer, require and verify-ca up to verify-full (full TLS plus hostname/certificate validation). The flaw is rooted in CWE-295, improper certificate validation, expressed here as a configuration-normalization and property-precedence defect rather than a cryptographic break: the driver's mapping layer converts legacy boolean-style ssl values into an sslmode, and for 1, on, yes or verify-full it produces prefer when sslmode itself is absent, so certificate checks are skipped and a network attacker may simply decline TLS or present any certificate. Two further paths leak the same weakening: a service entry passed via the Properties map of getConnection() is ignored without warning, discarding the sslmode defined in that pg_service.conf stanza, and BaseDataSource.setUrl() does not replace properties already set, so a second setUrl() or a setter followed by setUrl() preserves an earlier sslmode, channelBinding or gssEncMode. The advisory's PoC is a connection string of the form jdbc:postgresql://db.example.com/app?ssl=on, which demonstrates the prefer fallback; it is a configuration reference and is not verified working exploit code. The trigger for each mode is precisely documented in the advisory, and the impact is confidentiality and integrity loss on the wire, with password exposure limited to certain authentication methods and only where one of the three configurations applies.

Know when PostgreSQL gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007) PRIMARY 7.4 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 7.4 HIGH

A man-in-the-middle position plus a specific client misconfiguration are both required (AC:H); attacker needs no authentication or victim interaction (PR:N/UI:N); interception can read and alter traffic (C:H/I:H) with no availability impact (A:N).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007).

CVSS VectorVendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Nov 23, 2026 - 18:02 EUVD
CVE Published
Nov 23, 2026 - 17:17 cve.org
HIGH 7.4

DescriptionCVE.org

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.

Technical POC Analysis

CWE-295 (Improper Certificate Validation).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity vulnerability in pgjdbc (PostgreSQL JDBC Driver) allows a man-in-the-middle attacker to silently downgrade TLS connections, potentially exposing database credentials and sensitive data for Java applications using affected versions. This impacts any application that does not explicitly set sslmode=verify-full in the JDBC URL, creating a risk of data breach and credential theft. Leadership should prioritize remediation due to the potential for unauthorized access to critical database systems and regulatory compliance implications.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
High
standard PostgreSQL JDBC driver, widely deployed across Java enterprise applications
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy