{"id":"CVE-2022-3433","aliases":["CVE-2022-3433","HSEC-2023-0001"],"related":[],"kind":"vulnerability","state":"published","title":"Hash flooding vulnerability in aeson","summary":"The aeson library is not safe to use to consume untrusted JSON input. A remote user could abuse this flaw to produce a hash collision in the underlying unordered-containers library by sending specially crafted JSON data, resulting in a denial of service.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The aeson library is not safe to use to consume untrusted JSON input. A remote user could abuse this flaw to produce a hash collision in the underlying unordered-containers library by sending specially crafted JSON data, resulting in a denial of service.","source":"cvelist"},{"lang":"en","text":"# Hash flooding vulnerability in aeson\n\n*aeson* was vulnerable to hash flooding (a.k.a. hash DoS).  The\nissue is a consequence of the HashMap implementation from\n*unordered-containers*.  It results in a denial of service through\nCPU consumption.  This technique has been used in real-world attacks\nagainst a variety of languages, libraries and frameworks over the\nyears.","format":"markdown","source":"hsec"},{"lang":"es","text":"La biblioteca aeson no es segura para consumir entradas JSON no confiables. Un usuario remoto podría abusar de este fallo para producir una colisión de hash en la biblioteca subyacente unordered-containers mediante el envío de datos JSON especialmente diseñados, resultando en una denegación de servicio","source":"nvd"}],"published":"2022-10-10T00:00:00.000Z","modified":"2026-06-17T04:59:31.133Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-326","CWE-328"],"affected":[{"ranges":[{"version":"Fixed in 2.0.1.0","status":"affected"}],"product":"aeson","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.4.0.0","status":"affected","fixed":"2.0.1.0"}],"ecosystem":"Hackage","package":"aeson","purl":"pkg:hackage/aeson","source":"hsec"},{"ranges":[{"status":"affected","fixed":"2.0.1.0"}],"vendor":"haskell","product":"aeson","cpe":"cpe:2.3:a:haskell:aeson:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://cs-syd.eu/posts/2021-09-11-json-vulnerability","tags":["article","exploit","patch","technical-description","third-party-advisory","x-transferred"],"sources":["cvelist","hsec","nvd"]},{"url":"https://frasertweedale.github.io/blog-fp/posts/2021-10-12-aeson-hash-flooding-protection.html","tags":["article"],"sources":["hsec"]},{"url":"https://github.com/haskell/aeson/issues/864","tags":["discussion"],"sources":["hsec"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-3433","url":"https://www.cve.org/CVERecord?id=CVE-2022-3433","licence":"CVE Terms of Use","modified":"2024-08-03T01:07:06.587Z"},{"source":"hsec","name":"Haskell Security Advisories","id":"HSEC-2023-0001","url":"https://osv.dev/vulnerability/HSEC-2023-0001","licence":"CC0-1.0","modified":"2025-11-14T18:15:27.977Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-3433","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-3433","licence":"Public domain","modified":"2026-06-17T04:59:31.133Z"}],"updatedAt":"2026-11-25T22:58:15.503Z","epss":{"score":0.00852,"percentile":0.59359,"date":"2026-12-01T12:00:22.000Z"}}