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

Published Apr 16, 2025
·
Updated

Password can be used past expiry in PgBouncer due to authquery not taking into account Postgres its VALID UNTIL value, which allows an attacker to log in with an already expired password

Other sources

PgBouncer default authquery does not take Postgres password expiry into account

Microsoft

Affected Software

7 affected componentsFixes available
PgBouncer PgBouncer
PgBouncer PgBouncer<1.24.1
Debian Debian Linux=11.0
Microsoft cbl2 pgbouncer 1.16.1-1<1.24.1-1
1.24.1-1
Microsoft azl3 pgbouncer 1.24.1-1<1.24.1-1
1.24.1-1
Microsoft azl3 pgbouncer 1.20.1-1<1.24.1-1
1.24.1-1
Microsoft cbl2 pgbouncer 1.24.1-1<1.24.1-1
1.24.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.24.1-1

Event History

Apr 16, 2025
CVE Published
via MITRE·06:00 PM
Data Sourced
via MITRE·06:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:16 PM
DescriptionSeverityWeaknessAffected Software
Apr 23, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
SeverityAffected Software
Updated
via Microsoft·07:00 AM
Severity
Updated
via Microsoft·07:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2025-2291?

CVE-2025-2291 is classified as a high severity vulnerability due to the risk of unauthorized access with expired passwords.

2

How do I fix CVE-2025-2291?

To fix CVE-2025-2291, update PgBouncer to the latest version where the issue is resolved.

3

What systems are affected by CVE-2025-2291?

CVE-2025-2291 affects PgBouncer installations that do not correctly enforce password expiry based on Postgres' VALID UNTIL value.

4

What exploits are possible with CVE-2025-2291?

An attacker can exploit CVE-2025-2291 to log in using expired passwords, potentially gaining unauthorized access to the database.

5

What precautions should be taken regarding CVE-2025-2291?

Organizations should regularly update PgBouncer and review their authentication processes to ensure compliance with password expiry policies.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203