Advisory

GHSA-xxmq-4vph-956w

Also known as: None

Summary

Comrak vulnerable to production of excessive output when parsing Markdown (GHSL-2023-048)

Details

Impact

comrak is vulnerable to the upstream cmark issue, "Issue revealed by fuzzer". A large number of references in a markdown document can trigger an overly large response.

Patches

0.17.0 contains https://github.com/kivikakk/comrak/commit/70f97f3ea4eae30ffbd1b94c764a3de2f1c41d2a, which limits reference output to a 100Kb maximum.

Workarounds

n/a

References

  • https://github.com/commonmark/cmark/issues/354

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-03-28 14:44 UTC
Modified
2023-03-28 14:44 UTC

Affected packages and fixes

comrak

crates.io · All systems

Affected

  • introduced 0, fixed 0.17.0 (semver)

Fixed versions

0.17.0

Fix

  • Fixed version 0.17.0
    cargo update -p comrak --precise 0.17.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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences