CVE-2026-134846: pgjdbc GSS encryption accepts replayed packets and can stop encrypting

Published Nov 23, 2026
·
Updated

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

1 affected component
maven/org.postgresql/postgresql>=42.2.15<=42.7.14

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pgjdbc to a version that resolves this vulnerability.

    Fixed in 42.7.15

Event History

Nov 23, 2026
CVE Published
via MITRE·04:59 PM
Data Sourced
via MITRE·04:59 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

What version fixes the issue?

pgjdbc version 42.7.15 fixes the problem. Systems using affected versions should update to that version or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203