MODERATE 6.5

CVE-2026-134846

pgjdbc GSS encryption accepts replayed packets and can stop encrypting

Preliminary: affected artifacts were declared by the CNA in the CVE record and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

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 Maven artifacts (1)

ArtifactAffected versionsFixed in
org.postgresql » postgresqlpreliminary
>= 42.2.15, < 42.7.15
42.7.15

Blast radius

1affected artifacts
102affected versions
10,450dependent artifacts (est.)
412,007dependent versions

86% of the dependent artifacts (9,030) still pull an affected version in their latest release.

DepthDependent versions
Direct
94,176
2 hops
170,449
3 hops
91,389
4 hops
38,204
5 hops
13,047
6 hops
4,742

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.