CVE-2026-6665

CRITICAL CVSS 3.1: 9.8 EPSS 0.37%
Updated Jul 24, 2026
Pgbouncer
Parameter Value
CVSS 9.8 (CRITICAL)
Affected Versions before 1.25.2
Fixed In 1.25.2
Type CWE-121 (Stack-based Buffer Overflow)
Vendor Pgbouncer
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Pgbouncer Pgbouncer
cpe:2.3:a:pgbouncer:pgbouncer:*:*:*:*:*:*:*:*
— 1.25.2