CVE-2026-6669

Unbounded SCRAM iteration count causes CPU exhaustion in PgBouncer

Published Sep 23, 2026 CVSS 3.1 · 5.9 Medium EPSS < 1% KEV · Not listed
Description
Missing upper bound on the key derivation iteration count accepted during SCRAM authentication to a backend server in PgBouncer through 1.25.2 allows a malicious or compromised PostgreSQL backend to cause uncontrolled CPU consumption in PgBouncer. The resulting key derivation cannot be interrupted in frontend builds such as PgBouncer. Because PgBouncer serves all clients from a single process, one backend can in this way stop it from serving traffic for every other database and client it is pooling, so the failure of a single backend is not contained.

Analysis

AI-generated

Technical impact

The vulnerability is an unbounded SCRAM iteration count accepted during authentication to a backend server. The absence of an upper bound enables a malicious or compromised PostgreSQL backend to cause uncontrolled CPU consumption in PgBouncer. The key derivation cannot be interrupted and, because PgBouncer runs as a single process, the excessive workload from one backend can stall the entire service, preventing all connected clients from being served. The issue affects PgBouncer versions up through 1.25.2. The product is PgBouncer, a connection pooler for PostgreSQL. The vulnerability is reported for all builds that use the frontend process without a set limit, and it applies specifically to the SCRAM authentication mechanism. The CVSS score of 5.9 indicates moderate severity; the EPSS score is missing, so the exploitation probability is undetermined. The vulnerability is listed as not in the CISA KEV catalog. Attackers with control over a backend server can exploit the flaw by configuring an exceptionally high SCRAM iteration count in the authentication request; this would cause PgBouncer to consume excessive CPU resources until it becomes unresponsive to other clients.

Affected Systems

The affected product is PgBouncer, the PostgreSQL connection pooler, in all releases up through version 1.25.2. Any deployment using the frontend build without an upper bound on the SCRAM iteration count during authentication is vulnerable.

Risk and Exploitability

The moderate severity CVSS score of 5.9 reflects the potential for a denial of service, yet the EPSS score is currently unavailable, meaning the likelihood of exploitation in the wild is unknown. The vulnerability is not listed in CISA’s KEV catalog. The likely exploitation scenario involves a malicious or compromised PostgreSQL backend that sets an unusually high SCRAM iteration count during the authentication handshake observed by PgBouncer. Because PgBouncer’s key derivation routine cannot be interrupted, this produces a sustained CPU drain that stalls the single-process service and deprives all connected clients of service. The primary attack vector is therefore an internal or compromised backend server; an external attacker would need to gain control of such a backend to trigger the effect.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade PgBouncer to version 1.25.3 or later to enforce a maximum SCRAM iteration count.
  • Configure the PostgreSQL backend to limit SCRAM iterations to a safe threshold such as 100,000.
  • Restart PgBouncer after configuration changes so the new limits take effect.
  • Continuously monitor CPU usage and PgBouncer logs for abnormal spikes, and isolate or throttle any backend that exceeds expected computational load.

Generated by OpenCVE AI on September 24, 2026 at 01:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Pgbouncer
Pgbouncer pgbouncer
Vendors & Products Pgbouncer
Pgbouncer pgbouncer
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Missing upper bound on the key derivation iteration count accepted during SCRAM authentication to a backend server in PgBouncer through 1.25.2 allows a malicious or compromised PostgreSQL backend to cause uncontrolled CPU consumption in PgBouncer. The resulting key derivation cannot be interrupted in frontend builds such as PgBouncer. Because PgBouncer serves all clients from a single process, one backend can in this way stop it from serving traffic for every other database and client it is pooling, so the failure of a single backend is not contained.
Title Unbounded SCRAM iteration count causes CPU exhaustion in PgBouncer
Weaknesses CWE-400
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
Sep 23, 2026, 4:46 PM
Reserved
Apr 20, 2026, 12:25 PM
Status
Awaiting Analysis
Published
Sep 23, 2026, 5:17 PM
Modified
Sep 23, 2026, 7:40 PM
Severity
Moderate
Public date
Sep 23, 2026, 4:04 PM