Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessControl content of an uploaded stream value
-
DeliveryTrigger connection failure (re-exec, driver retry, or unchecked exception)
-
ExploitPartial Bind message left in send buffer
-
ExecutionServer reads attacker bytes as new Query
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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, 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
AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
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 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.
Articles & Coverage 1
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
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.
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
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
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
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-133248
NVD
CVE.org
Vulnrichment
GitHub
Exploit-DB