Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain on-path network position on GSS connection
-
DeliveryReplay prior sealed server token or inject integrity-only packet
-
ExploitDriver accepts replayed reply / clears privacy flag
-
ExecutionOutbound SQL and parameters sent unencrypted
-
ImpactCapture cleartext queries and manipulate query responses
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Replay attack prevention
|
| Exploitation Conditions | Exploitation requires: (1) the connection uses gssEncMode=prefer or gssEncMode=require AND the PostgreSQL server accepts GSS encryption, so GSS encryption is actually negotiated; (2) a vulnerable driver version in the range 42.2.15 through 42.7.14; and (3) an attacker with an active on-path network position able to drop a server reply and deliver an earlier sealed packet from the same connection, or the server emitting a single integrity-only token to clear the shared MessageProp privacy flag (only a holder of the session key, i.e. the server, can forge such a token). Key LIMITING factors: the driver default since 42.2.18 is gssEncMode=allow, which never starts GSS encryption and is therefore NOT affected; passive eavesdropping is insufficient (active on-path manipulation is needed); and no user interaction or prior authentication to the application is required (PR:N/UI:N). |
| Impact | This is a genuine but conditional, moderate-priority weakness rather than a broad emergency. The supplied CVSS 3.1 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N, base 6.5) marks it network-reachable and pre-authentication (PR:N) but high-complexity (AC:H), which fits the mechanism described: the attacker must occupy an active position on the network path of an established GSS-encrypted connection and either replay an earlier server packet or rely on the server emitting an integrity-only token to downgrade encryption. There is no KEV listing and no EPSS value in the supplied data, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_month', i.e. scheduled remediation, not act_now/emergency. A public PoC reference exists in the GHSA advisory (a malicious-backend replay sketch); it is not verified as working exploit code, and PoC availability must not be conflated with active exploitation. The decisive risk-limiter is configuration dependence: only connections using gssEncMode=prefer or require that actually negotiate GSS encryption are affected, and the driver default since 42.2.18 is gssEncMode=allow, which does not start GSS encryption - so most deployments are not exposed even on vulnerable versions. Net: the AC:H plus the non-default-configuration gate means real-world risk is materially lower than the 6.5 base implies for the typical deployment, but it is a real confidentiality/integrity exposure for organizations that deliberately run Kerberos/GSS-encrypted PostgreSQL connections. |
| Exploit ScenarioDerived | An attacker positioned on the network path of a Java application using pgjdbc with gssEncMode=prefer or require either replays an earlier sealed server packet so the driver accepts a stale reply as the answer to the current query, or leverages a single integrity-only (unencrypted) server token to flip the shared MessageProp privacy flag so the driver stops encrypting its outbound traffic - exposing subsequent SQL statements and bind parameters in cleartext on the wire. A non-working public PoC reference in the advisory demonstrates delivering duplicate sealed tokens to the protocol parser. Exploitation is high-complexity (AC:H): it requires an on-path active position and either session-key capability (server-side) or precise packet replay timing. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 23, 2026
GSS-encrypted connections in the PostgreSQL JDBC Driver (pgjdbc) 42.2.15 through 42.7.14 do not honor the token-state flags that GSSContext.unwrap() reports, so an attacker on the network path can drop a server reply and re-deliver an earlier sealed packet from the same connection, which the driver accepts as the answer to the current query; a single integrity-only server token can also clear the shared MessageProp privacy flag so later SQL statements and parameters are signed but no longer encrypted. Only connections that actually negotiate GSS encryption are affected, meaning gssEncMode=prefer or gssEncMode=require against a server that accepts GSS encryption - the driver default gssEncMode=allow since 42.2.18 never starts GSS encryption and is not exposed. The threat model is an unauthenticated remote attacker with an active on-path position and high attack complexity (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N per independent assessment); there is no CISA KEV listing and no confirmed active exploitation, the GitHub advisory describes a proof-of-concept scenario with a malicious backend rather than verified working exploit code, and the vendor-released patch is 42.7.15.
RemediationAI
Upgrade pgjdbc (org.postgresql:postgresql) to 42.7.15, the vendor-released fixed version for the 42.2.15-42.7.14 range, as documented in advisory GHSA-hcjc-54fp-2p42 (https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-hcjc-54fp-2p42). As an interim measure where upgrading cannot be scheduled immediately, do not initiate GSS encryption from the client: set gssEncMode=allow (or otherwise avoid gssEncMode=prefer/require) against servers that offer GSS encryption, which removes the vulnerable code path - the trade-off is that connection traffic then loses GSS-level confidentiality and integrity protection, so this only makes sense when transport security is provided by another layer or when the exposure is accepted during the patch window. Where policy mandates GSS-encrypted connections, patching to 42.7.15 is the only complete fix; note that gssEncMode=prefer may silently fall back to an unencrypted connection and is therefore not a substitute for the upgrade.
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 speaks the PostgreSQL frontend/backend wire protocol and can wrap the connection in GSSAPI (Kerberos) encryption when gssEncMode=prefer or require is set and the server accepts it. The root cause is CWE-294 (Authentication Bypass by Capture-replay): GSSContext.unwrap() does not fail on a duplicate, old, out-of-sequence or gap token - it reports that condition in the MessageProp returned alongside the unwrapped data, and the driver never inspected those flags. An on-path attacker can therefore suppress the genuine server response and replay an earlier sealed token from the same connection, and the driver hands it to the protocol parser as if it were the reply to the outstanding query. The advisory also assigns CWE-319 (Cleartext Transmission of Sensitive Information) for the second defect: a single MessageProp instance is shared between the read and write paths, so an incoming token without the privacy flag clears it for subsequent operations, and outbound packets are then integrity-protected but not encrypted. The advisory notes that only a party holding the session key - in practice the server - can construct such an integrity-only token. Per the advisory's proof-of-concept illustration, a malicious backend that emits the same sealed token twice causes the driver to deliver both copies to the protocol parser. Note that the upstream description classifies this as affecting GSS-encrypted connections only; the exact conditions under which a given deployment negotiates GSS encryption must be verified per environment, and passive eavesdropping alone is not described as sufficient - the attack requires active manipulation on the network path.
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:L/I:H/A:N
Network on-path attack, no auth or UI (AV:N/PR:N/UI:N); AC:H because an active on-path position plus a specific non-default GSS config is required; cleartext SQL/parameter exposure (C:H) and replayed-reply acceptance (I:H), no availability impact.
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 check the token state that GSSContext.unwrap() reports on a GSS-encrypted connection. An attacker on the network path can replay an earlier server packet from the same connection, and the driver accepts it as the answer to the current query. The driver also shares one MessageProp between reading and writing. One integrity-only packet from the server then makes the driver send later SQL and parameters without encryption. Only connections with gssEncMode=prefer or require that start GSS encryption are affected. Versions 42.2.15 through 42.7.14 are affected, and 42.7.15 fixes the problem.
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-133251
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB