| Name | CVE-2026-6665 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 1136075 |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| pgbouncer (PTS) | bullseye | 1.15.0-1 | vulnerable |
| bullseye (security) | 1.15.0-1+deb11u2 | vulnerable |
| bookworm | 1.18.0-1+deb12u1 | vulnerable |
| trixie | 1.24.1-1+deb13u2 | fixed |
| forky, sid | 1.25.2-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| pgbouncer | source | trixie | 1.24.1-1+deb13u2 | | | |
| pgbouncer | source | (unstable) | 1.25.2-1 | | | 1136075 |
Notes
[bookworm] - pgbouncer <no-dsa> (Minor issue)
[bullseye] - pgbouncer <postponed> (Minor issue, DoS)
Fixed by: https://github.com/pgbouncer/pgbouncer/commit/ab8dbb3b1a73b4a195062546e5e4f964b79f5b45 (pgbouncer_1_25_2)