Skip to content
OpenAdvisories
High · 8.2 CVE-2025-49146 BIT-postgresql-jdbc-driver-2025-49146EUVD-2025-18118GHSA-hq9p-pm7w-8p54

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

Published Jun 11, 2025 · Updated Jun 11, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
pgjdbc pgjdbc >= 42.7.4, < 42.7.7 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libpgjava 42.7.7-1 —
Debian 13 libpgjava 42.7.7-1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 libpgjava No fix yet —
Ubuntu 26.04 LTS libpgjava No fix yet —
Ubuntu 25.10 libpgjava No fix yet —
Ubuntu 24.04 LTS libpgjava No fix yet —
Ubuntu 22.04 LTS libpgjava No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS libpgjava No fix yet —
Ubuntu 14.04 LTS libpgjava No fix yet —
Ubuntu Pro 20.04 LTS libpgjava No fix yet —
Ubuntu Pro 18.04 LTS libpgjava No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed postgresql-jdbc 42.7.7-1.1 openSUSE-SU-2025:15264-1
ReleasePackageFixed inAdvisory
Alpine v3.24 java-postgresql-jdbc 42.7.9-r0 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling apicurio-registry +2 3.0.9-r2 —
Wolfi rolling sonarqube-10 25.5.0.107428-r2 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.postgresql:postgresql >= 42.7.4, < 42.7.7 42.7.7 GHSA-hq9p-pm7w-8p54

Advisories 5

References