REDHAT-BUG-2539546: Medium severity PgBouncer PgBouncer vulnerability
Missing upper bound on the key derivation iteration count accepted during SCRAM authentication to a backend server in PgBouncer through 1.25.2 allows a malicious or compromised PostgreSQL backend to cause uncontrolled CPU consumption in PgBouncer. The resulting key derivation cannot be interrupted in frontend builds such as PgBouncer. Because PgBouncer serves all clients from a single process, one backend can in this way stop it from serving traffic for every other database and client it is pooling, so the failure of a single backend is not contained.
Affected Software
Event History
Frequently Asked Questions
What access or control is required to trigger the CPU exhaustion?
An attacker needs a malicious or compromised PostgreSQL backend that PgBouncer authenticates to using SCRAM. That backend can provide an excessively large key-derivation iteration count during authentication.
Can a single affected backend disrupt connections to other databases?
Yes. PgBouncer serves clients from a single process, so an uninterruptible key derivation triggered by one backend can prevent it from serving traffic for every other pooled database and client.
What versions are identified as affected?
The issue affects PgBouncer through version 1.25.2. The provided information does not identify a fixed version or a configuration-based workaround.