CVE-2019-15542 Uncontrolled recursion in ammonia

High 7.5 Published Updated

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.

PackageAffectedFixed in
ammonia crates.ioAll versions2.1.0
ammonia crates.ioAll versions2.1.0
ammonia crates.ioFrom 0.0.0-02.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.

Sources

Also known as GHSA-5hp8-35wj-m525, RUSTSEC-2019-0001.

Is CVE-2019-15542 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free