HIGH 8.2

CVE-2025-49146

pgjdbc Client Allows Fallback to Insecure Authentication Despite channelBinding=require Configuration

Description

Impact

When the PostgreSQL JDBC driver is configured with channel binding set to required (default value is prefer), the driver would incorrectly allow connections to proceed with authentication methods that do not support channel binding (such as password, MD5, GSS, or SSPI authentication). This could allow a man-in-the-middle attacker to intercept connections that users believed were protected by channel binding requirements.

Patches

TBD

Workarounds

Configure sslMode=verify-full to prevent MITM attacks.

References

  • https://www.postgresql.org/docs/current/sasl-authentication.html#SASL-SCRAM-SHA-256
  • https://datatracker.ietf.org/doc/html/rfc7677
  • https://datatracker.ietf.org/doc/html/rfc5802

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.postgresql » postgresql
>= 42.7.4, < 42.7.7
42.7.7

Blast radius

1affected artifacts
5affected versions
2,121dependent artifacts (est.)
43,292dependent versions

30% of the dependent artifacts (641) still pull an affected version in their latest release.

DepthDependent versions
Direct
8,978
2 hops
19,065
3 hops
9,654
4 hops
3,231
5 hops
1,863
6 hops
501

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.