Skip to content

CVE-2025-12819 Untrusted search path in auth_query connection in PgBouncer

HighCVSS 8.1 EPSS 0.39%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebian

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.

Upgrade path

9 packages: 8 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/pgbouncer(Ubuntu 24.04) All versions No fix listed No fix yet
alpine/pgbouncer(Alpine v3.23) < 1.25.1-r0 1.25.1-r0 Fixed
alpine/pgbouncer(Alpine v3.24) < 1.25.1-r0 1.25.1-r0 Fixed
azure linux pgbouncer(Azure Linux 3.0) < 1.25.1-1 1.25.1-1 Fixed
cbl-mariner pgbouncer(CBL-Mariner 2.0) < 1.25.1-1 1.25.1-1 Fixed
debian/pgbouncer(Debian 12) < 1.18.0-1+deb12u1; = 1.18.0-1 1.18.0-1+deb12u1 Fixed
debian/pgbouncer(Debian 13) < 1.24.1-1+deb13u1; = 1.24.1-1 1.24.1-1+deb13u1 Fixed
debian/pgbouncer(Debian 14) < 1.25.1-1; = 1.24.1-1; = 1.25.0-1; = 1.25.0-2 1.25.1-1 Fixed
pgbouncer < 1.25.1 1.25.1 Fixed

Affected products

ProductAffected versionsFixed in
cbl-mariner pgbouncer(CBL-Mariner:2.0) < 1.25.1-1 1.25.1-1
azure linux pgbouncer(Azure Linux:3.0) < 1.25.1-1 1.25.1-1
debian/pgbouncer(Debian:12) < 1.18.0-1+deb12u1 1.18.0-1+deb12u1
debian/pgbouncer(Debian:12) = 1.18.0-1 No fix listed
debian/pgbouncer(Debian:13) < 1.24.1-1+deb13u1 1.24.1-1+deb13u1
debian/pgbouncer(Debian:13) = 1.24.1-1 No fix listed
debian/pgbouncer(Debian:14) < 1.25.1-1 1.25.1-1
debian/pgbouncer(Debian:14) = 1.24.1-1 No fix listed
debian/pgbouncer(Debian:14) = 1.25.0-1 No fix listed
debian/pgbouncer(Debian:14) = 1.25.0-2 No fix listed
alpine/pgbouncer(Alpine:v3.23) < 1.25.1-r0 1.25.1-r0
alpine/pgbouncer(Alpine:v3.24) < 1.25.1-r0 1.25.1-r0
ubuntu/pgbouncer(Ubuntu:24.04) All versions No fix listed
pgbouncer < 1.25.1 1.25.1

References