Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-107348 EUVD-2026-101498GHSA-982p-g5h4-w372

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

Published Oct 14, 2026 · Updated Oct 16, 2026 · Assigned by PostgreSQL

Description

Integer overflow in the message buffer growth logic (mbuf_make_room) in PgBouncer 1.21.0 through 1.26.0 allows a remote attacker to cause a denial of service when max_packet_size is configured above 2147483648. A packet header declaring a length above 2^31 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 restarted. Since 1.23.0 the overflow is reachable before authentication with a five-byte packet header.

Affected products

VendorProductAffectedFixed
— PgBouncer 1.21.0 – < 1.26.1 1.26.1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pgbouncer 1.26.1-1 —
Debian 13 pgbouncer No fix yet —
Debian 12 pgbouncer No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pgbouncer No fix yet —
Ubuntu 26.04 LTS pgbouncer No fix yet —
Ubuntu 24.04 LTS pgbouncer No fix yet —
Ubuntu 22.04 LTS pgbouncer No fix yet —
Ubuntu 20.04 LTS pgbouncer No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS pgbouncer No fix yet —
Ubuntu 16.04 LTS pgbouncer No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 pgbouncer 1.26.1-1.hum1 RHSA-2026:83843

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 pgbouncer 1.26.1-1 —

Advisories 2

References