CVE-2026-134846: pgjdbc GSS encryption accepts replayed packets and can stop encrypting
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pgjdbcto a version that resolves this vulnerability.Fixed in 42.7.15
Event History
Frequently Asked Questions
Which deployments are affected?
Only pgjdbc connections configured with gssEncMode=prefer or gssEncMode=require that actually establish GSS encryption are affected. Versions 42.2.15 through 42.7.14 are affected.
What does an attacker need to exploit this?
The attacker must be on the network path for the affected GSS-encrypted connection. They can replay an earlier server packet from that same connection, causing the driver to accept it as the response to a current query.
What is the impact of the encryption failure?
After receiving one integrity-only packet from the server, the driver can send subsequent SQL statements and parameters without encryption. This can expose query contents and allow modification of transmitted SQL or parameters by an on-path attacker.
What version fixes the issue?
pgjdbc version 42.7.15 fixes the problem. Systems using affected versions should update to that version or later.