Description
The SCRAM code in PgBouncer before 1.25.2 did not check the return value of strlcat() correctly when building the contents of the SCRAM client-final-message. A malicious backend that sends a SCRAM server-final-message with a long nonce can trigger a stack overflow.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | PgBouncer | < 1.25.2 | 1.25.2 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pgbouncer | 1.25.2-1 | — |
| Debian 13 | pgbouncer | 1.24.1-1+deb13u2 | — |
| Debian 12 | pgbouncer | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | pgbouncer | No fix yet | — |
| Ubuntu 26.04 LTS | pgbouncer | No fix yet | — |
| Ubuntu 25.10 | pgbouncer | No fix yet | — |
| Ubuntu 24.04 LTS | pgbouncer | No fix yet | — |
| Ubuntu 22.04 LTS | pgbouncer | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | pgbouncer | No fix yet | — |
| Ubuntu 18.04 LTS | pgbouncer | No fix yet | — |
| Ubuntu 16.04 LTS | pgbouncer | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | pgbouncer | 1.25.2-1 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | pgbouncer | 1.25.1-r1 | — |
Advisories 1
- WID-SEC-2026-1445 PgBouncer: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 12, 2026