{"id":"CVE-2026-107348","state":"PUBLISHED","title":"Integer overflow causes an infinite loop in message buffer growth in PgBouncer","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.","publishedAt":"2026-10-14T17:34:29.838Z","updatedAt":"2026-10-16T20:11:22.132Z","severity":{"score":5.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"PostgreSQL"},"assigner":"PostgreSQL","products":["n/a PgBouncer"],"affected":[{"vendor":"n/a","product":"PgBouncer","defaultStatus":"unaffected","versions":[{"version":"1.21.0","status":"affected","lessThan":"1.26.1","versionType":"semver"}]}],"references":["https://www.pgbouncer.org/changelog.html"],"weaknesses":["CWE-190","CWE-835"],"ingestedAt":"2026-10-29T20:10:23.711Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/107xxx/CVE-2026-107348.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-107348","state":"PUBLISHED","datePublished":"2026-10-14T17:34:29.838Z","dateUpdated":"2026-10-16T20:11:22.132Z","assignerShortName":"PostgreSQL","assignerOrgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","dateReserved":"2026-10-07T19:13:32.963Z"},"containers":{"cna":{"title":"Integer overflow causes an infinite loop in message buffer growth in PgBouncer","descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"PgBouncer","defaultStatus":"unaffected","versions":[{"version":"1.21.0","status":"affected","lessThan":"1.26.1","versionType":"semver"}]}],"references":[{"url":"https://www.pgbouncer.org/changelog.html"}],"metrics":[{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":5.9,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-190","lang":"en","type":"CWE","description":"Integer Overflow or Wraparound"}]},{"descriptions":[{"cweId":"CWE-835","lang":"en","type":"CWE","description":"Loop with Unreachable Exit Condition ('Infinite Loop')"}]}],"providerMetadata":{"shortName":"PostgreSQL","orgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","dateUpdated":"2026-10-14T17:34:29.838Z"},"configurations":[{"lang":"en","value":"max_packet_size is set to 2147483649 or higher. The default max_packet_size of 2147483647 is not affected."}],"workarounds":[{"lang":"en","value":"Set max_packet_size to 2147483647 (the default) or lower."}],"credits":[{"lang":"en","value":"Thanks to Brian Cosgrove (@cosgroveb) for finding and reporting this issue.","type":"finder"}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-10-16T20:11:07.942275Z","id":"CVE-2026-107348","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-16T20:11:22.132Z"}}]}}}