CVE-2026-134846

pgjdbc GSS encryption accepts replayed packets and can stop encrypting

Medium published · updated

6.5
CVSS score out of 10 · NVD (f86ef6dc-4d3a-42ad-8f28-e6d5547a5007)

Description

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.

Affected products and versions

Product / packageEcosystem / vendorVersionsFixed inSource
org.postgresql:postgresql maven 42.2.15 → <42.7.1542.7.15 CVE.org
pgjdbc pgjdbc 42.2.15 → <42.7.1542.7.15 CVE.org

References