CVE-2021-42697
HIGH 7.5CVSS 3.1Uncontrolled Recursion in Akka HTTP
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.
- Published
- 2 Nov 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-674CWE-787
- Also known as
- GHSA-3hw2-h67c-wq66
- Sources
- NVDJSONOSV GHSA-3hw2-h67c-wq66JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | akka | http_servercpe:2.3:a:akka:http_server:*:*:*:*:*:*:*:* |
>= 10.1.0, < 10.1.15 | 10.1.15 |
| NVD | akka | http_servercpe:2.3:a:akka:http_server:*:*:*:*:*:*:*:* |
>= 10.2.0, < 10.2.7 | 10.2.7 |
| OSV | Maven | com.typesafe.akka:akka-http-core_2.13.0-RC3 | >= 10.1.0 | |
| OSV | Maven | com.typesafe.akka:akka-http-core_2.13.0-RC2 | >= 10.1.0 | |
| OSV | Maven | com.typesafe.akka:akka-http-core_2.13.0-M5 | >= 10.1.0 | |
| OSV | Maven | com.typesafe.akka:aakka-http-core_2.13.0-M3 | >= 10.1.0 | |
| OSV | Maven | com.typesafe.akka:akka-http-core_2.13 | >= 10.1.0, < 10.1.15 | 10.1.15 |
| OSV | Maven | com.typesafe.akka:akka-http-core_2.13 | >= 10.2.0-M1, < 10.2.7 | 10.2.7 |
| OSV | Maven | com.typesafe.akka:akka-http-core_2.12 | >= 10.1.0, < 10.1.15 | 10.1.15 |
| OSV | Maven | com.typesafe.akka:akka-http-core_2.12 | >= 10.2.0-M1, < 10.2.7 | 10.2.7 |
| OSV | Maven | com.typesafe.akka:akka-http-core_2.11 | >= 10.1.0, < 10.1.15 | 10.1.15 |
References
- http://packetstormsecurity.com/files/167018/Akka-HTTP-10.1.14-Denial-Of-Service.html · Exploit, Third Party Advisory, VDB Entry, WEB
- https://akka.io/blog/ · Vendor Advisory, WEB
- https://akka.io/blog/news/2021/11/02/akka-http-10.2.7-released · Release Notes, Vendor Advisory, WEB
- https://akka.io/blog/news/2021/11/22/akka-http-10.1.15-released · Release Notes, Vendor Advisory, WEB
- https://doc.akka.io/docs/akka-http/current/security/2021-CVE-2021-42697-stack-overflow-parsing-user-agent.html · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-42697 · ADVISORY
- https://github.com/akka/akka-http/pull/3924 · WEB
- https://github.com/akka/akka-http · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 2 Nov 2021)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 24 May 2022)