
This content was generated with the help of AI and published without prior human review. It may contain errors and is not professional advice. Report a problem: info@delionsoft.com.
PgBouncer 1.26.1 is out, and it closes three CVEs in the connection pooler that sits in front of many PostgreSQL deployments. One of them is an authentication bypass: a client who knows the password of a single SCRAM user can log in as another SCRAM user, including administrators and backend superusers. The other two are denial-of-service conditions that unauthenticated clients can trigger.
What happened
According to the original announcement, CVE-2026-107350 is the authentication bypass. It stems from a second StartupMessage being processed during SCRAM authentication when the client connects to a database that does not exist. The practical effect is that knowledge of one valid SCRAM password can be turned into a session as any other SCRAM user.
CVE-2026-107349 is an infinite loop caused by an empty option name in the startup options parameter. It applies when ignore_startup_parameters is set to a non-empty value that does not include options. CVE-2026-107348 is a second infinite loop, caused by an integer overflow in the packet buffer growth logic, and only occurs when max_packet_size is configured above its default. Both are reachable without authentication.
The release also changes behaviour outside the security fixes: ignore_startup_parameters now takes precedence over tracked parameters, so setting ignore_startup_parameters = search_path restores the way 1.25 handled search_path. The detailed changelog and downloads are on the project site.
Why it matters
PgBouncer is usually deployed as the single entry point to a Postgres cluster, which means the pooler is the authentication boundary. An auth bypass there does not stay contained: becoming a different SCRAM user, including a superuser, translates directly into access to data that the original account was never granted. For a small team running one database behind one pooler, that is effectively full access to the application's data.
The two DoS issues are lower severity but have a wider blast radius in one respect: they need no credentials. If your pooler port is reachable from anywhere other than your own application network, an outsider can lock a process into a loop. The second DoS only applies to non-default max_packet_size, and the first only under a specific ignore_startup_parameters configuration, so check your actual config before assuming you are affected.
What to do
- Inventory where PgBouncer runs. It often arrives indirectly, as a sidecar, a container image, a Helm chart dependency or part of a managed platform, so the version your team installed by hand is not always the only one.
- Upgrade to 1.26.1. Config-level mitigation is partial at best: the auth bypass has no documented workaround in the announcement, and the DoS triggers depend on settings you may legitimately need.
- Confirm the pooler's listening port is restricted to application subnets and not exposed to the public internet or a flat internal network. This limits the unauthenticated DoS paths and is good practice regardless.
- Before rolling out, review your
ignore_startup_parametersandsearch_pathhandling. The precedence change is intentional but can alter behaviour for applications that rely onsearch_pathpassing through.