CVE-2026-42198: pgjdbc: 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.
Security readout for executives and security teams
Plain-English summary
Affected Java applications using pgjdbc can be forced by a malicious PostgreSQL-compatible server to spend excessive CPU during login. One connection attempt can occupy a CPU core, and repeated attempts can exhaust client CPU or wedge connection pools. The issue is fixed in pgjdbc 42.7.11.
Executive priority
Treat this as a high-priority availability fix for Java applications that depend on PostgreSQL. The main business risk is service degradation from CPU exhaustion, not data theft. Prioritize critical services, shared connection pools, and systems with externally influenced database routing.
Technical view
pgjdbc versions 42.2.0 through before 42.7.11 perform SCRAM-SHA-256 authentication without bounding the PBKDF2 iteration count supplied by the server. A hostile server can choose an extremely large count, causing client-side CPU exhaustion before authentication fails. loginTimeout did not stop the underlying worker thread from continuing the computation.
Likely exposure
Exposure is most likely in Java services using pgjdbc 42.2.0 to before 42.7.11, especially where connection strings can reach untrusted, compromised, or misdirected PostgreSQL endpoints. Internet-facing applications are indirectly exposed if attackers can influence database destinations, DNS, configuration, or connection retry behavior.
Exploitation context
The source bundle reports no KEV listing and provides no evidence of active exploitation. Exploitation requires a malicious or controlled server endpoint involved in SCRAM authentication. The impact is availability only: CPU exhaustion on client systems and possible connection pool wedging.
Researcher notes
Key detail: loginTimeout was not a complete control because worker threads could continue burning CPU after callers stopped waiting. Validate actual runtime dependency resolution, not only declared versions, because shaded or bundled JDBC drivers may differ from manifest expectations.
Mitigation direction
Upgrade pgjdbc to version 42.7.11 or later.
Apply relevant vendor advisories, including Red Hat errata where applicable.
Inventory applications and containers that bundle vulnerable pgjdbc versions.
Restrict database connectivity to trusted PostgreSQL endpoints.
Review connection retry behavior for excessive repeated authentication attempts.
Validation and detection
Check dependency manifests, SBOMs, and packaged JARs for pgjdbc versions.
Confirm production runtimes load pgjdbc 42.7.11 or later.
Identify services using SCRAM-SHA-256 PostgreSQL authentication.
Review connection pool metrics for stuck or CPU-heavy login attempts.
Verify Red Hat affected packages against applicable errata.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-770: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-770 · source CWE mapping
Allocation of Resources Without Limits or Throttling
Allocation of Resources Without Limits or Throttling represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.