CVE-2025-49146pgjdbc Client Allows Fallback to Insecure Authentication Despite channelBinding=require…
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.
What to do
Fixed builds are available from Alpine, Debian, Maven: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libpgjava | Fix pending | UBUNTU-CVE-2025-49146 | |
| Ubuntu 26.04 | libpgjava | Under investigation | UBUNTU-CVE-2025-49146 | |
| Ubuntu 25.10 | libpgjava | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-49146 | |
| Ubuntu 24.04 | libpgjava | Under investigation | UBUNTU-CVE-2025-49146 | |
| Ubuntu 22.04 | libpgjava | Under investigation | UBUNTU-CVE-2025-49146 | |
| Ubuntu 20.04 | libpgjava | Fix pending | UBUNTU-CVE-2025-49146 | |
| Ubuntu 18.04 | libpgjava | Fix pending | UBUNTU-CVE-2025-49146 | |
| Ubuntu 16.04 | libpgjava | Fix pending | UBUNTU-CVE-2025-49146 | |
| Ubuntu 14.04 | libpgjava | Fix pending | UBUNTU-CVE-2025-49146 | |
| Debian 14 | libpgjava | Fixed | 42.7.7-1 | DEBIAN-CVE-2025-49146 |
| Debian 13 | libpgjava | Fixed | 42.7.7-1 | DEBIAN-CVE-2025-49146 |
| Red Hat Enterprise Linux 8 | Judy | Not affected | ||
| Red Hat Enterprise Linux 8 | galera | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-backup | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-common | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-embedded | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-embedded-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-errmsg | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-gssapi-server | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-oqgraph-engine | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-pam | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-server | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-server-galera | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-server-utils | Not affected | ||
| Red Hat Enterprise Linux 8 | mariadb-test | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-assembly-plugin | Not affected | ||
| Red Hat Enterprise Linux 8 | maven-assembly-plugin-javadoc | Not affected | ||
| Alpine Linux 3.24 | java-postgresql-jdbc | Fixed | 42.7.9-r0 | ALPINE-CVE-2025-49146 |
| Maven library | org.postgresql:postgresql | Fixed | 42.7.7 | GHSA-hq9p-pm7w-8p54 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- pgjdbc: affected: >= 42.7.4, < 42.7.7
References
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-hq9p-pm7w-8p54
- https://github.com/pgjdbc/pgjdbc/commit/9217ed16cb2918ab1b6b9258ae97e6ede244d8a0
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.