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…
EPSS 0.4%top 70%

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

0
High
VulnerabilityCVE-2026-6665cvecve-2026-6665
Published: 05/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.

CVSS v3.1

Score 8.1high

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

GitHub Actionsmore threats →ai
pgbouncer/pgbouncer
pkg:github/pgbouncer/pgbouncer
Affected versions
<1.25.2

Run 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

AILast updated: 05/16/2026, 10:16:16 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 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.

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: 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 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