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

- Severity: Medium 5.9 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-10-14T17:34:29.838Z
- Modified: 2026-10-21T12:00:37.733Z
- Also known as: BIT-PGBOUNCER-2026-107348
- Weaknesses: CWE-190, CWE-835
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- PgBouncer: from 1.21.0 before 1.26.1
- pgbouncer (Bitnami): from 1.21.0 before 1.26.1

## Every score

- PostgreSQL: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://www.pgbouncer.org/changelog.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-107348> (web)

## Sources

- CVE List: [CVE-2026-107348](https://www.cve.org/CVERecord?id=CVE-2026-107348), CVE Terms of Use, modified 2026-10-16
- NVD: [CVE-2026-107348](https://nvd.nist.gov/vuln/detail/CVE-2026-107348), Public domain, modified 2026-10-16
- Bitnami Vulnerability Database: [BIT-PGBOUNCER-2026-107348](https://osv.dev/vulnerability/BIT-PGBOUNCER-2026-107348), Apache-2.0, modified 2026-10-21

---

Page: https://cve.day/CVE-2026-107348 · Whole record: https://cve.day/CVE-2026-107348.json · Rebuilt by cve.day 2026-11-25T22:59:44.764Z
