CVE-2026-6664

PgBouncer integer overflow in PgBouncer network packet parsing

Published May 9, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
An integer overflow in network packet parsing code in PgBouncer before 1.25.2 bypasses a boundary check and can lead to a crash. An unauthenticated remote attacker can crash PgBouncer with a malformed SCRAM authentication packet.

Analysis

AI-generated

Technical impact

The vulnerability is an integer overflow in the network packet parsing logic of PgBouncer before version 1.25.2. When a malformed SCRAM authentication packet is received, the boundary check is bypassed and the process crashes. This flaw is classified as CWE‑190 – Integer Overflow or Wraparound. The impact is a loss of service: PgBouncer terminates, potentially disrupting database connections for all clients that rely on it. There is no direct evidence of data exfiltration or privilege escalation; the flaw chiefly allows attackers to cause a service‑level denial of service.

Affected Systems

PgBouncer deployments running any version prior to 1.25.2 are affected. This includes 1.24.x and older releases. The issue manifests during network packet parsing for client authentication, specifically when SCRAM authentication is enabled.

Risk and Exploitability

The CVSS score of 7.5 indicates a high severity DoS potential. EPSS is not available, so the likelihood of exploitation in the wild is unknown, but the flaw can be triggered remotely by an unauthenticated attacker who can send a crafted packet to the listening port. As it is not listed in CISA's KEV catalog, there is no current evidence of widespread exploitation. Attackers do not need elevated privileges; simply interacting with the PgBouncer service over the network suffices to cause the crash.

Remediation

Vendor Workaround

Do not configure SCRAM for client authentication


OpenCVE Recommended Actions

  • Update PgBouncer to version 1.25.2 or newer to eliminate the integer overflow in packet parsing.
  • If an immediate upgrade is not feasible, remove SCRAM authentication configuration for clients to prevent malformed SCRAM packets from being processed.
  • Audit your database connectivity and PgBouncer logs to detect unintended crashes or authentication errors, and enable rate limiting or firewall rules to limit repeated malformed packet attempts.

Generated by OpenCVE AI on May 9, 2026 at 03:17 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a: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
First Time appeared Pgbouncer
Pgbouncer pgbouncer
Vendors & Products Pgbouncer
Pgbouncer pgbouncer
Type Values Removed Values Added
Description An integer overflow in network packet parsing code in PgBouncer before 1.25.2 bypasses a boundary check and can lead to a crash. An unauthenticated remote attacker can crash PgBouncer with a malformed SCRAM authentication packet.
Title PgBouncer integer overflow in PgBouncer network packet parsing
Weaknesses CWE-190
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
PostgreSQL
Published
Updated
May 11, 2026, 2:28 PM
Reserved
Apr 20, 2026, 12:25 PM
Status
Analyzed
Published
May 9, 2026, 1:16 AM
Modified
Jul 24, 2026, 8:10 AM