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
Fixes

Solution

No solution given by the vendor.


Workaround

Configure a custom auth_query containing the new default auth_query introduced in PgBouncer 1.24.1, this auth_query takes expiry into account

History

Wed, 16 Apr 2025 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 16 Apr 2025 18:15:00 +0000

Type Values Removed Values Added
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
Title PgBouncer default auth_query does not take Postgres password expiry into account
Weaknesses CWE-324
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: PostgreSQL

Published:

Updated: 2025-04-16T18:27:58.679Z

Reserved: 2025-03-13T16:59:51.381Z

Link: CVE-2025-2291

cve-icon Vulnrichment

Updated: 2025-04-16T18:27:52.655Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-04-16T18:16:04.977

Modified: 2025-04-17T20:22:16.240

Link: CVE-2025-2291

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.