CVE-2026-42198 Details
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.
A client-side denial-of-service vulnerability has been identified in the PostgreSQL JDBC driver (pgjdbc) versions 42.2.0 prior to 42.7.11. The issue arises during SCRAM-SHA-256 authentication, where a malicious server can send a very large iteration count. This causes the client to use an unbounded amount of CPU time processing the PBKDF2 computation, tying up a CPU core with each authentication attempt. Repeated or concurrent attempts can exhaust client CPU resources and disrupt connection pools. In the affected versions, the 'loginTimeout' parameter did not effectively mitigate the issue, as it could stop the waiting process but not the ongoing CPU-intensive computation. The vulnerability does not bypass authentication, escalate privileges, or directly disclose passwords.
Users can upgrade to pgjdbc version 42.7.11 or later, which patches the vulnerability by introducing a 'scramMaxIterations' connection property to limit the number of PBKDF2 iterations accepted from the server. Until the upgrade is applied, it is recommended to connect only to trusted PostgreSQL servers, verify server identity with TLS, and avoid relying solely on 'loginTimeout' as a mitigation measure.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-770 | Allocation of Resources Without Limits or Throttling | redhat-SADP |
| CWE-770 | Allocation of Resources Without Limits or Throttling | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| postgresql postgresql jdbc driver | >= 42.2.0, < 42.7.11 |
CPE
Remediation
| |
Change History
12 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 11, 2026 | CVE Modified | redhat-SADP |
| Sep 11, 2026 | CVE Modified | [email protected] |
| Aug 18, 2026 | CVE Modified | redhat-SADP |
| Aug 14, 2026 | CVE Modified | redhat-SADP |
| Aug 11, 2026 | CVE Modified | redhat-SADP |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jul 10, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 1, 2026 | Initial Analysis | [email protected] |
| Apr 29, 2026 | New CVE Received | [email protected] |