CVE-2021-42697 is a high-severity (CVSS 7.5) CWE-674 vulnerability in com.typesafe.akka:akka-http-core_2.13.0-RC3. 2 public exploit or proof-of-concept references are indexed, so weaponization risk is real. A fix is available for com.typesafe.akka:akka-http-core_2.13.0-RC3 — see the affected versions and patch details below.
Uncontrolled Recursion in Akka HTTP
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
com.typesafe.akka:akka-http-core_2.13.0-RC3☕com.typesafe.akka:akka-http-core_2.13.0-RC2☕com.typesafe.akka:akka-http-core_2.13.0-M5☕com.typesafe.akka:aakka-http-core_2.13.0-M3☕com.typesafe.akka:akka-http-core_2.13☕com.typesafe.akka:akka-http-core_2.13☕com.typesafe.akka:akka-http-core_2.12☕com.typesafe.akka:akka-http-core_2.12+1 moreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | com.typesafe.akka:akka-http-core_2.13.0-RC3 | ≥ 10.1.0 | No fix |
| ☕Maven | com.typesafe.akka:akka-http-core_2.13.0-RC2 | ≥ 10.1.0 | No fix |
| ☕Maven | com.typesafe.akka:akka-http-core_2.13.0-M5 | ≥ 10.1.0 | No fix |
| ☕Maven | com.typesafe.akka:aakka-http-core_2.13.0-M3 | ≥ 10.1.0 | No fix |
| ☕Maven | com.typesafe.akka:akka-http-core_2.13 | ≥ 10.1.0&&< 10.1.15 | 10.1.15com.typesafe.akka:akka-http-core_2.13:10.1.15 |
| ☕Maven | com.typesafe.akka:akka-http-core_2.13 | ≥ 10.2.0-M1&&< 10.2.7 | 10.2.7com.typesafe.akka:akka-http-core_2.13:10.2.7 |
Affected Products
http serverakkaResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Akka HTTP 10.1.14 - Denial of Service
by cxosmo · May 11, 2022
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for com.typesafe.akka:akka-http-core_2.13.0-RC3, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
A fix is available for CVE-2021-42697; check the affected-versions list above or the advisory for the patched release of com.typesafe.akka:akka-http-core_2.13.0-RC3, then make sure no transitive dependency still pins the vulnerable range.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Frequently Asked Questions
Is CVE-2021-42697 in your dependencies?
Find it across Maven, including transitive dependencies.