CVE-2026-6665

PgBouncer buffer overflow in SCRAM

State
Published
Severity
8.1 High
Published
May 9, 2026
Updated
May 12, 2026
Reserved
Apr 20, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.18.1 HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HPostgreSQL

Weaknesses

  • CWE-121 Stack-based Buffer Overflow

Affected Products

ProductVersions
PgBouncern/a
  • before 1.25.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.