CVE-2026-6665: PgBouncer - Buffer Overflow
- Cve: CVE-2026-6665
- Name: PgBouncer - Buffer Overflow
- 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.
- Impact: Malicious backend can trigger stack overflow, potentially leading to denial of service or code execution.
- Remediation: Upgrade to version 1.25.2 or later.
- Vulnerability type: buffer_overflow
- Vulnerability impact: denial_of_service
- Requirements: Attacker needs to be a malicious backend server
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00372
- Epss percentile: 0.3177
- Assignee: f86ef6dc-4d3a-42ad-8f28-e6d5547a5007
- Published at: 2026-05-09T01:16:09Z
- Age in days: 199
- Modified at: 2026-07-24T08:10:00Z
- Patch available: yes
- References total: 1
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-6665
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-121 | Stack-based Buffer Overflow |
References
| Url | Source | Tags |
|---|---|---|
| https://www.pgbouncer.org/changelog.html#pgbouncer-125x | nvd | Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| pgbouncer:pgbouncer | < 1.25.2 | no | nvd | /v1/products/pgbouncer/pgbouncer |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts