What is CVE-2026-134843?
CVE-2026-134843 is a high-severity SQL injection vulnerability in pgjdbc, published on 23 Nov 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
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.
How severe is CVE-2026-134843?
CVE-2026-134843 scores 7.5 out of 10 under CVSS 3.1, which is high severity. It was scored by PostgreSQL.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Which versions are affected by CVE-2026-134843?
An affected version is only exploitable if your software calls setBinaryStream(). Many projects that include it are not exposed.
How do I fix CVE-2026-134843?
Upgrade pgjdbc to 42.7.15 or later. The advisory says that version fixes it.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2026-134843 being exploited?
There is no known exploitation of CVE-2026-134843 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-134843, GHSA-cww3-qmc2-mjmr, UBUNTU-CVE-2026-134843.