CVE-2026-6665 PgBouncer buffer overflow in SCRAM
CriticalCVSS 9.8
EPSS 0.37%
- Published
- Updated
- Exploit status
- No public exploit known
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
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/pgbouncer(Debian:12) | All versions | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.18.0-1 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.18.0-1+deb12u1 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.19.0-1 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.19.1-1 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.20.0-1 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.20.1-1 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.21.0-1 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.22.0-1 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.22.1-1 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.23.0-1 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.23.1-1 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.24.0-2 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.24.0-3 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.24.1-1 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.25.0-1 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.25.0-2 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.25.1-1 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.25.2-1 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.26.0-1 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.26.0-2 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.26.0-3 | No fix listed |
| debian/pgbouncer(Debian:12) | = 1.26.0-4 | No fix listed |
| debian/pgbouncer(Debian:13) | < 1.24.1-1+deb13u2 | 1.24.1-1+deb13u2 |
| debian/pgbouncer(Debian:13) | = 1.24.1-1 | No fix listed |
Show 12 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/pgbouncer(Debian:13) | = 1.24.1-1+deb13u1 | No fix listed |
| debian/pgbouncer(Debian:14) | < 1.25.2-1 | 1.25.2-1 |
| debian/pgbouncer(Debian:14) | = 1.24.1-1 | No fix listed |
| debian/pgbouncer(Debian:14) | = 1.25.0-1 | No fix listed |
| debian/pgbouncer(Debian:14) | = 1.25.0-2 | No fix listed |
| debian/pgbouncer(Debian:14) | = 1.25.1-1 | No fix listed |
| ubuntu/pgbouncer(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/pgbouncer(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/pgbouncer(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/pgbouncer(Ubuntu:26.10) | All versions | No fix listed |
| pgbouncer | < 1.25.2 | 1.25.2 |
| azure linux pgbouncer(Azure Linux:3.0) | < 1.25.2-1 | 1.25.2-1 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- www.pgbouncer.org release-notes
- Debian Security Tracker CVE-2026-6665 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking