Vulnerability · Published Dec 3, 2025 · Assigned by PostgreSQL
CVE-2025-12819Untrusted search path in auth_query connection in PgBouncer
High 7.5
In plain English
A high-severity security flaw in PgBouncer. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.4%top 67.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.23 | pgbouncer | 1.25.1-r0 | ALPINE-CVE-2025-12819 |
| Alpine:v3.24 | pgbouncer | 1.25.1-r0 | ALPINE-CVE-2025-12819 |
| Debian:12 | pgbouncer | 1.18.0-1+deb12u1 | DEBIAN-CVE-2025-12819 |
| Debian:13 | pgbouncer | 1.24.1-1+deb13u1 | DEBIAN-CVE-2025-12819 |
| Debian:14 | pgbouncer | 1.25.1-1 | DEBIAN-CVE-2025-12819 |
| Ubuntu:22.04:LTS | pgbouncer | no fix listed | UBUNTU-CVE-2025-12819 |
| Ubuntu:24.04:LTS | pgbouncer | no fix listed | UBUNTU-CVE-2025-12819 |
| Ubuntu:25.10 | pgbouncer | no fix listed | UBUNTU-CVE-2025-12819 |
| Ubuntu:26.04:LTS | pgbouncer | no fix listed | UBUNTU-CVE-2025-12819 |
Affected products (as reported)
Weakness: CWE-426 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H