CVE-2026-6668

Integer overflow causes an infinite loop in packet buffer growth in PgBouncer

State
Published
Severity
7.5 High
Published
Sep 23, 2026
Updated
Sep 23, 2026
Reserved
Apr 20, 2026

Read the record on cve.org

Description

Integer overflow in the packet buffer growth logic in PgBouncer through 1.25.2 allows an unauthenticated remote attacker to cause a denial of service. Sufficiently large input makes the buffer size computation overflow, leaving the growth loop unable to terminate. Because PgBouncer serves all clients from a single process, this saturates a CPU core and stalls every pooled connection until the process is killed. Both unauthenticated and authenticated code paths can reach the overflow.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HPostgreSQL

Weaknesses

  • CWE-190 Integer Overflow or Wraparound
  • CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')

Affected Products

ProductVersions
PgBouncern/a
  • 1.25.2 and earlierAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.