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, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs965980, 965981, 965982, 965983, 965984

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
cmark-gfm (PTS)bullseye0.29.0.gfm.0-6vulnerable
sid, trixie, bookworm0.29.0.gfm.6-6fixed
haskell-cmark-gfm (PTS)bullseye0.2.1+ds1-1fixed
bookworm0.2.5+ds1-1fixed
sid, trixie0.2.5+ds1-3fixed
python-cmarkgfm (PTS)bullseye0.4.2-1vulnerable
sid, trixie, bookworm0.8.0-3fixed
r-cran-commonmark (PTS)bullseye1.7-2vulnerable
bookworm1.8.1-1fixed
trixie1.9.1-1fixed
sid1.9.2-1fixed
ruby-commonmarker (PTS)bullseye0.21.0-1fixed
bookworm0.23.6-1fixed
sid, trixie0.23.10-1fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
cmark-gfmsource(unstable)0.29.0.gfm.2-1965984
haskell-cmark-gfmsource(unstable)0.2.1+ds1-1965982
python-cmarkgfmsource(unstable)0.7.0-1965983
r-cran-commonmarksource(unstable)1.8.0-1965980
ruby-commonmarkersource(unstable)0.21.0-1965981

Notes

[bullseye] - cmark-gfm <no-dsa> (Minor issue)
[buster] - cmark-gfm <no-dsa> (Minor issue)
[bullseye] - python-cmarkgfm <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)
[bullseye] - r-cran-commonmark <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, marking that as fixed (despite cmark-gfm not fixed yet)
https://github.com/theacodes/cmarkgfm/commit/00b8e84050ee46fd621672cfa0114843fd10e6e5 (0.7.0)

Search for package or bug name: Reporting problems