pgjdbc GSS encryption accepts replayed packets and can stop encrypting

State
Published
Severity
6.5 Medium
Published
Nov 23, 2026
Updated
Nov 23, 2026
Reserved
Nov 22, 2026

Read the record on cve.org

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.

ProductVersions
pgjdbc pgjdbc42.2.15 to before 42.7.15 Affected

Weaknesses

  • CWE-294 Authentication Bypass by Capture-replay
  • CWE-319 Cleartext Transmission of Sensitive Information

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.