Vulnerability · Published Apr 29, 2026 · Assigned by GitHub_M
CVE-2026-42198pgjdbc: Unbounded PBKDF2 iterations in SCRAM authentication allows CPU exhaustion DoS
High 7.5
In plain English
A high-severity resource allocation without limits in pgjdbc from pgjdbc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.3% (higher than 88% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | postgresql-jdbc | 42.7.2-1.el10_2.2 | ALSA-2026:24348 |
| AlmaLinux:8 | postgresql-jdbc | 42.2.14-4.el8_10 | ALSA-2026:25030 |
| AlmaLinux:9 | postgresql-jdbc | 42.2.28-2.el9_8.2 | ALSA-2026:22304 |
| AlmaLinux:8 | postgresql-jdbc-javadoc | 42.2.14-4.el8_10 | ALSA-2026:25030 |
| Debian:12 | libpgjava | no fix listed | DEBIAN-CVE-2026-42198 |
| Debian:13 | libpgjava | no fix listed | DEBIAN-CVE-2026-42198 |
| Debian:14 | libpgjava | 42.7.11-1 | DEBIAN-CVE-2026-42198 |
| Maven | org.postgresql:postgresql | 42.7.11 | GHSA-98qh-xjc8-98pq |
| Rocky Linux:10 | postgresql-jdbc | 0:42.7.2-1.el10_2.2 | RLSA-2026:24348 |
| Rocky Linux:8 | postgresql-jdbc | 0:42.2.14-4.el8_10 | RLSA-2026:25030 |
| Rocky Linux:9 | postgresql-jdbc | 0:42.2.28-2.el9_8.2 | RLSA-2026:22304 |
| Ubuntu:22.04:LTS | libpgjava | no fix listed | UBUNTU-CVE-2026-42198 |
| Ubuntu:24.04:LTS | libpgjava | no fix listed | UBUNTU-CVE-2026-42198 |
| Ubuntu:25.10 | libpgjava | no fix listed | UBUNTU-CVE-2026-42198 |
| Ubuntu:26.04:LTS | libpgjava | no fix listed | UBUNTU-CVE-2026-42198 |
| Ubuntu:26.10 | libpgjava | no fix listed | UBUNTU-CVE-2026-42198 |
Affected products (as reported)
Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-98qh-xjc8-98pq x_refsource_CONFIRM
- https://github.com/pgjdbc/pgjdbc/releases/tag/REL42.7.11 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-42198 vdb-entry, x_refsource_REDHAT
- RHBZ#2463857 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42198.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:52928 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:24348 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:25030 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:59278 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:59277 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:52978 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:54532 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:52929 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:52930 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:22304 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:66545 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:66488 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:19098 vendor-advisory, x_refsource_REDHAT