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

EcosystemPackageFixed inAdvisory
Alpine:v3.23pgbouncer1.25.1-r0ALPINE-CVE-2025-12819
Alpine:v3.24pgbouncer1.25.1-r0ALPINE-CVE-2025-12819
Debian:12pgbouncer1.18.0-1+deb12u1DEBIAN-CVE-2025-12819
Debian:13pgbouncer1.24.1-1+deb13u1DEBIAN-CVE-2025-12819
Debian:14pgbouncer1.25.1-1DEBIAN-CVE-2025-12819
Ubuntu:22.04:LTSpgbouncerno fix listedUBUNTU-CVE-2025-12819
Ubuntu:24.04:LTSpgbouncerno fix listedUBUNTU-CVE-2025-12819
Ubuntu:25.10pgbouncerno fix listedUBUNTU-CVE-2025-12819
Ubuntu:26.04:LTSpgbouncerno fix listedUBUNTU-CVE-2025-12819

Affected products (as reported)

VendorProductVersions
n/a PgBouncer 0 – before 1.25.1

Weakness: CWE-426 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

References