---
id: CVE-2026-134843
title: >-
  pgjdbc, the PostgreSQL JDBC Driver, does not close the connection when an
  unchecked exception interrupts a request
summary: >-
  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 …
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-89
  - CWE-755
vendor: pgjdbc
product: 'org.postgresql:postgresql'
affected:
  - 'org.postgresql:postgresql < 42.7.15'
published: '2026-11-23'
updated: '2026-11-24'
sourceUpdated: '2026-11-24T18:56:39.360'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-134843'
references:
  - url: 'https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-cww3-qmc2-mjmr'
    label: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-11-23T19:33:02.946776Z'
ingestedAt: '2026-11-23T20:35:33.367Z'
epss: 0.00386
epssPercentile: 0.24439
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
