Advisory

RUSTSEC-2019-0001

Also known as: CVE-2019-15542, GHSA-5hp8-35wj-m525

Summary

Uncontrolled recursion leads to abort in HTML serialization

Details

Affected versions of this crate did use recursion for serialization of HTML
DOM trees.

This allows an attacker to cause abort due to stack overflow by providing
a pathologically nested input.

The flaw was corrected by serializing the DOM tree iteratively instead.

Severity

High Basis: CVSS v3 score 7.5, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Dates

Published
2019-04-27 12:00 UTC
Modified
2023-11-08 04:01 UTC

Affected packages and fixes

ammonia

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 2.1.0 (semver)

Fixed versions

2.1.0

Fix

  • Fixed version 2.1.0
    cargo update -p ammonia --precise 2.1.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences