CVE-2025-49146
JSON

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 packageVersionsReported by
pgjdbc pgjdbc>= 42.7.4, < 42.7.7CVE List
org.postgresql:postgresql (Maven)from 42.7.4 before 42.7.7GitHub Advisory Database
postgresql postgresql_jdbc_driverfrom 42.7.4 before 42.7.7NVD
postgresql-jdbc-driver (Bitnami)from 42.7.4 before 42.7.7Bitnami Vulnerability Database

All scores

GitHub_M8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
GitHub8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
NVD5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-287

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

SourceRecordLicence
CVE ListCVE-2025-49146 changed 2025-06-11CVE Terms of Use
GitHub Advisory DatabaseGHSA-hq9p-pm7w-8p54 changed 2026-09-10CC-BY-4.0
NVDCVE-2025-49146 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-POSTGRESQL-JDBC-DRIVER-2025-49146 changed 2026-09-10Apache-2.0