Skip to content

CVE-2025-2291 PgBouncer default auth_query does not take Postgres password expiry into account

CriticalCVSS 9.8 EPSS 0.38%
Published
Updated
Exploit status
No public exploit known

Description

Password can be used past expiry in PgBouncer due to auth_query not taking into account Postgres its VALID UNTIL value, which allows an attacker to log in with an already expired password

Affected products

ProductAffected versionsFixed in
cbl-mariner pgbouncer(CBL-Mariner:2.0) < 1.24.1-1 1.24.1-1
azure linux pgbouncer(Azure Linux:3.0) < 1.24.1-1 1.24.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 1.24.1-1
debian/pgbouncer(Debian:14) < 1.24.1-1 1.24.1-1
ubuntu/pgbouncer(Ubuntu:22.04) All versions No fix listed
ubuntu/pgbouncer(Ubuntu:24.04) All versions No fix listed
pgbouncer < 1.24.1 1.24.1
debian linux = 11.0 No fix listed

References