8.2high
pgjdbc Client Allows Fallback to Insecure Authentication Despite channelBinding=require Configuration
- Severity
- 8.2high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.49% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-hq9p-pm7w-8p54BIT-POSTGRESQL-JDBC-DRIVER-2025-49146
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| pgjdbc pgjdbc | >= 42.7.4, < 42.7.7 | CVE List |
| org.postgresql:postgresql (Maven) | from 42.7.4 before 42.7.7 | GitHub Advisory Database |
| postgresql postgresql_jdbc_driver | from 42.7.4 before 42.7.7 | NVD |
| postgresql-jdbc-driver (Bitnami) | from 42.7.4 before 42.7.7 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N |
| GitHub | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N |
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
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
NVD (es)
pgjdbc es un controlador JDBC de PostgreSQL de código abierto. Desde la versión 42.7.4 hasta la 42.7.7, cuando el controlador JDBC de PostgreSQL se configura con el enlace de canal establecido como obligatorio (el valor predeterminado es prefer), el controlador permitía incorrectamente que las conexiones procedieran con métodos de autenticación que no admiten el enlace de canal (como la autenticación por contraseña, MD5, GSS o SSPI). Esto podría permitir que un atacante intermediario interceptara conexiones que los usuarios creían protegidas por los requisitos de enlace de canal. Esta vulnerabilidad se corrigió en la versión 42.7.7.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-49146 changed 2025-06-11 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hq9p-pm7w-8p54 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-49146 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-POSTGRESQL-JDBC-DRIVER-2025-49146 changed 2026-09-10 | Apache-2.0 |