CVE-2025-49146: pgjdbc Client Allows Fallback to Insecure Authentication Despite channelBinding=require Configuration
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).
Published Jun 11, 2025
Affected packages
org.postgresql:postgresql
- Ecosystem
- Maven
- Affected
- >= 42.7.4, < 42.7.7
- Fixed in
- 42.7.7
- Check
mvn dependency:tree -Dincludes=org.postgresql:postgresql
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
Credited to jawj.
References
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-hq9p-pm7w-8p54
- https://github.com/pgjdbc/pgjdbc/commit/9217ed16cb2918ab1b6b9258ae97e6ede244d8a0
- https://datatracker.ietf.org/doc/html/rfc5802
- https://datatracker.ietf.org/doc/html/rfc7677
- https://www.postgresql.org/docs/current/sasl-authentication.html#SASL-SCRAM-SHA-256
- https://nvd.nist.gov/vuln/detail/CVE-2025-49146
- https://github.com/advisories/GHSA-hq9p-pm7w-8p54
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-54291
PostgreSQL JDBC Driver: Silent channel-binding authentication downgrade via unsupported certificate algorithms
high8.2Jul 21, 2026CVE-2026-42198
pgjdbc: Unbounded PBKDF2 iterations in SCRAM authentication allows CPU exhaustion DoS
high7.5May 5, 2026CVE-2024-1597
org.postgresql:postgresql vulnerable to SQL Injection via line comment generation
critical10.0Feb 21, 2024
