{"id":"BIT-pgbouncer-2026-6665","summary":"PgBouncer buffer overflow in SCRAM","details":"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.","aliases":["CVE-2026-6665"],"modified":"2026-09-08T08:47:47.470950791Z","published":"2026-05-12T08:52:51.850Z","database_specific":{"severity":"Critical","cpes":["cpe:2.3:a:pgbouncer:pgbouncer:*:*:*:*:*:*:*:*"]},"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6665"},{"type":"ARTICLE","url":"https://www.pgbouncer.org/changelog.html#pgbouncer-125x"}],"affected":[{"package":{"name":"pgbouncer","ecosystem":"Bitnami","purl":"pkg:bitnami/pgbouncer"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.25.2"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/pgbouncer/BIT-pgbouncer-2026-6665.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}],"schema_version":"1.9.0"}