Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify PgBouncer service on TCP 6432
-
DeliveryCraft malformed SCRAM authentication packet with overflow values
-
ExploitSend packet to trigger integer wraparound
-
ExecutionBypass boundary validation
-
PersistCrash PgBouncer process
-
ImpactDeny database access to all clients
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | No special conditions-remote unauthenticated exploitation against default configurations of PgBouncer versions before 1.25.2. The vulnerability triggers during SCRAM authentication packet parsing, which occurs before credential validation, eliminating authentication as a barrier. Any PgBouncer instance configured to accept SCRAM authentication (the PostgreSQL default since version 10) is exploitable. Network reachability to PgBouncer's listening port (typically TCP 6432) is the only prerequisite. Exploitation does not depend on specific PostgreSQL backend versions, database configurations, or connection pool settings. Limiting factors: attacker must have network access to the PgBouncer port, which may be firewalled in properly segmented environments. The vulnerability requires the attacker to understand SCRAM packet structure sufficiently to craft overflow-inducing values, though this is well-documented in PostgreSQL protocol specifications. |
| Impact | High real-world risk for production environments. The CVSS 7.5 (High) score accurately reflects the availability impact-complete denial of service against a critical infrastructure component (database connection pooler). Attack vector metrics (AV:N/AC:L/PR:N/UI:N) indicate trivial exploitation: remote, low complexity, no authentication or user interaction required. Any attacker with network access to PgBouncer's listening port can send a single malformed SCRAM packet to crash the service. While limited to availability impact (C:N/I:N/A:H), disrupting PgBouncer effectively denies database access to all dependent applications, making this business-critical despite no data compromise. The targeting of authentication parsing-code executed before session establishment-maximizes attack surface. SSVC assessment: exploitation status unknown, likely automatable (simple packet crafting), technical impact significant (total service loss). Absence from CISA KEV and lack of EPSS data suggest no widespread exploitation yet, but the low barrier to exploitation and high operational impact warrant immediate patching for internet-facing or multi-tenant PostgreSQL deployments. |
| Exploit ScenarioDerived | An attacker scans for PostgreSQL infrastructure and identifies a PgBouncer instance listening on port 6432. Without requiring valid credentials, the attacker crafts a malformed SCRAM authentication packet with manipulated integer fields designed to trigger overflow during boundary validation. Sending this single packet to the PgBouncer service causes an integer wraparound that bypasses length checks, leading to memory access violations and immediate process termination. All active database connections through PgBouncer are severed, and new connection attempts fail until administrators manually restart the service. Publicly available exploit code has not been identified, but packet structure documentation for SCRAM makes exploit development straightforward for attackers familiar with PostgreSQL protocol internals. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 09, 2026
Remote denial-of-service in PgBouncer versions before 1.25.2 allows unauthenticated attackers to crash the connection pooler by sending a malformed SCRAM authentication packet that triggers an integer overflow in network packet parsing code. The vulnerability bypasses boundary checks in authentication handling, enabling complete service disruption of database connection pooling. EPSS data not available, no confirmed active exploitation (not in CISA KEV), but the unauthenticated remote attack vector (CVSS AV:N/AC:L/PR:N) presents significant risk for internet-exposed PostgreSQL infrastructure.
RemediationAI
Upgrade PgBouncer to version 1.25.2 or later, which includes the integer overflow fix in SCRAM authentication packet parsing. The official fix is documented in the PgBouncer changelog at https://www.pgbouncer.org/changelog.html#pgbouncer-125x. For environments where immediate patching is not feasible, implement network-level access controls to restrict PgBouncer port access (default TCP 6432) to only trusted application servers and database clients-this reduces but does not eliminate risk if internal attackers or compromised application servers exist. Disabling SCRAM authentication and reverting to MD5 is NOT recommended due to MD5's cryptographic weaknesses; this trades a DoS vulnerability for authentication security degradation. Monitor PgBouncer process restarts and connection failures as potential exploitation indicators. Test the upgrade in non-production environments first, as connection pooler changes can affect application connection handling, particularly around authentication handshake timing and connection reuse behavior.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
PgBouncer is a lightweight connection pooler for PostgreSQL databases that manages client connections and reduces database overhead. The vulnerability resides in SCRAM (Salted Challenge Response Authentication Mechanism) authentication packet parsing logic, specifically in integer handling during network packet boundary validation. CWE-190 (Integer Overflow or Wraparound) occurs when arithmetic operations on packet size or offset values exceed maximum representable values, causing the result to wrap around to small or negative numbers. This wraparound bypasses subsequent boundary checks that rely on the overflowed value, allowing malformed packet data to trigger memory access violations or assertion failures that crash the pooler process. SCRAM is PostgreSQL's modern authentication method (SCRAM-SHA-256), making this a core protocol handling issue affecting any PgBouncer deployment using SCRAM authentication.
Know when Pgbouncer gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (PostgreSQL) · only source for this CVE.
CVSS VectorVendor: PostgreSQL
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
CVE-2026-6664 is a remote denial-of-service vulnerability in PgBouncer that allows unauthenticated attackers to crash the connection pooler via malformed authentication packets, disrupting all dependent database services without requiring credentials. Organizations running PgBouncer as a critical infrastructure component face immediate availability risk, as any internet-exposed instance can be remotely disabled by an attacker with no special privileges.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict network access to PgBouncer ports via firewall rules, allowing connections only from trusted application servers; (2) Deploy rate-limiting and connection throttling on incoming authentication requests; (3) Monitor for abnormal connection spike patterns and configure alerts for repeated authentication failures; (4) Consider temporary use of direct PostgreSQL connections for critical workloads if PgBouncer availability cannot be assured; (5) Enable verbose logging of authentication failures to detect attack attempts.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Related Vulnerabilities in PgBouncer Multiple Security Issues
View all 4PgBouncer before 1.5.5 allows remote attackers to cause a denial of service (NULL pointer dereference and crash) by send
A flaw was found in c-ares library, where a missing input validation check of host names returned by DNS (Domain Name Se
Authentication bypass in PgBouncer 1.17.0 through 1.26.0 allows an authenticated attacker who knows a valid password for
PgBouncer 1.6.x before 1.6.1, when configured with auth_user, allows remote attackers to gain login access as auth_user
Password can be used past expiry in PgBouncer due to auth_query not taking into account Postgres its VALID UNTIL value,
Arbitrary SQL execution during authentication affects PgBouncer before 1.25.1 when the non-default auth_query feature is
When PgBouncer is configured to use "cert" authentication, a man-in-the-middle attacker can inject arbitrary SQL queries
Unauthenticated remote attackers can render PgBouncer 1.20.0 through 1.26.0 unresponsive by sending a single crafted Sta
A crafted oversized input to the PgBouncer connection pooler (versions through 1.25.2) triggers an integer overflow in p
Unauthenticated remote attackers can crash PgBouncer through 1.25.2 by sending a malformed SCRAM client-final-message th
EUVD-2026-28876
GHSA-pmgp-q838-fh9g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB