Skip to content
OpenAdvisories
High · 8.1 CVE-2026-6665 EUVD-2026-28877GHSA-mhmx-mjv6-w337

PgBouncer buffer overflow in SCRAM

Published May 9, 2026 · Updated May 12, 2026 · 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.

Affected products

VendorProductAffectedFixed
— PgBouncer < 1.25.2 1.25.2

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pgbouncer 1.25.2-1 —
Debian 13 pgbouncer 1.24.1-1+deb13u2 —
Debian 12 pgbouncer No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 pgbouncer No fix yet —
Ubuntu 26.04 LTS pgbouncer No fix yet —
Ubuntu 25.10 pgbouncer No fix yet —
Ubuntu 24.04 LTS pgbouncer No fix yet —
Ubuntu 22.04 LTS pgbouncer No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS pgbouncer No fix yet —
Ubuntu 18.04 LTS pgbouncer No fix yet —
Ubuntu 16.04 LTS pgbouncer No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 pgbouncer 1.25.2-1 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling pgbouncer 1.25.1-r1 —

Advisories 1

References