# CVE-2026-6665: PgBouncer buffer overflow in SCRAM

- Severity: High 8.1 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-05-09T00:43:46.762Z
- Modified: 2026-09-08T08:47:47.470Z
- Also known as: BIT-PGBOUNCER-2026-6665
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: PostgreSQL

## 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.

(As written by CVE List.)

## Affected

- PgBouncer: before 1.25.2
- pgbouncer pgbouncer: before 1.25.2
- pgbouncer (Bitnami): before 1.25.2

## Every score

- PostgreSQL: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://www.pgbouncer.org/changelog.html#pgbouncer-125x> (article, release-notes)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-6665> (web)

## Sources

- CVE List: [CVE-2026-6665](https://www.cve.org/CVERecord?id=CVE-2026-6665), CVE Terms of Use, modified 2026-05-12
- NVD: [CVE-2026-6665](https://nvd.nist.gov/vuln/detail/CVE-2026-6665), Public domain, modified 2026-07-24
- Bitnami Vulnerability Database: [BIT-PGBOUNCER-2026-6665](https://osv.dev/vulnerability/BIT-PGBOUNCER-2026-6665), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-6665 · Whole record: https://cve.day/CVE-2026-6665.json · Rebuilt by cve.day 2026-11-25T22:59:21.130Z
