# CVE-2025-12819: Untrusted search path in auth_query connection handler in PgBouncer before 1.25.1 allows an unauthenticated attacker…

Source: https://junglewise.ai/threats/cve-2025-12819-untrusted-search-path-in-auth-query-connection-handler-in  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-12-03  
License: CC BY 4.0 with a link back

CVE-2025-12819 · Severity: high · CVSS 7.5 · Published 2025-12-03

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.

Technologies: [PgBouncer](https://junglewise.ai/threats/technologies/pgbouncer-pgbouncer). Vendors: [PgBouncer](https://junglewise.ai/threats/vendors/pgbouncer).

## Quick answers

**Is CVE-2025-12819 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-12819 being exploited in the wild.

**How severe is CVE-2025-12819?** High severity, with a CVSS score of 7.5, published 3 December 2025.

**Which products and versions are affected?** PgBouncer. The advisory does not name versions.

**Is there a fix for CVE-2025-12819?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**Am I affected by CVE-2025-12819?** Check whether you run PgBouncer. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Affected products

- PgBouncer

## Related threats

- [PgBouncer authentication bypass in SCRAM](https://junglewise.ai/threats/cve-2026-107350-improper-authentication-in-pgbouncer-1-17-0-through-1-26-0)
- [PgBouncer infinite loop denial of service in startup message parsing](https://junglewise.ai/threats/cve-2026-107349-an-infinite-loop-in-pgbouncer-1-20-0-through-1-26-0-allows-an)
- [PgBouncer uncontrolled CPU consumption in SCRAM authentication](https://junglewise.ai/threats/cve-2026-6669-missing-upper-bound-on-the-key-derivation-iteration-count-accepted)
- [PgBouncer integer overflow in packet buffer growth](https://junglewise.ai/threats/cve-2026-6668-integer-overflow-in-the-packet-buffer-growth-logic-in-pgbouncer)
