CVE-2026-42198pgjdbc: Unbounded PBKDF2 iterations in SCRAM authentication allows CPU exhaustion DoS
pgjdbc is an open source postgresql JDBC Driver. From version 42.2.0 to before version 42.7.11, pgjdbc is vulnerable to a client-side denial of service during SCRAM-SHA-256 authentication. A malicious server can instruct the driver to perform SCRAM authentication with a very large iteration count. With a large enough value, the client spends an unbounded amount of CPU time inside PBKDF2 before authentication can fail. A single attempt ties up a CPU core. Repeated or concurrent attempts exhaust client CPU and can wedge connection pools. In affected versions, loginTimeout did not fully mitigate this problem. When loginTimeout expired, the caller could stop waiting, but the worker thread performing the connection attempt could continue running and burning CPU inside the SCRAM PBKDF2 computation. This issue has been patched in version 42.7.11.
What to do
Fixed builds are available from AlmaLinux, Debian, Maven, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Debian, Ubuntu have 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-2026-42198 | |
| Ubuntu 26.04 | libpgjava | Fix pending | UBUNTU-CVE-2026-42198 | |
| Ubuntu 25.10 | libpgjava | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-42198 | |
| Ubuntu 24.04 | libpgjava | Fix pending | UBUNTU-CVE-2026-42198 | |
| Ubuntu 22.04 | libpgjava | Fix pending | UBUNTU-CVE-2026-42198 | |
| Ubuntu 20.04 | libpgjava | Fix pending | UBUNTU-CVE-2026-42198 | |
| Debian 14 | libpgjava | Fixed | 42.7.11-1 | DEBIAN-CVE-2026-42198 |
| Debian 13 | libpgjava | Fix pending | DEBIAN-CVE-2026-42198 | |
| Debian 12 | libpgjava | Fix pending | DEBIAN-CVE-2026-42198 | |
| Red Hat Enterprise Linux 10 | postgresql-jdbc | Fixed | 0:42.7.2-1.el10_2.2 | RHSA-2026:24348 |
| Red Hat Enterprise Linux 9 | postgresql-jdbc | Fixed | 0:42.2.28-2.el9_8.2 | RHSA-2026:22304 |
| Red Hat Enterprise Linux 8 | postgresql-jdbc | Fixed | 0:42.2.14-4.el8_10 | RHSA-2026:25030 |
| Red Hat Enterprise Linux 8 | postgresql-jdbc-javadoc | Fixed | 0:42.2.14-4.el8_10 | RHSA-2026:25030 |
| Red Hat Enterprise Linux 7 | postgresql-jdbc | Not affected | ||
| Red Hat Enterprise Linux 7 | postgresql-jdbc-javadoc | Not affected | ||
| Red Hat Enterprise Linux 6 | postgresql-jdbc | Will not fix Will not fix | ||
| AlmaLinux 10 | postgresql-jdbc | Fixed | 42.7.2-1.el10_2.2 | ALSA-2026:24348 |
| AlmaLinux 9 | postgresql-jdbc | Fixed | 42.2.28-2.el9_8.2 | ALSA-2026:22304 |
| AlmaLinux 8 | postgresql-jdbc | Fixed | 42.2.14-4.el8_10 | ALSA-2026:25030 |
| AlmaLinux 8 | postgresql-jdbc-javadoc | Fixed | 42.2.14-4.el8_10 | ALSA-2026:25030 |
| Rocky Linux 10 | postgresql-jdbc | Fixed | 0:42.7.2-1.el10_2.2 | RLSA-2026:24348 |
| Rocky Linux 9 | postgresql-jdbc | Fixed | 0:42.2.28-2.el9_8.2 | RLSA-2026:22304 |
| Rocky Linux 8 | postgresql-jdbc | Fixed | 0:42.2.14-4.el8_10 | RLSA-2026:25030 |
| Maven library | org.postgresql:postgresql | Fixed | 42.7.11 | GHSA-98qh-xjc8-98pq |
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.2.0, < 42.7.11
References
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-98qh-xjc8-98pq
- https://github.com/pgjdbc/pgjdbc/releases/tag/REL42.7.11
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.