Resource Exhaustion Affecting cmark package, versions <0.30.3-r0


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
1.11% (62nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALPINE324-CMARK-17299412
  • published11 Jun 2026
  • disclosed26 Jan 2023

Introduced: 26 Jan 2023

CVE-2023-22486  (opens in a new tab)
CWE-400  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade Alpine:3.24 cmark to version 0.30.3-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cmark package and not the cmark package as distributed by Alpine. See How to fix? for Alpine:3.24 relevant fixed versions and status.

cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C. Versions prior to 0.29.0.gfm.7 contain a polynomial time complexity issue in handle_close_bracket that may lead to unbounded resource exhaustion and subsequent denial of service. This vulnerability has been patched in 0.29.0.gfm.7.

CVSS Base Scores

version 3.1