{"id":"CVE-2025-2291","state":"PUBLISHED","title":"PgBouncer default auth_query does not take Postgres password expiry into account","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","publishedAt":"2025-04-16T18:00:05.413Z","updatedAt":"2025-11-03T19:42:15.907Z","severity":{"score":8.1,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"PostgreSQL"},"assigner":"PostgreSQL","products":["n/a PgBouncer"],"affected":[{"vendor":"n/a","product":"PgBouncer","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.24.1","versionType":"semver"}]}],"references":["https://www.pgbouncer.org/changelog.html#pgbouncer-124x","https://lists.debian.org/debian-lts-announce/2025/05/msg00032.html"],"weaknesses":["CWE-324"],"ingestedAt":"2026-10-29T20:08:55.257Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/2xxx/CVE-2025-2291.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-2291","state":"PUBLISHED","datePublished":"2025-04-16T18:00:05.413Z","dateUpdated":"2025-11-03T19:42:15.907Z","assignerShortName":"PostgreSQL","assignerOrgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","dateReserved":"2025-03-13T16:59:51.381Z"},"containers":{"cna":{"title":"PgBouncer default auth_query does not take Postgres password expiry into account","descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"PgBouncer","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThan":"1.24.1","versionType":"semver"}]}],"references":[{"url":"https://www.pgbouncer.org/changelog.html#pgbouncer-124x"}],"metrics":[{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.1,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-324","lang":"en","type":"CWE","description":"Use of a Key Past its Expiration Date"}]}],"providerMetadata":{"shortName":"PostgreSQL","orgId":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","dateUpdated":"2025-04-16T18:00:05.413Z"},"configurations":[{"lang":"en","value":"auth_user is set in PgBouncer and a Postgres user has password expiry configured using VALID UNTIL"}],"workarounds":[{"lang":"en","value":"Configure a custom auth_query containing the new default auth_query introduced in PgBouncer 1.24.1, this auth_query takes expiry into account"}]},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-16T18:22:39.693077Z","id":"CVE-2025-2291","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-16T18:27:58.679Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00032.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T19:42:15.907Z"}}]}}}