CVE-2026-6665
The SCRAM code in PgBouncer before 1.25.2 did not check the return val ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Bitnami. Rated lower by Azure Linux (high).
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 packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | pgbouncer | 1.25.2 |
| Azure Linux 3.0 | pgbouncer | 0:1.25.2-1.azl3 |
| chainguard | pgbouncer | 1.25.2-r0 |
| debian 11 | pgbouncer | no fix listed |
| debian 12 | pgbouncer | no fix listed |
| debian 13 | pgbouncer | 1.24.1-1+deb13u2 |
| debian 14 | pgbouncer | 1.25.2-1 |
| echo | pgbouncer | 1.24.1-1+deb13u2 |
| minimos | pgbouncer | 1.25.2-r0 |
| rapidfort debian 12 | pgbouncer | 0:1.24.1-1+deb13u2, 0:1.25.2-1 |
| rapidfort debian 13 | pgbouncer | 0:1.24.1-1+deb13u2, 0:1.25.2-1 |
| wolfi | pgbouncer | 1.25.2-r0 |