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

EcosystemPackageFixed inAdvisory
Debian:12pgbouncer1.18.0-1+deb12u1DEBIAN-CVE-2025-2291
Debian:13pgbouncer1.24.1-1DEBIAN-CVE-2025-2291
Debian:14pgbouncer1.24.1-1DEBIAN-CVE-2025-2291
Ubuntu:22.04:LTSpgbouncerno fix listedUBUNTU-CVE-2025-2291
Ubuntu:24.04:LTSpgbouncerno fix listedUBUNTU-CVE-2025-2291
Ubuntu:25.10pgbouncerno fix listedUBUNTU-CVE-2025-2291

Affected products (as reported)

VendorProductVersions
n/a PgBouncer 0 – before 1.24.1

Weakness: CWE-324 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

References