Miggo Logo

CVE-2021-42697: Uncontrolled Recursion in Akka HTTP

7.5

CVSS Score
3.1

Basic Information

EPSS Score
0.98824%
Published
5/24/2022
Updated
1/27/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
com.typesafe.akka:akka-httpmaven>= 10.1.0, <= 10.2.610.2.7

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot 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.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

*kk* *TTP **.*.x *n* **.*.x ***or* **.*.* **n *n*ount*r st**k *x**ustion w*il* p*rsin* *TTP *****rs, w*i** *llows * r*mot* *tt**k*r to *on*u*t * **ni*l o* S*rvi** *tt**k *y s*n*in* * Us*r-***nt *****r wit* ***ply n*st** *omm*nts.

Reasoning

T** vuln*r**ility st*ms *rom un*ontroll** r**ursion *urin* *TTP *****r *omm*nt p*rsin*. T** **visory *xpli*itly m*ntions st**k *x**ustion *rom ***ply n*st** *omm*nts, *n* t** p*t** intro*u*** 'm*x-*omm*nt-p*rsin*-**pt*' *on*i*ur*tion. T** work*roun*