{
  "id": "CVE-2025-2291",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-2291",
  "published_at": "2025-04-16T18:00:05.413Z",
  "title": "PgBouncer default auth_query does not take Postgres password expiry into account",
  "product": "PgBouncer",
  "cvss": {
    "score": 9.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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",
  "cwe": "CWE-324",
  "cpes": [
    "cpe:2.3:a:pgbouncer:pgbouncer:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.1,
    "nvd": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "n/a",
        "product": "PgBouncer",
        "ranges": [
          "\u003c 1.24.1"
        ],
        "fixed_in": [
          "1.24.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade PgBouncer to 1.24.1 or later."
    ],
    "workarounds": [
      "Configure a custom auth_query containing the new default auth_query introduced in PgBouncer 1.24.1, this auth_query takes expiry into account"
    ],
    "references": [
      {
        "kind": "Release notes",
        "url": "https://www.pgbouncer.org/changelog.html#pgbouncer-124x"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
