CVEfocus › CVE database › CVE-2026-42198

CVE-2026-42198pgjdbc: Unbounded PBKDF2 iterations in SCRAM authentication allows CPU exhaustion DoS

CVSS 7.5 HighEPSS 4.1% (higher than 92% of CVEs)Published 2026-04-29Updated 2026-09-11Assigner: GitHub_M

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.

CWE-770

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

13Fixed
7Fix pending
2Will not fix
2Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libpgjavaFix pendingUBUNTU-CVE-2026-42198
Ubuntu 26.04libpgjavaFix pendingUBUNTU-CVE-2026-42198
Ubuntu 25.10libpgjavaWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-42198
Ubuntu 24.04libpgjavaFix pendingUBUNTU-CVE-2026-42198
Ubuntu 22.04libpgjavaFix pendingUBUNTU-CVE-2026-42198
Ubuntu 20.04libpgjavaFix pendingUBUNTU-CVE-2026-42198
Debian 14libpgjavaFixed42.7.11-1DEBIAN-CVE-2026-42198
Debian 13libpgjavaFix pendingDEBIAN-CVE-2026-42198
Debian 12libpgjavaFix pendingDEBIAN-CVE-2026-42198
Red Hat Enterprise Linux 10postgresql-jdbcFixed0:42.7.2-1.el10_2.2RHSA-2026:24348
Red Hat Enterprise Linux 9postgresql-jdbcFixed0:42.2.28-2.el9_8.2RHSA-2026:22304
Red Hat Enterprise Linux 8postgresql-jdbcFixed0:42.2.14-4.el8_10RHSA-2026:25030
Red Hat Enterprise Linux 8postgresql-jdbc-javadocFixed0:42.2.14-4.el8_10RHSA-2026:25030
Red Hat Enterprise Linux 7postgresql-jdbcNot affected
Red Hat Enterprise Linux 7postgresql-jdbc-javadocNot affected
Red Hat Enterprise Linux 6postgresql-jdbcWill not fix
Will not fix
AlmaLinux 10postgresql-jdbcFixed42.7.2-1.el10_2.2ALSA-2026:24348
AlmaLinux 9postgresql-jdbcFixed42.2.28-2.el9_8.2ALSA-2026:22304
AlmaLinux 8postgresql-jdbcFixed42.2.14-4.el8_10ALSA-2026:25030
AlmaLinux 8postgresql-jdbc-javadocFixed42.2.14-4.el8_10ALSA-2026:25030
Rocky Linux 10postgresql-jdbcFixed0:42.7.2-1.el10_2.2RLSA-2026:24348
Rocky Linux 9postgresql-jdbcFixed0:42.2.28-2.el9_8.2RLSA-2026:22304
Rocky Linux 8postgresql-jdbcFixed0:42.2.14-4.el8_10RLSA-2026:25030
Maven libraryorg.postgresql:postgresqlFixed42.7.11GHSA-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.

References

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.