{"id":"CVE-2026-42198","published":"2026-04-29T15:58:49Z","modified":"2026-09-11T12:09:08Z","title":"pgjdbc: Unbounded PBKDF2 iterations in SCRAM authentication allows CPU exhaustion DoS","vendor":"pgjdbc","product":"pgjdbc","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04117,"percentile":0.91547,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-98qh-xjc8-98pq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pgjdbc/pgjdbc/releases/tag/REL42.7.11","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-42198","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2463857","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42198.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:52928","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24348","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:25030","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:59278","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:59277","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:52978","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:54532","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:52929","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:52930","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:22304","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:66545","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:66488","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:19098","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":23.6,"factors":[{"name":"EPSS percentile","points":18.31},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"pgjdbc","affectedVersions":[{"vendor":"pgjdbc","product":"pgjdbc","versions":[">= 42.2.0, < 42.7.11"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-04-29T18:00:34.512715Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.postgresql:postgresql","vulnerableRanges":[">=42.2.0, <42.7.11"],"patched":["42.7.11"],"from":["GHSA-98qh-xjc8-98pq"],"provenance":"source"}],"summary":{"text":"The pgjdbc PostgreSQL JDBC driver, in versions from 42.2.0 before 42.7.11, does not bound the PBKDF2 iteration count it accepts during SCRAM-SHA-256 authentication. A malicious server that the client connects to, requiring no prior authentication on the client's side, can instruct the driver to run SCRAM with a very large iteration count, tying up client CPU before authentication fails, and repeated or concurrent attempts can exhaust CPU and wedge connection pools; in affected versions, the loginTimeout setting did not stop the worker thread from continuing that computation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:45Z"},"euvd":{"id":"EUVD-2026-26247","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-41946","published":"2022-11-23","fixed":"42.5.1","kev":false},{"cve":"CVE-2024-1597","published":"2024-02-19","fixed":"42.7.2","kev":false},{"cve":"CVE-2025-49146","published":"2025-06-11","fixed":"42.7.7","kev":false,"link":{"from":"CVE-2025-49146","to":"CVE-2026-42198","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.postgresql:postgresql","fromFixed":"42.7.7","toFixed":"42.7.11","daysApart":322}]}},{"cve":"CVE-2026-42198","published":"2026-04-29","fixed":"42.7.11","kev":false},{"cve":"CVE-2026-54291","published":"2026-07-06","fixed":"42.7.12","kev":false,"link":{"from":"CVE-2026-42198","to":"CVE-2026-54291","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.postgresql:postgresql","fromFixed":"42.7.11","toFixed":"42.7.12","daysApart":68}]}}],"package":"Maven:org.postgresql:postgresql"}}