CVE-2025-2291
CBL Mariner vulnerability analysis and mitigation

Overview

CVE-2025-2291 is a security vulnerability in PgBouncer affecting versions prior to 1.24.1, discovered and disclosed on April 16, 2025. The vulnerability allows expired passwords to be used for authentication when PgBouncer is used as a transparent proxy in front of PostgreSQL. This occurs because PgBouncer's auth_query functionality did not take into account PostgreSQL's VALID UNTIL value when querying for password hashes (PgBouncer Changelog).

Technical details

The vulnerability stems from a flaw in PgBouncer's authentication mechanism where the auth_query function fails to consider the VALID UNTIL timestamp when validating user passwords. This oversight allows authentication attempts to succeed even when the associated password has expired in the PostgreSQL backend. The issue has been assigned a CVSS v3.1 score of 8.1 (HIGH) with the vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H, indicating potential for high impact on confidentiality, integrity, and availability (NVD Database).

Impact

The vulnerability enables attackers to authenticate using expired passwords when PgBouncer is configured as a transparent proxy for PostgreSQL. This bypasses an important security control and could allow unauthorized access to database resources even after credentials have been explicitly expired by administrators (PgBouncer Changelog).

Mitigation and workarounds

The issue has been fixed in PgBouncer version 1.24.1. Organizations can either upgrade to this version or modify their custom authquery to include VALID UNTIL checks if using an older version. The default authquery has been updated in version 1.24.1 to properly consider the VALID UNTIL value (PgBouncer Changelog).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management