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

Published Oct 14, 2026
·
Updated

Authentication bypass via second StartupMessage during SCRAM authentication in PgBouncer

Other sources

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.

— Ubuntu

Affected Software

10 affected componentsFixes available
PgBouncer PgBouncer>=1.17.0<=1.26.0
Microsoft azl3 pgbouncer 1.25.2-1<1.26.1-1
1.26.1-1
ubuntu/pgbouncer*
ubuntu/pgbouncer*
ubuntu/pgbouncer*
ubuntu/pgbouncer*
ubuntu/pgbouncer*
ubuntu/pgbouncer*
ubuntu/pgbouncer*
debian/pgbouncer<=1.18.0-1+deb12u1, <=1.24.1-1+deb13u2
1.26.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.26.1-1
  2. Upgrade

    Upgrade debian/pgbouncer to a version that resolves this vulnerability.

    Fixed in 1.26.1-1

Event History

Oct 14, 2026
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
CVE Published
via MITRE·05:34 PM
Data Sourced
via MITRE·05:34 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·06:17 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness
Oct 16, 2026
Data Sourced
via Microsoft·08:05 AM
DescriptionSeverityWeaknessAffected Software

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