CVE-2026-42198 is a resource exhaustion vulnerability in the PostgreSQL JDBC driver (pgjdbc) affecting versions prior to 42.7.11. When using SCRAM-SHA-256 authentication, a malicious or compromised server can specify an arbitrarily high iteration count for PBKDF2, causing client threads to execute computationally intensive hashing indefinitely. The loginTimeout setting does not interrupt this — it only signals the calling thread to give up, leaving the worker thread running unhindered.

The critical operational danger is not CPU consumption itself but the broken recovery contract. Connection pools expect connections to either succeed quickly or fail cleanly, freeing the pool slot. A zombie PBKDF2 thread holding a pool slot does neither — the connection hangs indefinitely, and the only recovery path is pool restart or JVM intervention. In containerized microservices with shared poolers like PgBouncer, a single compromised application can wedge the entire shared infrastructure, propagating the failure beyond the directly affected service.

The patch in version 42.7.11 caps SCRAM-SHA-256 iterations at 20,000 regardless of what the server requests or what timeout is configured. This moves the trust boundary into the driver — the right place — but it also reveals a deeper design flaw: the SCRAM-SHA-256 protocol puts clients at the server's mercy on iteration count by design. Every compliant implementation faced this gap. You should upgrade to 42.7.11 or later immediately.

Beyond patching, audit your infrastructure for this pattern. Other database drivers implementing SCRAM-SHA-256 likely have the same vulnerability — this is a known class of failure where server-controlled numeric parameters lack client-side bounds. Watch for connection pool exhaustion with no clear cause in production; if authentication servers are untrusted or accessible via proxies, this vulnerability may already be exploitable. The symptom signature is thread pool saturation combined with authentication timeouts that don't respect your configured loginTimeout — that's your diagnostic hook.