CVE-2026-107350
8.8 HIGHPublished 2026-10-14 · Updated 2026-10-16
AI risk analysis
- Summary
- PgBouncer allows attackers to impersonate any SCRAM-authenticated user by leveraging a flawed authentication flow where a second StartupMessage can switch the target user during SCRAM verification. This creates a privilege escalation path from any known user account to any other user account in the system.
- Exploitability
- Exploitation requires knowledge of at least one user's password from the auth_file, but is otherwise straightforward as it only needs sending a second StartupMessage during authentication to switch users while maintaining valid SCRAM verification against the original user's keys.
- Blast radius
- The impact could be significant as attackers can gain access to PgBouncer admin accounts and backend superuser privileges, potentially leading to full database control and data exfiltration across multiple databases.
- Detection
- No reliable host or network indicator is derivable from the published description.
- Prioritized remediation
- Upgrade to PgBouncer 1.27.0 or later to address the authentication bypass vulnerability.
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD description
Improper authentication in PgBouncer 1.17.0 through 1.26.0 allows a remote attacker who knows the password of a user listed in auth_file to log in as any other user that authenticates using SCRAM, including PgBouncer admin users and backend superusers. A second StartupMessage sent during SCRAM authentication against a non-existent database is not rejected and switches the user being logged in as, while the SCRAM exchange is still verified against the keys of the first user.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-287
References
Data: NVD (public domain). Analysis: local $0 model. Defensive use only.