CVE-2021-42697: Uncontrolled Recursion in Akka HTTP
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.98824%
CWE
Published
5/24/2022
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| com.typesafe.akka:akka-http | maven | >= 10.1.0, <= 10.2.6 | 10.2.7 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from uncontrolled recursion during HTTP header comment parsing. The advisory explicitly mentions stack exhaustion from deeply nested comments, and the patch introduced 'max-comment-parsing-depth' configuration. The workaround suggests disabling modeled header parsing, implicating HeaderParser's comment handling. While exact code isn't available, Akka's architecture places header parsing logic in HeaderParser.scala, with recursive comment parsing being a common pattern in parser implementations. The CWE-674 classification further supports the recursion control failure hypothesis.