CVE-2026-6665: Stack-based Buffer Overflow in PgBouncer
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.
AI Analysis
Technical Summary
PgBouncer before version 1.25.2 contains a stack-based buffer overflow vulnerability in its SCRAM authentication code. Specifically, the code does not correctly check the return value of strlcat() when building the SCRAM client-final-message. A malicious backend can exploit this by sending a SCRAM server-final-message containing an excessively long nonce, which triggers a stack overflow condition. This vulnerability affects the PgBouncer software and has a CVSS 3.1 base score of 8.1, reflecting high impact on confidentiality, integrity, and availability. No patch or official remediation level has been provided in the available data.
Potential Impact
Successful exploitation of this vulnerability could allow a malicious backend to cause a stack overflow in PgBouncer, potentially leading to denial of service or arbitrary code execution. The CVSS score of 8.1 indicates a high impact on confidentiality, integrity, and availability. However, there are no known exploits in the wild currently.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since the vulnerability affects versions before 1.25.2, upgrading to version 1.25.2 or later is likely the intended remediation once officially released. Until then, monitor vendor communications for an official fix. No other specific mitigations are indicated in the available data.
CVE-2026-6665: Stack-based Buffer Overflow in PgBouncer
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.
CVSS v3.1
Score 8.1high
Affected software
pkg:github/pgbouncer/pgbouncerRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PgBouncer before version 1.25.2 contains a stack-based buffer overflow vulnerability in its SCRAM authentication code. Specifically, the code does not correctly check the return value of strlcat() when building the SCRAM client-final-message. A malicious backend can exploit this by sending a SCRAM server-final-message containing an excessively long nonce, which triggers a stack overflow condition. This vulnerability affects the PgBouncer software and has a CVSS 3.1 base score of 8.1, reflecting high impact on confidentiality, integrity, and availability. No patch or official remediation level has been provided in the available data.
Potential Impact
Successful exploitation of this vulnerability could allow a malicious backend to cause a stack overflow in PgBouncer, potentially leading to denial of service or arbitrary code execution. The CVSS score of 8.1 indicates a high impact on confidentiality, integrity, and availability. However, there are no known exploits in the wild currently.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since the vulnerability affects versions before 1.25.2, upgrading to version 1.25.2 or later is likely the intended remediation once officially released. Until then, monitor vendor communications for an official fix. No other specific mitigations are indicated in the available data.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PostgreSQL
- Date Reserved
- 2026-04-20T12:25:43.793Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fe8c5ccbff5d86108b6aac
Added to database: 05/09/2026, 01:22:36 UTC
Last enriched: 05/16/2026, 10:16:16 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 149
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.