Description
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.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Akka HTTP 10.1.14 - Denial of Service EDB-50892 · remote · May 11, 2022
GitHub 1 repository
-
cxosmo/CVE-2021-42697 ★ 1 · Apr 24, 2022
Proof of concept exploit for CVE-2021-42697: 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 cond…
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | com.typesafe.akka:aakka-http-core_2.13.0-M3 | >= 10.1.0 | — | GHSA-3hw2-h67c-wq66 |
| Maven | com.typesafe.akka:akka-http-core_2.11 | >= 10.1.0, < 10.1.15 | 10.1.15 | GHSA-3hw2-h67c-wq66 |
| Maven | com.typesafe.akka:akka-http-core_2.12 | >= 10.1.0, < 10.1.15 | 10.1.15 | GHSA-3hw2-h67c-wq66 |
| Maven | com.typesafe.akka:akka-http-core_2.12 | >= 10.2.0-M1, < 10.2.7 | 10.2.7 | GHSA-3hw2-h67c-wq66 |
| Maven | com.typesafe.akka:akka-http-core_2.13 | >= 10.1.0, < 10.1.15 | 10.1.15 | GHSA-3hw2-h67c-wq66 |
| Maven | com.typesafe.akka:akka-http-core_2.13 | >= 10.2.0-M1, < 10.2.7 | 10.2.7 | GHSA-3hw2-h67c-wq66 |
| Maven | com.typesafe.akka:akka-http-core_2.13.0-M5 | >= 10.1.0 | — | GHSA-3hw2-h67c-wq66 |
| Maven | com.typesafe.akka:akka-http-core_2.13.0-RC2 | >= 10.1.0 | — | GHSA-3hw2-h67c-wq66 |
| Maven | com.typesafe.akka:akka-http-core_2.13.0-RC3 | >= 10.1.0 | — | GHSA-3hw2-h67c-wq66 |
References
- https://akka.io/blog/
- https://doc.akka.io/docs/akka-http/current/security/2021-CVE-2021-42697-stack-overflow-parsing-user-agent.html
- https://akka.io/blog/news/2021/11/02/akka-http-10.2.7-released
- https://akka.io/blog/news/2021/11/22/akka-http-10.1.15-released
- http://packetstormsecurity.com/files/167018/Akka-HTTP-10.1.14-Denial-Of-Service.html