CVE-2025-2291: Password can be used past expiry in PgBouncer due to auth_query not taking into account Postgres its VALID UNT
CVE-2025-2291 is a high-severity flaw (CVSS 8.1) affecting pgbouncer, debian linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- High severity
- Remotely exploitable, no login, no user action
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.1 (High) |
| Attack vector | Network (remote) |
| Attack complexity | High |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.4% (top 69%) |
| CISA exploited list | No |
| Weakness | CWE-324 |
| Published | 2025-04-16 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-2291?
pgbouncer: upgrade to 1.24.1; debian linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2025-2291 being exploited?
CVE-2025-2291 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-2291 affect?
CVE-2025-2291 affects pgbouncer, debian linux. Severity is high (CVSS 8.1). 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
How urgent is CVE-2025-2291?
Priority 46/100. High severity; Remotely exploitable, no login, no user action; On your watchlist
Software pages
PostgreSQL vulnerabilities · Debian vulnerabilities
Related CVEs
- CVE-2025-12819 HIGH 7.5 UPGRADE Untrusted search path in auth_query connection handler in PgBouncer before 1.25.1 allows an unauthenticated at
- CVE-2026-6664 HIGH 7.5 UPGRADE An integer overflow in network packet parsing code in PgBouncer before 1.25.2 bypasses a boundary check and ca
- CVE-2026-6665 HIGH 8.1 UPGRADE The SCRAM code in PgBouncer before 1.25.2 did not check the return value of strlcat() correctly when building
- CVE-2026-6666 MEDIUM 5.9 UPGRADE A possible null pointer reference in PgBouncer before 1.25.2 could lead to a crash, if a server sends an error
- CVE-2026-6667 MEDIUM 4.3 UPGRADE PgBouncer before 1.25.2 did not perform an appropriate authorization check for the KILL_CLIENT admin command