Home

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.

PUBLISHED Reserved 2026-04-20 | Published 2026-05-09 | Updated 2026-05-09 | Assigner PostgreSQL




HIGH: 8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Problem types

Stack-based Buffer Overflow

Credits

Thanks to HarutoKimura for finding and reporting this problem. finder

References

www.pgbouncer.org/changelog.html

cve.org (CVE-2026-6665)

nvd.nist.gov (CVE-2026-6665)

Download JSON