CVE-2025-12819

NameCVE-2025-12819
DescriptionUntrusted 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pgbouncer (PTS)bullseye1.15.0-1vulnerable
bullseye (security)1.15.0-1+deb11u1vulnerable
bookworm1.18.0-1vulnerable
trixie1.24.1-1vulnerable
forky, sid1.25.1-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pgbouncersource(unstable)1.25.1-1

Notes

https://www.pgbouncer.org/changelog.html#pgbouncer-125x
Fixed by: https://github.com/pgbouncer/pgbouncer/commit/85acffac5ddf56657706812f600c5f7f477abbab (pgbouncer_1_25_1)

Search for package or bug name: Reporting problems