CVE-2025-49146
MEDIUM 5.9CVSS 3.1pgjdbc Client Allows Fallback to Insecure Authentication Despite channelBinding=require Configuration
pgjdbc is an open source postgresql JDBC Driver. From 42.7.4 and until 42.7.7, 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. This vulnerability is fixed in 42.7.7.
- Published
- 11 Jun 2025
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-287
- Also known as
- BIT-postgresql-jdbc-driver-2025-49146GHSA-hq9p-pm7w-8p54
- Sources
- NVDJSONOSV GHSA-hq9p-pm7w-8p54JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | postgresql | postgresql_jdbc_drivercpe:2.3:a:postgresql:postgresql_jdbc_driver:*:*:*:*:*:*:*:* |
>= 42.7.4, < 42.7.7 | 42.7.7 |
| OSV | Maven | org.postgresql:postgresql | >= 42.7.4, < 42.7.7 | 42.7.7 |
References
- https://github.com/pgjdbc/pgjdbc/commit/9217ed16cb2918ab1b6b9258ae97e6ede244d8a0 · Patch, WEB
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-hq9p-pm7w-8p54 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-49146 · ADVISORY
- https://datatracker.ietf.org/doc/html/rfc5802 · WEB
- https://datatracker.ietf.org/doc/html/rfc7677 · WEB
- https://github.com/pgjdbc/pgjdbc · PACKAGE
- https://www.postgresql.org/docs/current/sasl-authentication.html#SASL-SCRAM-SHA-256 · WEB
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 11 Jun 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 11 Jun 2025)