Advisory

GHSA-8hqf-xjwp-p67v

Also known as: CVE-2023-28626

Summary

Comrak vulnerable to quadratic runtime issues when parsing Markdown (GHSL-2023-047)

Details

Impact
A range of quadratic parsing issues from cmark/cmark-gfm are also present in Comrak. These can be used to craft denial-of-service attacks on services that use Comrak to parse Markdown.

Patches
0.17.0 contains fixes to known quadratic parsing issues.

Workarounds

n/a

References

  • https://github.com/commonmark/cmark/issues/255
  • https://github.com/commonmark/cmark/issues/389
  • https://github.com/commonmark/cmark/issues/373
  • https://github.com/commonmark/cmark/issues/299
  • https://github.com/commonmark/cmark/issues/388
  • https://github.com/commonmark/cmark/issues/284
  • https://github.com/commonmark/cmark/issues/218
  • https://github.com/commonmark/cmark/pull/232
  • https://github.com/github/cmark-gfm/blob/c32ef78bae851cb83b7ad52d0fbff880acdcd44a/test/pathological_tests.py#L63-L65
  • https://github.com/github/cmark-gfm/blob/c32ef78bae851cb83b7ad52d0fbff880acdcd44a/test/pathological_tests.py#L87-L89

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-03-28 14:40 UTC
Modified
2023-11-08 04:12 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