CVE-2025-12819: Untrusted search path in auth_query connection handler in PgBouncer before 1.25.1 allows an unauthenticated at
CVE-2025-12819 is a high-severity flaw (CVSS 7.5) affecting pgbouncer. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.5 (High) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 0.4% (top 70%) |
| CISA exploited list | No |
| Weakness | CWE-426 |
| Published | 2025-12-03 |
| Last modified | 2026-10-18 |
Last updated 2026-10-18 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-12819?
pgbouncer: upgrade to 1.25.1. Exact commands for each OS are on this page.
Is CVE-2025-12819 being exploited?
CVE-2025-12819 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-12819 affect?
CVE-2025-12819 affects pgbouncer. Severity is high (CVSS 7.5). 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.
How urgent is CVE-2025-12819?
Priority 34/100. High severity
Related CVEs
- CVE-2026-6664 HIGH 7.5 UPGRADE An integer overflow in network packet parsing code in PgBouncer before 1.25.2 bypasses a boundary check and ca
- CVE-2026-6665 HIGH 8.1 UPGRADE The SCRAM code in PgBouncer before 1.25.2 did not check the return value of strlcat() correctly when building
- CVE-2026-6666 MEDIUM 5.9 UPGRADE A possible null pointer reference in PgBouncer before 1.25.2 could lead to a crash, if a server sends an error
- CVE-2026-6667 MEDIUM 4.3 UPGRADE PgBouncer before 1.25.2 did not perform an appropriate authorization check for the KILL_CLIENT admin command
- CVE-2025-2291 HIGH 8.1 UPGRADE MITIGATE Password can be used past expiry in PgBouncer due to auth_query not taking into account Postgres its VALID UNT