Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain man-in-the-middle position on network path
-
DeliveryVictim app connects using ssl=on/service/setUrl config
-
ExploitDriver negotiates sslmode=prefer with no cert check
-
ExecutionRefuse TLS or present forged certificate
-
ImpactIntercept 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
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).
Primary rating from Vendor (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007).
CVSS VectorVendor: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
Lifecycle Timeline
2DescriptionCVE.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.
Articles & Coverage 1
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in PostgreSQL
View allPostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
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
Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.
Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar
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
The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t
A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve
Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the
Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
EUVD-2026-133250
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB