Inefficient Algorithmic Complexity in cmark-gfm - CVE-2020-5238

 

Inefficient Algorithmic Complexity in cmark-gfm - CVE-2020-5238

Published: June 30, 2020 / Updated: November 6, 2026


Vulnerability identifier: #VU159758
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-5238
CWE-ID: CWE-407
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows an unauthenticated attacker to cause a denial of service in applications that process GitHub Flavored Markdown.

The vulnerability exists due to quadratic parsing time in the cmark-gfm table extension when it processes certain crafted Markdown tables supplied as input. An unauthenticated attacker can submit a specially crafted table for parsing, causing processing to take an unreasonably long time and delaying service.


Affected software

cmark-gfm

How to mitigate CVE-2020-5238

Install security update from vendor's website.

cmark-gfm - update to 0.29.0.gfm.1

External References

Related Security Bulletins