REDHAT-BUG-2539548: Integer Overflow
Integer overflow in the packet buffer growth logic in PgBouncer through 1.25.2 allows an unauthenticated remote attacker to cause a denial of service. Sufficiently large input 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 killed. Both unauthenticated and authenticated code paths can reach the overflow.
Affected Software
Event History
Frequently Asked Questions
Does restricting access to authenticated clients prevent exploitation?
No. The affected buffer-growth logic is reachable from both unauthenticated and authenticated code paths, so authentication alone does not remove the exposure.
What must an attacker send to trigger the issue?
An attacker needs to provide sufficiently large input that causes the packet-buffer size calculation to overflow. The vulnerable growth loop then fails to terminate.
How would an active attack affect service availability?
The PgBouncer process can saturate a CPU core and stall all pooled connections, because it serves clients from a single process. Service remains stalled until the process is killed.
Which PgBouncer versions are identified as affected?
The issue is described as affecting PgBouncer through version 1.25.2.