CVE-2025-2291 PgBouncer default auth_query does not take Postgres password expiry into account
Attackers can log in using expired passwords because PgBouncer's default authentication query ignores PostgreSQL password expiration settings.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-2291?
CVE-2025-2291 is a high-severity authentication bypass vulnerability in Debian Debian Linux, published on 16 Apr 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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
Weakness: CWE-324
Which versions are affected by CVE-2025-2291?
1 open source package ship an affected version, including pgbouncer. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
pgbouncer Bitnami | All versions | 1.24.1 |
Products include Debian Debian Linux, Pgbouncer Pgbouncer.
How do I fix CVE-2025-2291?
Upgrade pgbouncer to 1.24.1 or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2025-2291 being exploited?
There is no known exploitation of CVE-2025-2291 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as AZL-60437, AZL-60438, BIT-pgbouncer-2025-2291, DEBIAN-CVE-2025-2291, GHSA-qj9w-64mv-p2fw, UBUNTU-CVE-2025-2291.