Skip to content
OpenAdvisories
High · 7.5 CVE-2025-12819 EUVD-2025-201089GHSA-qpxx-2fwx-f5qj

Untrusted search path in auth_query connection in PgBouncer

Published Dec 3, 2025 · Updated Dec 27, 2025 · Assigned by PostgreSQL

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 products

VendorProductAffectedFixed
— PgBouncer < 1.25.1 1.25.1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pgbouncer 1.25.1-1 —
Debian 13 pgbouncer 1.24.1-1+deb13u1 —
Debian 12 pgbouncer 1.18.0-1+deb12u1 —
Debian 11 pgbouncer 1.15.0-1+deb11u2 DLA-4422-1
ReleasePackageFixed inAdvisory
Ubuntu 25.10 pgbouncer No fix yet —
Ubuntu 24.04 LTS pgbouncer No fix yet —
Ubuntu 20.04 LTS pgbouncer No fix yet —
Ubuntu 18.04 LTS pgbouncer No fix yet —
Ubuntu 16.04 LTS pgbouncer No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.24 pgbouncer 1.25.1-r0 —
Alpine v3.23 pgbouncer 1.25.1-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 pgbouncer 1.25.1-1 —
Azure Linux 2 (CBL-Mariner) pgbouncer 1.25.1-1 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling pgbouncer 1.25.1-r0 —

Advisories 2

References