Description
Untrusted search path in auth_query connection handler in PgBouncer before 1.25.1 allows an unauthenticated attacker to execute arbitrary SQL during authentication via a malicious search_path parameter in the StartupMessage.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | PgBouncer | < 1.25.1 | 1.25.1 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pgbouncer | 1.25.1-1 | — |
| Debian 13 | pgbouncer | 1.24.1-1+deb13u1 | — |
| Debian 12 | pgbouncer | 1.18.0-1+deb12u1 | — |
| Debian 11 | pgbouncer | 1.15.0-1+deb11u2 | DLA-4422-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 25.10 | pgbouncer | No fix yet | — |
| Ubuntu 24.04 LTS | pgbouncer | No fix yet | — |
| Ubuntu 20.04 LTS | pgbouncer | No fix yet | — |
| Ubuntu 18.04 LTS | pgbouncer | No fix yet | — |
| Ubuntu 16.04 LTS | pgbouncer | No fix yet | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | pgbouncer | 1.25.1-r0 | — |
| Alpine v3.23 | pgbouncer | 1.25.1-r0 | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | pgbouncer | 1.25.1-1 | — |
| Azure Linux 2 (CBL-Mariner) | pgbouncer | 1.25.1-1 | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | pgbouncer | 1.25.1-r0 | — |
Advisories 2
- WID-SEC-2025-2734 PgBouncer: Schwachstelle ermöglicht SQL injection BSI CERT-Bund (WID) · Dec 28, 2025
- DLA-4422-1 pgbouncer - security update Debian Security (DSA / DLA) · Dec 27, 2025