Vulnerability · Published Apr 16, 2025 · Assigned by PostgreSQL
CVE-2025-2291PgBouncer default auth_query does not take Postgres password expiry into account
High 8.1
In plain English
A high-severity security flaw in PgBouncer. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 31% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)8.1High
Exploit odds (30 days)0.4%top 69.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
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
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | pgbouncer | 1.18.0-1+deb12u1 | DEBIAN-CVE-2025-2291 |
| Debian:13 | pgbouncer | 1.24.1-1 | DEBIAN-CVE-2025-2291 |
| Debian:14 | pgbouncer | 1.24.1-1 | DEBIAN-CVE-2025-2291 |
| Ubuntu:22.04:LTS | pgbouncer | no fix listed | UBUNTU-CVE-2025-2291 |
| Ubuntu:24.04:LTS | pgbouncer | no fix listed | UBUNTU-CVE-2025-2291 |
| Ubuntu:25.10 | pgbouncer | no fix listed | UBUNTU-CVE-2025-2291 |
Affected products (as reported)
Weakness: CWE-324 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H