---
id: CVE-2026-134846
title: >-
  pgjdbc, the PostgreSQL JDBC Driver, does not check the token state that
  GSSContext.unwrap() reports on a GSS-encrypted connection
summary: >-
  pgjdbc, the PostgreSQL JDBC Driver, does not check the token state that
  GSSContext.unwrap() reports on a GSS-encrypted connection. An attacker on the
  network path can replay an earlier server packet from the same connection, and
  the driv…
severity: medium
cvss: 6.5
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N'
cwe:
  - CWE-294
  - CWE-319
vendor: pgjdbc
product: 'org.postgresql:postgresql'
affected:
  - 'org.postgresql:postgresql >= 42.2.15 < 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-134846'
references:
  - url: 'https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-hcjc-54fp-2p42'
    label: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
  - url: 'https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-hcjc-54fp-2p42'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-23T19:29:28.972694Z'
ingestedAt: '2026-11-23T20:35:33.368Z'
epss: 0.00108
epssPercentile: 0.01201
---

## Overview

pgjdbc, the PostgreSQL JDBC Driver, does not check the token state that GSSContext.unwrap() reports on a GSS-encrypted connection. An attacker on the network path can replay an earlier server packet from the same connection, and the driver accepts it as the answer to the current query. The driver also shares one MessageProp between reading and writing. One integrity-only packet from the server then makes the driver send later SQL and parameters without encryption. Only connections with gssEncMode=prefer or require that start GSS encryption are affected. Versions 42.2.15 through 42.7.14 are affected, and 42.7.15 fixes the problem.

## Remediation

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