CVE-2026-107350
8.8high
Authentication bypass via second StartupMessage during SCRAM authentication in PgBouncer
- Severity
- 8.8high CVSS:3.1 by PostgreSQL
- Exploit likelihood
- 0.37% (higher than 32% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- PostgreSQL
- Also known as
- BIT-PGBOUNCER-2026-107350
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| PgBouncer | from 1.17.0 before 1.26.1 | CVE List |
| pgbouncer (Bitnami) | from 1.17.0 before 1.26.1 | Bitnami Vulnerability Database |
All scores
| PostgreSQL | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-107350 changed 2026-10-16 | CVE Terms of Use |
| NVD | CVE-2026-107350 changed 2026-10-16 | Public domain |
| Bitnami Vulnerability Database | BIT-PGBOUNCER-2026-107350 changed 2026-10-21 | Apache-2.0 |