Skip to main content

PgBouncer CVE-2026-6664

| EUVDEUVD-2026-28876 HIGH
Integer Overflow or Wraparound (CWE-190)
2026-05-09 PostgreSQL GHSA-pmgp-q838-fh9g
7.5
CVSS 3.1 · Vendor: PostgreSQL
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify PgBouncer service on TCP 6432
  2. Delivery
    Craft malformed SCRAM authentication packet with overflow values
  3. Exploit
    Send packet to trigger integer wraparound
  4. Execution
    Bypass boundary validation
  5. Persist
    Crash PgBouncer process
  6. Impact
    Deny 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

PgBouncer 0 <1.25.2

Affected Packages

euvd pgbouncer fix: 1.25.2

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

Vendor (PostgreSQL) PRIMARY 7.5 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
May 09, 2026 - 02:16 EUVD
CVE Published
May 09, 2026 - 00:43 nvd
HIGH 7.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 86% exploitable
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2015-4054 HIGH POC
7.5 May 23

PgBouncer before 1.5.5 allows remote attackers to cause a denial of service (NULL pointer dereference and crash) by send

CVE-2021-3672 MEDIUM POC
5.6 Nov 23

A flaw was found in c-ares library, where a missing input validation check of host names returned by DNS (Domain Name Se

CVE-2026-107350 HIGH
8.8 Oct 14

Authentication bypass in PgBouncer 1.17.0 through 1.26.0 allows an authenticated attacker who knows a valid password for

CVE-2015-6817 HIGH
8.1 May 23

PgBouncer 1.6.x before 1.6.1, when configured with auth_user, allows remote attackers to gain login access as auth_user

CVE-2025-2291 HIGH
8.1 Apr 16

Password can be used past expiry in PgBouncer due to auth_query not taking into account Postgres its VALID UNTIL value,

CVE-2025-12819 HIGH
8.1 Dec 03

Arbitrary SQL execution during authentication affects PgBouncer before 1.25.1 when the non-default auth_query feature is

CVE-2021-3935 HIGH
8.1 Nov 22

When PgBouncer is configured to use "cert" authentication, a man-in-the-middle attacker can inject arbitrary SQL queries

CVE-2026-107349 HIGH
7.5 Oct 14

Unauthenticated remote attackers can render PgBouncer 1.20.0 through 1.26.0 unresponsive by sending a single crafted Sta

CVE-2026-6668 HIGH
7.5 Sep 23

A crafted oversized input to the PgBouncer connection pooler (versions through 1.25.2) triggers an integer overflow in p

CVE-2026-19888 HIGH
7.5 Sep 23

Unauthenticated remote attackers can crash PgBouncer through 1.25.2 by sending a malformed SCRAM client-final-message th

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy