Skip to main content

PostgreSQL JDBC Driver CVE-2026-134846

| EUVDEUVD-2026-133251 MEDIUM
Authentication Bypass by Capture-replay (CWE-294)
2026-11-23 f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
6.5
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 on-path network position on GSS connection
  2. Delivery
    Replay prior sealed server token or inject integrity-only packet
  3. Exploit
    Driver accepts replayed reply / clears privacy flag
  4. Execution
    Outbound SQL and parameters sent unencrypted
  5. Impact
    Capture 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

pgjdbc 42.2.15 <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 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

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

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.

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
Low
Integrity
High
Availability
None

Lifecycle Timeline

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

DescriptionCVE.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

EPSS Score
0.1%
Top 99% exploitable
Prevalence
High
standard PostgreSQL JDBC driver, pervasive across Java/enterprise PostgreSQL stacks
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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