Skip to main content

CVE-2026-107348: Integer Overflow or Wraparound in PgBouncer

0
Medium
VulnerabilityCVE-2026-107348cvecve-2026-107348
Published: 10/14/2026 (10/14/2026, 17:34:29 UTC)
Source: CVE Database V5
Product: PgBouncer

Description

CVE-2026-107348 is an integer overflow vulnerability in PgBouncer versions 1.21.0 through 1.26.0. It occurs in the message buffer growth logic when max_packet_size is configured above 2147483648. This overflow causes the buffer size computation to wrap around, resulting in an infinite growth loop that saturates a CPU core and stalls all pooled connections until the PgBouncer process is restarted. The vulnerability is reachable before authentication since version 1.23.0 via a specially crafted five-byte packet header.

CVSS v3.1

Score 5.9medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

PgBouncer

Affected versions
>=1.21.0 <1.26.1
GitHub Actionsmore threats →ai
pgbouncer/pgbouncer
pkg:github/pgbouncer/pgbouncer
Affected versions
>=1.21.0 <1.26.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/14/2026, 18:03:46 UTC

Technical Analysis

This vulnerability involves an integer overflow in the mbuf_make_room function of PgBouncer's message buffer growth logic. When max_packet_size is set above 2^31 (2147483648), a packet header declaring a length above this threshold causes the buffer size calculation to overflow. This overflow leads to an infinite loop in the buffer growth logic, saturating a CPU core and stalling all client connections served by the single PgBouncer process. Since PgBouncer uses a single process to serve all clients, this results in a denial of service affecting all pooled connections. The overflow is exploitable before authentication starting from version 1.23.0, increasing the risk of exploitation.

Potential Impact

The vulnerability causes a denial of service by saturating a CPU core and stalling all client connections until the PgBouncer process is restarted. There is no confidentiality or integrity impact reported. The attack requires a specially crafted packet with a header length above 2^31 and max_packet_size configured above 2147483648. The vulnerability is remotely exploitable without authentication from version 1.23.0 onward.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch is available, administrators should avoid configuring max_packet_size above 2147483648 to prevent triggering the integer overflow. Monitor for updates from the PgBouncer project regarding an official fix.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
PostgreSQL
Date Reserved
2026-10-07T19:13:32.963Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6acfc0ee2cdf04f6569bc5c4

Added to database: 10/14/2026, 17:50:38 UTC

Last enriched: 10/14/2026, 18:03:46 UTC

Last updated: 10/14/2026, 19:00:31 UTC

Views: 9

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses