{"id":"GHSA-3hw2-h67c-wq66","summary":"Uncontrolled Recursion in Akka HTTP","details":"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.","aliases":["CVE-2021-42697"],"modified":"2025-09-30T18:16:55.386086Z","published":"2022-05-24T19:19:40Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2022-06-21T20:08:40Z","nvd_published_at":"2021-11-02T22:15:00Z","cwe_ids":["CWE-674","CWE-787"],"severity":"HIGH"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42697"},{"type":"WEB","url":"https://github.com/akka/akka-http/pull/3924"},{"type":"WEB","url":"https://akka.io/blog"},{"type":"WEB","url":"https://akka.io/blog/news/2021/11/02/akka-http-10.2.7-released"},{"type":"WEB","url":"https://akka.io/blog/news/2021/11/22/akka-http-10.1.15-released"},{"type":"WEB","url":"https://doc.akka.io/docs/akka-http/current/security/2021-CVE-2021-42697-stack-overflow-parsing-user-agent.html"},{"type":"PACKAGE","url":"https://github.com/akka/akka-http"},{"type":"WEB","url":"http://packetstormsecurity.com/files/167018/Akka-HTTP-10.1.14-Denial-Of-Service.html"}],"affected":[{"package":{"name":"com.typesafe.akka:akka-http-core_2.13.0-RC3","ecosystem":"Maven","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13.0-RC3"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.1.0"}]}],"versions":["10.1.8"],"database_specific":{"last_known_affected_version_range":"\u003c 10.1.15","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-3hw2-h67c-wq66/GHSA-3hw2-h67c-wq66.json"}},{"package":{"name":"com.typesafe.akka:akka-http-core_2.13.0-RC2","ecosystem":"Maven","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13.0-RC2"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.1.0"}]}],"versions":["10.1.8"],"database_specific":{"last_known_affected_version_range":"\u003c 10.1.15","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-3hw2-h67c-wq66/GHSA-3hw2-h67c-wq66.json"}},{"package":{"name":"com.typesafe.akka:akka-http-core_2.13.0-M5","ecosystem":"Maven","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13.0-M5"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.1.0"}]}],"versions":["10.1.7","10.1.8"],"database_specific":{"last_known_affected_version_range":"\u003c 10.1.15","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-3hw2-h67c-wq66/GHSA-3hw2-h67c-wq66.json"}},{"package":{"name":"com.typesafe.akka:aakka-http-core_2.13.0-M3","ecosystem":"Maven","purl":"pkg:maven/com.typesafe.akka/aakka-http-core_2.13.0-M3"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.1.0"}]}],"database_specific":{"last_known_affected_version_range":"\u003c 10.1.15","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-3hw2-h67c-wq66/GHSA-3hw2-h67c-wq66.json"}},{"package":{"name":"com.typesafe.akka:akka-http-core_2.13","ecosystem":"Maven","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.1.0"},{"fixed":"10.1.15"}]}],"versions":["10.1.10","10.1.11","10.1.12","10.1.13","10.1.14","10.1.8","10.1.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-3hw2-h67c-wq66/GHSA-3hw2-h67c-wq66.json"}},{"package":{"name":"com.typesafe.akka:akka-http-core_2.13","ecosystem":"Maven","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.13"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.2.0-M1"},{"fixed":"10.2.7"}]}],"versions":["10.2.0","10.2.0-M1","10.2.0-RC1","10.2.0-RC2","10.2.1","10.2.2","10.2.3","10.2.4","10.2.5","10.2.5-M1","10.2.5-M2","10.2.6"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-3hw2-h67c-wq66/GHSA-3hw2-h67c-wq66.json"}},{"package":{"name":"com.typesafe.akka:akka-http-core_2.12","ecosystem":"Maven","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.12"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.1.0"},{"fixed":"10.1.15"}]}],"versions":["10.1.0","10.1.1","10.1.10","10.1.11","10.1.12","10.1.13","10.1.14","10.1.2","10.1.3","10.1.4","10.1.5","10.1.6","10.1.7","10.1.8","10.1.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-3hw2-h67c-wq66/GHSA-3hw2-h67c-wq66.json"}},{"package":{"name":"com.typesafe.akka:akka-http-core_2.12","ecosystem":"Maven","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.12"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.2.0-M1"},{"fixed":"10.2.7"}]}],"versions":["10.2.0","10.2.0-M1","10.2.0-RC1","10.2.0-RC2","10.2.1","10.2.2","10.2.3","10.2.4","10.2.5","10.2.5-M1","10.2.5-M2","10.2.6"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-3hw2-h67c-wq66/GHSA-3hw2-h67c-wq66.json"}},{"package":{"name":"com.typesafe.akka:akka-http-core_2.11","ecosystem":"Maven","purl":"pkg:maven/com.typesafe.akka/akka-http-core_2.11"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"10.1.0"},{"fixed":"10.1.15"}]}],"versions":["10.1.0","10.1.1","10.1.10","10.1.11","10.1.12","10.1.13","10.1.14","10.1.2","10.1.3","10.1.4","10.1.5","10.1.6","10.1.7","10.1.8","10.1.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-3hw2-h67c-wq66/GHSA-3hw2-h67c-wq66.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}