CVE-2026-107350: Authentication bypass via second StartupMessage during SCRAM authentication in PgBouncer

Published Oct 14, 2026
·
Updated

Improper authentication in PgBouncer 1.17.0 through 1.26.0 allows a remote attacker who knows the password of a user listed in authfile 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.

Affected Software

1 affected component
PgBouncer PgBouncer>=1.17.0<=1.26.0

Event History

Oct 14, 2026
CVE Published
via MITRE·05:34 PM
Data Sourced
via MITRE·05:34 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

PgBouncer versions 1.17.0 through 1.26.0 are affected when a user is listed in auth_file and another target user authenticates using SCRAM. The target can include PgBouncer administrative users and backend superusers.

2

What does an attacker need to exploit this?

The attacker needs remote network access to PgBouncer and knowledge of the password for any user listed in auth_file. No user interaction is required, and the attacker can use that user's SCRAM verification exchange while switching the login identity to another SCRAM-authenticated user.

3

How does the authentication bypass work?

During SCRAM authentication, the attacker sends a second StartupMessage for a non-existent database. PgBouncer does not reject that message and changes the user being logged in as, while continuing to validate the SCRAM exchange using the first user's credentials.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203