{"id":"UBUNTU-CVE-2025-2291","details":"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","modified":"2026-01-20T18:53:50.404018Z","published":"2025-04-16T18:16:00Z","upstream":["CVE-2025-2291"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-2291"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-2291"},{"type":"REPORT","url":"https://www.pgbouncer.org/changelog.html#pgbouncer-124x"}],"affected":[{"package":{"name":"pgbouncer","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/pgbouncer@1.7-1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.5-1","1.6.1-1","1.7-1"],"ecosystem_specific":{"binaries":[{"binary_name":"pgbouncer","binary_version":"1.7-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2291.json"}},{"package":{"name":"pgbouncer","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/pgbouncer@1.8.1-1build1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.2-3build1","1.7.2-65-g2b8e6cf-1","1.8.1-1","1.8.1-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"pgbouncer","binary_version":"1.8.1-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2291.json"}},{"package":{"name":"pgbouncer","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/pgbouncer@1.12.0-3?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.10.0-1","1.10.0-1build1","1.11.0-1","1.12.0-2","1.12.0-3"],"ecosystem_specific":{"binaries":[{"binary_name":"pgbouncer","binary_version":"1.12.0-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2291.json"}},{"package":{"name":"pgbouncer","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pgbouncer@1.16.1-1ubuntu1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.15.0-1","1.16.1-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"pgbouncer","binary_version":"1.16.1-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2291.json"}},{"package":{"name":"pgbouncer","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/pgbouncer@1.22.0-1build4?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.20.0-1","1.21.0-1","1.22.0-1","1.22.0-1build1","1.22.0-1build3","1.22.0-1build4"],"ecosystem_specific":{"binaries":[{"binary_name":"pgbouncer","binary_version":"1.22.0-1build4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2291.json"}},{"package":{"name":"pgbouncer","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/pgbouncer@1.24.1-1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.24.0-3","1.24.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"pgbouncer","binary_version":"1.24.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2291.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}