Findings

RSEC-2023-6

Denial of Service (DoS) vulnerability

Published Oct 6, 2023 · updated May 19, 2025

The commonmark package, specifically in its dependency on GitHub Flavored Markdown before version 0.29.0.gfm.1, has a vulnerability related to time complexity. Parsing certain crafted markdown tables can take O(n * n) time, leading to potential Denial of Service attacks. This issue does not affect the upstream cmark project and has been fixed in version 0.29.0.gfm.1.

Code

The project this record applies to. Exploit listings stay in References.

Timeline

Detection, updates, and resolution for this record.

  1. Oct 6, 2023 · OSV.dev

    Detected

    The commonmark package, specifically in its dependency on GitHub Flavored Markdown before version 0.29.0.gfm.1, has a vulnerability related to time complexity. Parsing certain crafted markdown tables can take O(n * n) time, leading to potential Denial of Service attacks. This issue does not affect the upstream cmark project and has been fixed in version 0.29.0.gfm.1.

  2. May 19, 2025 · OSV.dev

    Fix available

    commonmark fixed in 1.8

  3. May 19, 2025 · OSV.dev

    Fix available

    commonmark fixed in 1.8

  4. May 19, 2025 · OSV.dev

    Updated

    The commonmark package, specifically in its dependency on GitHub Flavored Markdown before version 0.29.0.gfm.1, has a vulnerability related to time complexity. Parsing certain crafted markdown tables can take O(n * n) time, leading to potential Denial of Service attacks. This issue does not affect the upstream cmark project and has been fixed in version 0.29.0.gfm.1.

Affected

  • CRAN commonmark0.2 → 1.8

Sources

  • OSV.devPackage advisoryRSEC-2023-6

    Denial of Service (DoS) vulnerability

    osv.dev

References