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

- Severity: High 8.1 (CVSS:3.1, scored by PostgreSQL) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-02)
- Published: 2025-04-16T18:00:05.413Z
- Modified: 2026-09-08T08:48:24.630Z
- Also known as: BIT-PGBOUNCER-2025-2291
- Weaknesses: CWE-324
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: PostgreSQL

## 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

(As written by CVE List.)

## Affected

- PgBouncer: before 1.24.1
- pgbouncer pgbouncer: before 1.24.1
- debian debian_linux: 11.0
- pgbouncer (Bitnami): before 1.24.1

## Every score

- PostgreSQL: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://www.pgbouncer.org/changelog.html#pgbouncer-124x> (article, release-notes)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00032.html> (advisory, mailing-list, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-2291> (web)

## Sources

- CVE List: [CVE-2025-2291](https://www.cve.org/CVERecord?id=CVE-2025-2291), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2025-2291](https://nvd.nist.gov/vuln/detail/CVE-2025-2291), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-PGBOUNCER-2025-2291](https://osv.dev/vulnerability/BIT-PGBOUNCER-2025-2291), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-2291 · Whole record: https://cve.day/CVE-2025-2291.json · Rebuilt by cve.day 2026-11-25T22:58:56.637Z
