CVE-2026-107350: Improper Authentication in PgBouncer
Description
CVE-2026-107350 is a high-severity vulnerability in PgBouncer versions 1.17.0 through 1.26.0. It involves improper authentication where a remote attacker who knows the password of one user listed in the auth_file can log in as any other user authenticating with SCRAM, including admin and superuser accounts. This occurs because a second StartupMessage during SCRAM authentication against a non-existent database is not rejected and switches the user context while still verifying credentials against the first user's keys.
CVSS v3.1
Score 8.8high
Affected software
PgBouncer
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
This vulnerability in PgBouncer (versions 1.17.0 through 1.26.0) allows an attacker with knowledge of a valid user's password to bypass proper authentication controls. By sending a second StartupMessage during SCRAM authentication targeting a non-existent database, the attacker can switch the user identity to another SCRAM-authenticated user, including administrative and superuser accounts, without re-verifying credentials. This flaw arises from improper handling of authentication messages, enabling privilege escalation and unauthorized access.
Potential Impact
An attacker who knows the password of any user listed in the PgBouncer auth_file can impersonate any other SCRAM-authenticated user, including PgBouncer administrators and backend superusers. This leads to complete compromise of PgBouncer's authentication mechanism, potentially allowing unauthorized access to sensitive database functions and data, with full confidentiality, integrity, and availability impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict access to PgBouncer authentication files and monitor for suspicious authentication attempts. Avoid exposing PgBouncer to untrusted networks and consider additional network-level access controls.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PostgreSQL
- Date Reserved
- 2026-10-07T19:13:32.963Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6acfc0ee2cdf04f6569bc5c6
Added to database: 10/14/2026, 17:50:38 UTC
Last enriched: 10/14/2026, 18:03:36 UTC
Last updated: 10/14/2026, 18:48:21 UTC
Views: 3
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.