---
id: CVE-2026-42198
title: pgjdbc is an open source postgresql JDBC Driver
summary: >-
  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 pe…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-770
vendor: postgresql
product: postgresql_jdbc_driver
affected:
  - 'postgresql_jdbc_driver >= 42.2.0, < 42.7.11'
patched:
  - postgresql_jdbc_driver 42.7.11
published: '2026-04-29'
updated: '2026-09-11'
sourceUpdated: '2026-09-11T13:17:58.347'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-42198'
references:
  - url: 'https://github.com/pgjdbc/pgjdbc/releases/tag/REL42.7.11'
    label: security-advisories@github.com
  - url: 'https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-98qh-xjc8-98pq'
    label: security-advisories@github.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:19098'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:22304'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:24348'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:25030'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:52928'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:52929'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:52930'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:52978'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:54532'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:59277'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:59278'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:66488'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:66545'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/security/cve/CVE-2026-42198'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2463857'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42198.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-42198'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-42198'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-04-29T18:00:34.512715Z'
epss: 0.04117
epssPercentile: 0.90412
ingestedAt: '2026-07-10T14:03:54.797Z'
---

## Overview

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

- `postgresql_jdbc_driver >= 42.2.0, < 42.7.11`

## Remediation

Upgrade past the affected range:

- `postgresql_jdbc_driver 42.7.11`

## Vendor advisories

- **RHSA-2026:52928** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream EUS (v. 10.0) · released 2026-08-10 · [advisory](https://access.redhat.com/errata/RHSA-2026:52928)
- **RHSA-2026:24348** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 10) · released 2026-06-08 · [advisory](https://access.redhat.com/errata/RHSA-2026:24348)
- **RHSA-2026:25030** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 8) · released 2026-06-10 · [advisory](https://access.redhat.com/errata/RHSA-2026:25030)
- **RHSA-2026:59278** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream AUS (v.8.4), Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4) · released 2026-08-25 · [advisory](https://access.redhat.com/errata/RHSA-2026:59278)
- **RHSA-2026:59277** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream AUS (v.8.6), Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.6) · released 2026-08-25 · [advisory](https://access.redhat.com/errata/RHSA-2026:59277)
- **RHSA-2026:52978** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream E4S (v.8.8), Red Hat Enterprise Linux AppStream TUS (v.8.8) · released 2026-08-10 · [advisory](https://access.redhat.com/errata/RHSA-2026:52978)
- **RHSA-2026:54532** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream E4S (v.9.2) · released 2026-08-13 · [advisory](https://access.redhat.com/errata/RHSA-2026:54532)
- **RHSA-2026:52929** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream E4S (v.9.4) · released 2026-08-10 · [advisory](https://access.redhat.com/errata/RHSA-2026:52929)
- **RHSA-2026:52930** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream EUS (v.9.6) · released 2026-08-10 · [advisory](https://access.redhat.com/errata/RHSA-2026:52930)
- **RHSA-2026:22304** · Red Hat · fixed in: Red Hat Enterprise Linux AppStream (v. 9) · released 2026-06-01 · [advisory](https://access.redhat.com/errata/RHSA-2026:22304)
- **RHSA-2026:66545** · Red Hat · fixed in: Red Hat AMQ Broker 7.13.6 · released 2026-09-10 · [advisory](https://access.redhat.com/errata/RHSA-2026:66545)
- **Red Hat VEX** · Important · affected: Red Hat Enterprise Linux 6 · no fix planned: Red Hat Enterprise Linux 6 · updated 2026-09-10 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42198.json)
