Skip to main content

PostgreSQL JDBC Driver EUVDEUVD-2026-133248

| CVE-2026-134843 HIGH
SQL Injection (CWE-89)
2026-11-23 f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
7.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
    Control content of an uploaded stream value
  2. Delivery
    Trigger connection failure (re-exec, driver retry, or unchecked exception)
  3. Exploit
    Partial Bind message left in send buffer
  4. Execution
    Server reads attacker bytes as new Query
  5. Impact
    Execute arbitrary SQL as application DB role

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the connection to fail in one specific way so that part of a Bind message is left in the send buffer: (1) a setBinaryStream() value supplied without a length and over 51200 bytes that is spooled and then the statement is executed a second time (throws a NullPointerException mid-Bind) - this path exists only from 42.6.0 onward; (2) the driver's own automatic retry of a statement after SQLState 0A000 or 26000, which a DDL change can cause; or (3) in all affected versions, an application InputStream parameter that throws an unchecked exception during send. In every case the attacker must control the content of an uploaded (stream) value so that the bytes the server subsequently misreads form an attacker-chosen Query. Limiting factors: the attacker needs influence over an uploaded value's content and must be able to induce one of these failure modes, the SQL runs only with the privileges of the application's existing database role, and the length-less setBinaryStream() trigger does not apply before 42.6.0. The complete fix is upgrading to 42.7.15 as stated by the advisory.

Impact

The input CVSS 3.1 vector (AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H, base 7.5 High) is internally consistent with the mechanism: a network-reachable flaw whose confidentiality, integrity and availability impact is full compromise of the database because attacker-controlled bytes execute as SQL under the application's database role. AC:H and PR:L are well justified - exploitation is not a free remote shot: the connection must first fail in a specific way (a length-less setBinaryStream() value re-executed, the driver's own retry after SQLState 0A000/26000, or an application InputStream throwing an unchecked exception) and the attacker must control the content of an uploaded value, which generally means at least application-level/authenticated interaction. No CISA KEV listing is present in the input, and no EPSS score was provided, so widespread or automated exploitation cannot be asserted; the vuln.today decision label is this_week, i.e. a prioritized-but-not-emergency fix, which matches signals of a serious but condition-dependent SQL-injection-class flaw rather than a trivially wormable one. This is a genuine priority for anyone running pgjdbc below 42.7.15 that exposes stream-valued parameters whose content an attacker can influence, but it is not a low-complexity drive-by. Missing data to note explicitly: no EPSS probability and no KEV status were supplied, so real-world exploitation frequency is unconfirmed.

Exploit ScenarioDerived

An attacker who can control the content of a value uploaded through the application (for example a binary stream parameter) induces the connection to fail in the required way - a setBinaryStream() value without a length that is executed again, the driver's automatic retry after SQLState 0A000/26000, or an application InputStream that throws an unchecked exception - leaving part of a Bind message in the driver's send buffer. The PostgreSQL server then reads the attacker's later bytes as a new Query message and runs them as SQL under the application's database role, yielding full read/write database compromise. The GHSA advisory describes a conceptual proof of concept; it is not verified as working exploit code.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

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

Alert me

AnalysisAIv1 – Nov 23, 2026

SQL injection in the PostgreSQL JDBC Driver (pgjdbc) before 42.7.15 lets whoever controls the content of an uploaded stream value run arbitrary SQL as the application's database role, but only after the connection has been left in a specific half-written state. The driver closes the connection after an IOException but not after an unchecked exception, so part of a Bind message stays in the send buffer and the server reads the bytes of a later value as a new Query message. The assessed vector (AV:N/AC:H/PR:L/UI:N) reflects that the attacker needs low-privileged access and must be able to engineer one of the failure modes: a length-less setBinaryStream() value re-executed in 42.6.0 and later, the driver's own retry after SQLState 0A000 or 26000, or an application InputStream that throws an unchecked exception in any affected version; the vendor advisory includes a public PoC reference describing that failure sequence, it is not verified as working exploit code, and there is no confirmed active exploitation (no CISA KEV listing).

RemediationAI

Upgrade to pgjdbc 42.7.15, the version the vendor advisory names as the complete fix for CVE-2026-134843 (GHSA-cww3-qmc2-mjmr, https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-cww3-qmc2-mjmr); the advisory states that upgrading is the complete fix and does not document a workaround, and no vendor-released patch other than 42.7.15 is identified in the available data. Organizations that cannot move immediately can reduce exposure by inventorying driver versions in all deployments and dependencies, giving priority to services running 42.6.0 or later where the length-less setBinaryStream() re-execution path exists, and by treating any application code that supplies length-less binary streams or wraps InputStream parameters that may throw unchecked exceptions as the highest-risk call sites, since those are the documented conditions under which a Bind message is left half-written on an otherwise open connection. Note that this is a library-level upgrade, so verifying the shaded or bundled driver inside application artifacts is required, not just changing the declared dependency.

Affected VersionsENISA

pgjdbc 0 <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, where an extended-query cycle sends a Bind message containing parameter values followed by Execute. When an unchecked exception interrupts the send path mid-Bind, pgjdbc does not tear down the connection as it does for IOException, so a partially written Bind remains in the socket send buffer while the connection stays usable. The server then consumes the bytes of whatever value is uploaded next as the remainder of that Bind, and the following bytes can be interpreted as a new Query message carrying attacker-influenced text - a classic CWE-89 improper neutralization of SQL command problem, with CWE-755 improper handling of exceptional conditions as the underlying enabler. Three triggers are documented: since 42.6.0, a setBinaryStream() value supplied without a length and larger than 51200 bytes is spooled and released after sending, and re-executing the statement throws a NullPointerException mid-Bind; the driver's automatic retry after SQLState 0A000 (feature_not_supported) or 26000 (invalid_sql_statement_name), which a DDL change can provoke, has the same effect; and in every affected version an application-provided InputStream parameter that throws an unchecked exception during send reproduces the partial-write condition. The result is limited to the privileges of the application's existing database role rather than a privilege escalation inside PostgreSQL.

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.5 HIGH
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.5 HIGH

AC:H because a specific connection-failure condition must occur; PR:L because the attacker needs application-level control of an uploaded value; C/I/A:H since arbitrary SQL runs as the application's database role.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/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
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

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

DescriptionCVE.org

pgjdbc, the PostgreSQL JDBC Driver, does not close the connection when an unchecked exception interrupts a request. Part of a Bind message stays in the send buffer, and the server reads the bytes that follow as the rest of it. The bytes of a value uploaded later on the same connection can then run as a SQL command. Since 42.6.0 a setBinaryStream() value without a length that is executed again throws such an exception, as does the driver's own retry after SQLState 0A000 or 26000. An application stream that throws an unchecked exception has the same effect in all versions. All versions before 42.7.15 are affected, and 42.7.15 fixes the problem.

Technical POC Analysis

Bug class: SQL injection (CWE-89) that arises from improper handling of exceptional conditions (CWE-755).

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 SQL injection flaw in the PostgreSQL JDBC Driver (pgjdbc), versions before 42.7.15, could allow a low-privileged user who controls uploaded stream data to execute arbitrary SQL under the application's database role. Any system using the affected driver to handle user-supplied stream content is potentially exposed, meaning data confidentiality, integrity, and privilege boundaries tied to the application's database account could be compromised. Leadership should care because this affects the trust boundary between application users and core database infrastructure.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include enforcing least-privilege database roles for applications processing user-supplied streams, limiting which users can submit stream values, monitoring database query logs for anomalous SQL, and reviewing applications handling setBinaryStream() values and retry behavior on SQLState 0A000 or 26000.

Threat Intelligence Overview

Prevalence
High
pgjdbc is the standard JDBC driver for PostgreSQL in Java applications
Data Quality
4 sources
Confidence: Medium
EUVD NVD CVE.org Vulnrichment GitHub

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 N/A
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
Total

Priority Score

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

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

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