CVE-2025-12819 Untrusted search path in auth_query connection in PgBouncer
An unauthenticated attacker can execute arbitrary SQL during authentication in PgBouncer by manipulating the search_path parameter.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-12819?
CVE-2025-12819 is a high-severity SQL injection vulnerability in PgBouncer, published on 3 Dec 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-426
Which versions are affected by CVE-2025-12819?
1 open source package ship an affected version, including pgbouncer. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
pgbouncer Bitnami | All versions | 1.25.1 |
Products include Pgbouncer Pgbouncer.
How do I fix CVE-2025-12819?
Upgrade pgbouncer to 1.25.1 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2025-12819 being exploited?
There is no known exploitation of CVE-2025-12819 in the wild and no public exploit code.
Other vulnerabilities in PgBouncer
Sources
Also known as AZL-71249, AZL-71438, BIT-pgbouncer-2025-12819, DEBIAN-CVE-2025-12819, DLA-4422-1, GHSA-qpxx-2fwx-f5qj and 1 more.