Vulnerabilities / CVE-2026-6665

critical

CVE-2026-6665

The SCRAM code in PgBouncer before 1.25.2 did not check the return val ...

Published Modified CWE 121
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasepgbouncer1.25.2
Azure Linux 3.0pgbouncer0:1.25.2-1.azl3
chainguardpgbouncer1.25.2-r0
debian 11pgbouncerno fix listed
debian 12pgbouncerno fix listed
debian 13pgbouncer1.24.1-1+deb13u2
debian 14pgbouncer1.25.2-1
echopgbouncer1.24.1-1+deb13u2
minimospgbouncer1.25.2-r0
rapidfort debian 12pgbouncer0:1.24.1-1+deb13u2, 0:1.25.2-1
rapidfort debian 13pgbouncer0:1.24.1-1+deb13u2, 0:1.25.2-1
wolfipgbouncer1.25.2-r0

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.