CVE-2019-15542 Uncontrolled recursion in ammonia
An attacker can cause a denial of service via uncontrolled recursion in the ammonia Rust library during HTML serialization.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-15542?
CVE-2019-15542 is a high-severity denial of service vulnerability in n/a, published on 26 Aug 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in the ammonia crate before 2.1.0 for Rust. There is uncontrolled recursion during HTML DOM tree serialization.
Weakness: CWE-674
Which versions are affected by CVE-2019-15542?
3 open source packages ship an affected version, including ammonia. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
ammonia crates.io | All versions | 2.1.0 |
ammonia crates.io | All versions | 2.1.0 |
ammonia crates.io | From 0.0.0-0 | 2.1.0 |
Products include Ammonia Project Ammonia.
How do I fix CVE-2019-15542?
Upgrade ammonia to 2.1.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2019-15542 being exploited?
There is no known exploitation of CVE-2019-15542 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-5hp8-35wj-m525, RUSTSEC-2019-0001.