{"id":"CVE-2021-42697","aliases":["CVE-2021-42697","GHSA-3hw2-h67c-wq66"],"related":[],"kind":"vulnerability","state":"published","title":"Uncontrolled Recursion in Akka HTTP","summary":"Akka HTTP 10.1.x before 10.1.15 and 10.2.x before 10.2.7 can encounter stack exhaustion while parsing HTTP headers, which allows a remote attacker to conduct a Denial of Service attack by sending a User-Agent header with deeply nested comments.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Akka HTTP 10.1.x before 10.1.15 and 10.2.x before 10.2.7 can encounter stack exhaustion while parsing HTTP headers, which allows a remote attacker to conduct a Denial of Service attack by sending a User-Agent header with deeply nested comments.","source":"cvelist"},{"lang":"en","text":"Akka HTTP 10.1.x and 10.2.x before 10.2.7 can encounter stack exhaustion while parsing HTTP headers, which allows a remote attacker to conduct a Denial of Service attack by sending a User-Agent header with deeply nested comments.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Akka HTTP 10.1.x antes de 10.1.15 y 10.2.x antes de 10.2.7 pueden encontrar agotamiento de la pila mientras analizan las cabeceras HTTP, lo que permite a un atacante remoto llevar a cabo un ataque de denegación de servicio mediante el envío de una cabecera User-Agent con comentarios profundamente anidados","source":"nvd"}],"published":"2021-11-02T21:44:54.000Z","modified":"2026-06-17T04:09:58.213Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-674","CWE-787"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"10.1.0","status":"affected"}],"ecosystem":"Maven","package":"com.typesafe.akka:akka-http-core_2.13.0-RC3","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13.0-RC3","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.1.0","status":"affected"}],"ecosystem":"Maven","package":"com.typesafe.akka:akka-http-core_2.13.0-RC2","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13.0-RC2","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.1.0","status":"affected"}],"ecosystem":"Maven","package":"com.typesafe.akka:akka-http-core_2.13.0-M5","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13.0-M5","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.1.0","status":"affected"}],"ecosystem":"Maven","package":"com.typesafe.akka:aakka-http-core_2.13.0-M3","purl":"pkg:maven/com.typesafe.akka/aakka-http-core_2.13.0-M3","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.1.0","status":"affected","fixed":"10.1.15"}],"ecosystem":"Maven","package":"com.typesafe.akka:akka-http-core_2.13","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.2.0-M1","status":"affected","fixed":"10.2.7"}],"ecosystem":"Maven","package":"com.typesafe.akka:akka-http-core_2.13","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.1.0","status":"affected","fixed":"10.1.15"}],"ecosystem":"Maven","package":"com.typesafe.akka:akka-http-core_2.12","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.2.0-M1","status":"affected","fixed":"10.2.7"}],"ecosystem":"Maven","package":"com.typesafe.akka:akka-http-core_2.12","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.12","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.1.0","status":"affected","fixed":"10.1.15"}],"ecosystem":"Maven","package":"com.typesafe.akka:akka-http-core_2.11","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.11","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"10.1.0","fixed":"10.1.15"},{"status":"affected","introduced":"10.2.0","fixed":"10.2.7"}],"vendor":"akka","product":"http_server","cpe":"cpe:2.3:a:akka:http_server:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://akka.io/blog/","tags":["vendor-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://doc.akka.io/docs/akka-http/current/security/2021-CVE-2021-42697-stack-overflow-parsing-user-agent.html","tags":["vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://akka.io/blog/news/2021/11/02/akka-http-10.2.7-released","tags":["release-notes","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://akka.io/blog/news/2021/11/22/akka-http-10.1.15-released","tags":["release-notes","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://packetstormsecurity.com/files/167018/Akka-HTTP-10.1.14-Denial-Of-Service.html","tags":["exploit","third-party-advisory","vdb-entry","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42697","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/akka/akka-http/pull/3924","tags":["web"],"sources":["ghsa"]},{"url":"https://akka.io/blog","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/akka/akka-http","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-42697","url":"https://www.cve.org/CVERecord?id=CVE-2021-42697","licence":"CVE Terms of Use","modified":"2024-08-04T03:38:50.142Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3hw2-h67c-wq66","url":"https://github.com/advisories/GHSA-3hw2-h67c-wq66","licence":"CC-BY-4.0","modified":"2025-09-30T18:16:55.386Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-42697","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42697","licence":"Public domain","modified":"2026-06-17T04:09:58.213Z"}],"updatedAt":"2026-11-25T22:58:05.318Z","epss":{"score":0.35322,"percentile":0.98479,"date":"2026-12-01T12:00:22.000Z"}}