Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-6665: Stack-based Buffer Overflow in PgBouncer

0
High
VulnerabilityCVE-2026-6665cvecve-2026-6665
Published: Sat May 09 2026 (05/09/2026, 00:43:46 UTC)
Source: CVE Database V5
Product: 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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/09/2026, 01:36:21 UTC

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 properly check the return value of strlcat() when building the SCRAM client-final-message. This flaw can be exploited by a malicious backend sending a SCRAM server-final-message containing an excessively long nonce, which causes a stack overflow condition.

Potential Impact

Successful exploitation of this vulnerability could lead to a stack-based buffer overflow, potentially allowing an attacker to execute arbitrary code, cause a denial of service, or crash the PgBouncer service. The CVSS score of 8.1 reflects high impact on confidentiality, integrity, and availability.

Mitigation Recommendations

No official patch or remediation level is currently confirmed for this vulnerability. Users should monitor the vendor advisory for updates and apply the official fix once it becomes available. Until then, consider restricting backend sources to trusted entities to reduce exposure.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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: 5/9/2026, 1:22:36 AM

Last enriched: 5/9/2026, 1:36:21 AM

Last updated: 5/9/2026, 2:40:12 AM

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses