{"id":"CVE-2026-6665","aliases":["CVE-2026-6665","BIT-PGBOUNCER-2026-6665"],"related":[],"kind":"vulnerability","state":"published","title":"PgBouncer buffer overflow in SCRAM","summary":"The SCRAM code in PgBouncer before 1.25.2 did not check the return value of strlcat() correctly when building the contents of the SCRAM client-final-message. A malicious backend that sends a SCRAM server-final-message with a long nonce can trigger a stack overflow.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The SCRAM code in PgBouncer before 1.25.2 did not check the return value of strlcat() correctly when building the contents of the SCRAM client-final-message. A malicious backend that sends a SCRAM server-final-message with a long nonce can trigger a stack overflow.","source":"cvelist"},{"lang":"es","text":"El código SCRAM en PgBouncer anterior a la versión 1.25.2 no verificaba correctamente el valor de retorno de strlcat() al construir el contenido del mensaje final del cliente SCRAM. Un backend malicioso que envía un mensaje final del servidor SCRAM con un nonce largo puede desencadenar un desbordamiento de pila.","source":"nvd"}],"published":"2026-05-09T00:43:46.762Z","modified":"2026-09-08T08:47:47.470Z","severity":{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"PostgreSQL","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-121"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.25.2","status":"affected"}],"product":"PgBouncer","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.25.2"}],"vendor":"pgbouncer","product":"pgbouncer","cpe":"cpe:2.3:a:pgbouncer:pgbouncer:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.25.2"}],"ecosystem":"Bitnami","package":"pgbouncer","purl":"pkg:bitnami/pgbouncer","source":"bitnami"}],"references":[{"url":"https://www.pgbouncer.org/changelog.html#pgbouncer-125x","tags":["article","release-notes"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6665","tags":["web"],"sources":["bitnami"]}],"credits":["Thanks to HarutoKimura for finding and reporting this problem."],"assigner":"PostgreSQL","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-11T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-6665","url":"https://www.cve.org/CVERecord?id=CVE-2026-6665","licence":"CVE Terms of Use","modified":"2026-05-12T03:55:19.823Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-6665","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-6665","licence":"Public domain","modified":"2026-07-24T08:10:00.150Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PGBOUNCER-2026-6665","url":"https://osv.dev/vulnerability/BIT-PGBOUNCER-2026-6665","licence":"Apache-2.0","modified":"2026-09-08T08:47:47.470Z"}],"updatedAt":"2026-11-25T22:59:21.130Z","epss":{"score":0.00372,"percentile":0.33164,"date":"2026-12-01T12:00:22.000Z"}}