CVE-2020-5238

NameCVE-2020-5238
DescriptionThe table extension in GitHub Flavored Markdown before version 0.29.0.gfm.1 takes O(n * n) time to parse certain inputs. An attacker could craft a markdown table which would take an unreasonably long time to process, causing a denial of service. This issue does not affect the upstream cmark project. The issue has been fixed in version 0.29.0.gfm.1.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severitymedium
Debian Bugs965980, 965981, 965982, 965983, 965984

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
cmark-gfm (PTS)buster0.28.3.gfm.19-3vulnerable
bullseye, sid0.29.0.gfm.0-6vulnerable
haskell-cmark-gfm (PTS)buster0.1.5-2vulnerable
bullseye, sid0.2.1+ds1-1vulnerable
python-cmarkgfm (PTS)bullseye, sid, buster0.4.2-1vulnerable
r-cran-commonmark (PTS)buster1.7-1vulnerable
bullseye, sid1.7-2vulnerable
ruby-commonmarker (PTS)buster0.17.9-1vulnerable
bullseye, sid0.21.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
cmark-gfmsource(unstable)(unfixed)965984
haskell-cmark-gfmsource(unstable)(unfixed)965982
python-cmarkgfmsource(unstable)(unfixed)965983
r-cran-commonmarksource(unstable)(unfixed)965980
ruby-commonmarkersource(unstable)0.21.0-1965981

Notes

[buster] - cmark-gfm <no-dsa> (Minor issue)
[buster] - python-cmarkgfm <no-dsa> (Minor issue)
[buster] - ruby-commonmarker <no-dsa> (Minor issue)
[buster] - haskell-cmark-gfm <no-dsa> (Minor issue)
[buster] - r-cran-commonmark <no-dsa> (Minor issue)
https://github.com/github/cmark-gfm/security/advisories/GHSA-7gc6-9qr5-hc85
https://github.com/github/cmark-gfm/commit/85d895289c5ab67f988ca659493a64abb5fec7b4
haskell-cmark-gfm switched to src:cmark-gfm in 0.2.1+ds1-1

Search for package or bug name: Reporting problems