Skip to main content

pgjdbc EUVDEUVD-2026-41903

| CVE-2026-54291 HIGH
Not Failing Securely ('Failing Open') (CWE-636)
2026-07-06 GitHub_M GHSA-j92g-9f8w-j867
8.2
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Gain MITM position on TLS path
  2. Delivery
    Present cert with no channel-binding hash
  3. Exploit
    scram-client returns empty binding
  4. Execution
    pgJDBC accepts, downgrades to SCRAM-SHA-256
  5. Persist
    Relay authenticated session
  6. Impact
    Intercept/alter database traffic

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Fail-secure design
Exploitation Conditions

Exploitation requires the client to be configured with channelBinding=require (the setting whose protection is being defeated) and an attacker who already holds an active man-in-the-middle position on the TLS connection between the application and PostgreSQL. The attacker must supply or cause the server to present a certificate whose signature algorithm has no tls-server-end-point channel-binding hash, which makes the bundled scram-client return an empty byte array that pgJDBC (42.7.4-42.7.11) fails to reject. Limiting factors: the flaw only matters where channel binding was deliberately relied upon; it does not grant access on its own without an existing TLS-intercept capability (reflected in AC:H/AT:P), needs no user interaction or credentials of its own (PR:N/UI:N), and is fixed in 42.7.12.

Impact

The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:L/SA:N, base 8.2) captures the practical reality well: exploitation is network-based and needs no privileges or user interaction, but carries high attack complexity (AC:H) and an explicit attack requirement (AT:P) - the attacker must already hold an active man-in-the-middle position on the TLS path and control (or induce) a server certificate using a signature algorithm lacking a tls-server-end-point hash. Impact is scoped to integrity of the connection's authenticity guarantee (VI:H), not a direct confidentiality dump. There is no EPSS score provided, no KEV listing, and no evidence of a public POC, so real-world exploitation signals are absent; the danger is a silent, conditions-dependent weakening of a security control rather than a mass-exploitable RCE. This is a meaningful priority specifically for deployments that deliberately set channelBinding=require to defend against network adversaries, because for them the control is silently ineffective; for the many deployments that do not enable channel binding, real-world exposure from this specific flaw is lower. Note the tension worth verifying: the official 4.0 vector marks confidentiality VC:N, yet a successful downgrade enables a full MITM that could in practice expose query data - the scoring reflects the direct authentication-integrity loss rather than downstream MITM consequences.

Exploit ScenarioDerived

An attacker positioned to intercept the TLS traffic between a Java application and its PostgreSQL server (e.g., a compromised network segment or rogue proxy) presents a server certificate whose signature algorithm produces no tls-server-end-point channel-binding hash. Because scram-client returns an empty binding and pgJDBC accepts it, the connection negotiated with channelBinding=require silently falls back to plain SCRAM-SHA-256, and the attacker completes a full man-in-the-middle relay of the authenticated session. No public POC is currently known, and the attack requires the pre-existing MITM position reflected in the high complexity of the CVSS vector.

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

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

Alert me

AnalysisAIv1 – Jul 06, 2026

Channel-binding downgrade in the pgjdbc PostgreSQL JDBC Driver (releases 42.7.4 through 42.7.11) lets an active man-in-the-middle silently strip SCRAM-SHA-256-PLUS channel binding down to plain SCRAM-SHA-256 even when the client explicitly set channelBinding=require, defeating the exact protection that setting promises. The flaw stems from the bundled com.ongres.scram:scram-client returning an empty binding for certificates whose signature algorithm lacks a tls-server-end-point hash, combined with pgJDBC's ScramAuthenticator failing to reject that empty binding. No public exploit identified at time of analysis and it is not listed in CISA KEV; it is fixed in 42.7.12.

RemediationAI

Vendor-released patch: 42.7.12 - upgrade the pgjdbc driver dependency to 42.7.12 or later, which also pulls the corrected com.ongres.scram:scram-client (release 3.3) so empty channel-binding data is rejected rather than accepted. The fix commit is https://github.com/pgjdbc/pgjdbc/commit/77df98e4e66c12936ded3478a0954f6f580bad99 and details are in advisory https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-j92g-9f8w-j867. If you cannot upgrade immediately, reduce reliance on the client-side channel-binding check by ensuring PostgreSQL servers present certificates whose signature algorithms have a defined tls-server-end-point hash (avoid algorithms that yield an empty binding), and pin/validate the server certificate at the application or network layer so a MITM cannot substitute a certificate; additionally restrict the network path between application and database (private subnets, mutual TLS, strict certificate verification with sslmode=verify-full) to remove the attacker's MITM foothold - the trade-off is that these controls harden the transport but do not restore the specific channel-binding guarantee, so upgrading remains the only complete fix.

Affected VersionsENISA

pgjdbc 42.7.4, < 42.7.12

Affected Packages

maven org.postgresql:postgresql fix: 42.7.12
euvd pgjdbc_42_7_4 fix: 42.7.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in maven, 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 Java (JDBC) driver used by Java applications to connect to PostgreSQL. Authentication uses SCRAM (Salted Challenge Response Authentication Mechanism); the '-PLUS' variant (SCRAM-SHA-256-PLUS) binds the authentication exchange to the underlying TLS channel via the tls-server-end-point mechanism, which hashes the server certificate so a proxy cannot sit in the middle. The root cause is CWE-636 (Not Failing Securely / 'Failing Open'): when a certificate's signature algorithm has no defined channel-binding hash, the bundled com.ongres.scram:scram-client returns an empty byte array instead of raising an error, and pgJDBC's ScramAuthenticator only verifies that the server advertised a PLUS mechanism - it never rejects the empty binding data nor confirms that the mechanism actually negotiated used channel binding. The CPE cpe:2.3:a:pgjdbc:pgjdbc:*:*:*:*:*:*:*:* confirms the affected component is the pgjdbc driver itself.

Know when Pgjdbc 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 (GitHub_M) PRIMARY 8.2 HIGH
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:L/SA:N
vuln.today AI 5.9 MEDIUM

Network vector but AC:H because a pre-existing TLS MITM position and a specific certificate signature algorithm are required; impact is loss of authentication integrity (I:H) with no direct confidentiality or availability loss.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:L/SA:N
SUSE 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Red Hat 5.9 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 06, 2026 - 20:02 EUVD
CVE Published
Jul 06, 2026 - 18:55 cve.org
HIGH 8.2

DescriptionCVE.org

pgjdbc is an open source postgresql JDBC Driver. In releases 42.7.4 through 42.7.11, channelBinding=require connections can be silently downgraded from SCRAM-SHA-256-PLUS with channel binding to plain SCRAM-SHA-256 without it, losing the man-in-the-middle protection the setting is meant to guarantee. An attacker who can intercept the TLS connection can trigger the downgrade with a certificate whose signature algorithm has no tls-server-end-point channel-binding hash, because the bundled com.ongres.scram:scram-client returns an empty byte array instead of failing and pgJDBC ScramAuthenticator checks only that the server advertised a PLUS mechanism, without rejecting the empty binding or checking that the negotiated mechanism uses channel binding. This issue is fixed in version 42.7.12.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1,152 maven packages depend on org.postgresql:postgresql (428 direct, 725 indirect)

Ecosystem-wide dependent count for version 42.7.4.

Executive ViewAI

Why It Matters

PostgreSQL applications using pgjdbc driver versions 42.7.4 through 42.7.11 are vulnerable to authentication downgrade attacks when exposed to network-level adversaries. An active man-in-the-middle attacker can force the driver to silently abandon strong SCRAM-SHA-256-PLUS authentication-the exact protection clients explicitly configured-and fall back to weaker SCRAM-SHA-256. This undermines database authentication controls and exposes credentials in untrusted network environments.

Business Impact: High
Compensating Controls

Apply vendor patch to version 42.7.12.

Threat Intelligence Overview

EPSS Score
0.3%
Top 84% exploitable
Prevalence
High
standard JDBC driver for PostgreSQL across many Java enterprise deployments
Threat Intel
1
1 source
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor CIRCL GitHub VulDB

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.3%
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
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

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

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise Module for Server Applications 15 SP7 Not-Affected
SUSE Linux Enterprise Server 15 SP7 Not-Affected
SUSE Linux Enterprise Server 16.0 Affected
SUSE Linux Enterprise Server 16.1 Affected

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