Miggo Logo

CVE-2019-15542: Uncontrolled recursion in ammonia

7.5

CVSS Score
3.0

Basic Information

EPSS Score
0.57838%
Published
8/25/2021
Updated
1/11/2023
KEV Status
No
Technology
TechnologyRust

Technical Details

CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
ammoniarust< 2.1.02.1.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The RustSec advisory explicitly lists these functions in the 'Affected Functions' section and describes how they used recursive DOM tree serialization. The changelog for 2.1.0 confirms the fix involved replacing recursion with iterative serialization. These functions are core to the crate's HTML processing workflow, making them the clear vectors for the stack overflow vulnerability through pathologically nested input.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*n issu* w*s *is*ov*r** in t** *mmoni* *r*t* ***or* *.*.* *or Rust. T**r* is un*ontroll** r**ursion *urin* *TML *OM tr** s*ri*liz*tion.

Reasoning

T** RustS** **visory *xpli*itly lists t**s* *un*tions in t** '*****t** *un*tions' s**tion *n* **s*ri**s *ow t**y us** r**ursiv* *OM tr** s*ri*liz*tion. T** ***n**lo* *or *.*.* *on*irms t** *ix involv** r*pl**in* r**ursion wit* it*r*tiv* s*ri*liz*tion