CVE-2020-5238 Denial of service in table parsing in cmark-gfm
MediumCVSS 6.5
EPSS 1.6%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
The 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.
Upgrade path
38 packages: 16 fixed, 20 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/cmark-gfm(Ubuntu Pro 20.04) | = 0.28.3.gfm.20-3; = 0.29.0.gfm.0-3; = 0.29.0.gfm.0-4; = 0.29.0.gfm.0-4ubuntu0.1~esm1 +1 more | No fix listed | No fix yet |
| ubuntu/haskell-cmark-gfm(Ubuntu 20.04) | = 0.1.8-1build1; All versions | No fix listed | No fix yet |
| ubuntu/haskell-cmark-gfm(Ubuntu 22.04) | = 0.2.1+ds1-1build1; = 0.2.1+ds1-2build1; = 0.2.1+ds1-2build2; All versions | No fix listed | No fix yet |
| ubuntu/haskell-cmark-gfm(Ubuntu 24.04) | = 0.2.5+ds1-1build2; = 0.2.5+ds1-2; All versions | No fix listed | No fix yet |
| ubuntu/haskell-cmark-gfm(Ubuntu 25.10) | = 0.2.6+ds1-1; All versions | No fix listed | No fix yet |
| ubuntu/haskell-cmark-gfm(Ubuntu 26.04) | = 0.2.6+ds1-1; = 0.2.6+ds1-3; All versions | No fix listed | No fix yet |
| ubuntu/haskell-cmark-gfm(Ubuntu 26.10) | = 0.2.6+ds1-3; All versions | No fix listed | No fix yet |
| ubuntu/python-cmarkgfm(Ubuntu 20.04) | = 0.4.2-1build1; = 0.4.2-1build2; All versions | No fix listed | No fix yet |
| ubuntu/python-cmarkgfm(Ubuntu 22.04) | = 0.4.2-1build3; = 0.4.2-1build5; = 0.8.0-1; All versions | No fix listed | No fix yet |
| ubuntu/python-cmarkgfm(Ubuntu 24.04) | = 0.8.0-3; All versions | No fix listed | No fix yet |
| ubuntu/python-cmarkgfm(Ubuntu 25.10) | = 0.8.0-3; = 2024.11.20-1; All versions | No fix listed | No fix yet |
| ubuntu/python-cmarkgfm(Ubuntu 26.04) | = 2024.11.20-1; = 2025.10.22-1; = 2025.10.22-2; All versions | No fix listed | No fix yet |
| ubuntu/python-cmarkgfm(Ubuntu 26.10) | = 2025.10.22-2; All versions | No fix listed | No fix yet |
| ubuntu/r-cran-commonmark(Ubuntu 20.04) | = 1.7-1; All versions | No fix listed | No fix yet |
| ubuntu/r-cran-commonmark(Ubuntu 22.04) | = 1.7-2; All versions | No fix listed | No fix yet |
| ubuntu/r-cran-commonmark(Ubuntu 24.04) | = 1.9.0-1; = 1.9.1-1; All versions | No fix listed | No fix yet |
| ubuntu/r-cran-commonmark(Ubuntu 25.10) | = 1.9.5-1; All versions | No fix listed | No fix yet |
| ubuntu/r-cran-commonmark(Ubuntu 26.04) | = 1.9.5-1; = 2.0.0-1; = 2.0.0-2; All versions | No fix listed | No fix yet |
| ubuntu/r-cran-commonmark(Ubuntu 26.10) | = 2.0.0-2; = 2.0.0-3; All versions | No fix listed | No fix yet |
| ubuntu/ruby-commonmarker(Ubuntu 20.04) | = 0.17.9-1; = 0.20.2-1build1; All versions | No fix listed | No fix yet |
| debian/cmark-gfm(Debian 12) | < 0.29.0.gfm.2-1 | 0.29.0.gfm.2-1 | Fixed |
| debian/cmark-gfm(Debian 13) | < 0.29.0.gfm.2-1 | 0.29.0.gfm.2-1 | Fixed |
| debian/cmark-gfm(Debian 14) | < 0.29.0.gfm.2-1 | 0.29.0.gfm.2-1 | Fixed |
| debian/haskell-cmark-gfm(Debian 12) | < 0.2.1+ds1-1 | 0.2.1+ds1-1 | Fixed |
| debian/haskell-cmark-gfm(Debian 13) | < 0.2.1+ds1-1 | 0.2.1+ds1-1 | Fixed |
| debian/haskell-cmark-gfm(Debian 14) | < 0.2.1+ds1-1 | 0.2.1+ds1-1 | Fixed |
| debian/python-cmarkgfm(Debian 12) | < 0.7.0-1 | 0.7.0-1 | Fixed |
| debian/python-cmarkgfm(Debian 13) | < 0.7.0-1 | 0.7.0-1 | Fixed |
| debian/python-cmarkgfm(Debian 14) | < 0.7.0-1 | 0.7.0-1 | Fixed |
| debian/r-cran-commonmark(Debian 12) | < 1.8.0-1 | 1.8.0-1 | Fixed |
… and 8 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/cmark-gfm(Debian:12) | < 0.29.0.gfm.2-1 | 0.29.0.gfm.2-1 |
| debian/cmark-gfm(Debian:13) | < 0.29.0.gfm.2-1 | 0.29.0.gfm.2-1 |
| debian/cmark-gfm(Debian:14) | < 0.29.0.gfm.2-1 | 0.29.0.gfm.2-1 |
| debian/haskell-cmark-gfm(Debian:12) | < 0.2.1+ds1-1 | 0.2.1+ds1-1 |
| debian/haskell-cmark-gfm(Debian:13) | < 0.2.1+ds1-1 | 0.2.1+ds1-1 |
| debian/haskell-cmark-gfm(Debian:14) | < 0.2.1+ds1-1 | 0.2.1+ds1-1 |
| debian/python-cmarkgfm(Debian:12) | < 0.7.0-1 | 0.7.0-1 |
| debian/python-cmarkgfm(Debian:13) | < 0.7.0-1 | 0.7.0-1 |
| debian/python-cmarkgfm(Debian:14) | < 0.7.0-1 | 0.7.0-1 |
| debian/r-cran-commonmark(Debian:12) | < 1.8.0-1 | 1.8.0-1 |
| debian/r-cran-commonmark(Debian:13) | < 1.8.0-1 | 1.8.0-1 |
| debian/r-cran-commonmark(Debian:14) | < 1.8.0-1 | 1.8.0-1 |
| debian/ruby-commonmarker(Debian:12) | < 0.21.0-1 | 0.21.0-1 |
| debian/ruby-commonmarker(Debian:13) | < 0.21.0-1 | 0.21.0-1 |
| debian/ruby-commonmarker(Debian:14) | < 0.21.0-1 | 0.21.0-1 |
| github flavored markdown project github flavored markdown | < 0.29.0.gfm.1 | 0.29.0.gfm.1 |
| fedoraproject fedora | = 31 | No fix listed |
| fedoraproject fedora | = 32 | No fix listed |
| fedoraproject fedora | = 33 | No fix listed |
| ubuntu/haskell-cmark-gfm(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/r-cran-commonmark(Ubuntu:24.04) | All versions | No fix listed |
| GitHub cmark-gfm | = < 0.29.0.gfm.1 | No fix listed |
| ubuntu/haskell-cmark-gfm(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:26.04) | All versions | No fix listed |
Show 53 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/r-cran-commonmark(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/haskell-cmark-gfm(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/r-cran-commonmark(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/haskell-cmark-gfm(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/r-cran-commonmark(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:Pro:20.04) | All versions | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:Pro:20.04) | = 0.28.3.gfm.20-3 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:Pro:20.04) | = 0.29.0.gfm.0-3 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:Pro:20.04) | = 0.29.0.gfm.0-4 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:Pro:20.04) | = 0.29.0.gfm.0-4ubuntu0.1~esm1 | No fix listed |
| ubuntu/haskell-cmark-gfm(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/haskell-cmark-gfm(Ubuntu:20.04) | = 0.1.8-1build1 | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:20.04) | = 0.4.2-1build1 | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:20.04) | = 0.4.2-1build2 | No fix listed |
| ubuntu/r-cran-commonmark(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/r-cran-commonmark(Ubuntu:20.04) | = 1.7-1 | No fix listed |
| ubuntu/ruby-commonmarker(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/ruby-commonmarker(Ubuntu:20.04) | = 0.17.9-1 | No fix listed |
| ubuntu/ruby-commonmarker(Ubuntu:20.04) | = 0.20.2-1build1 | No fix listed |
| ubuntu/haskell-cmark-gfm(Ubuntu:22.04) | = 0.2.1+ds1-1build1 | No fix listed |
| ubuntu/haskell-cmark-gfm(Ubuntu:22.04) | = 0.2.1+ds1-2build1 | No fix listed |
| ubuntu/haskell-cmark-gfm(Ubuntu:22.04) | = 0.2.1+ds1-2build2 | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:22.04) | = 0.4.2-1build3 | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:22.04) | = 0.4.2-1build5 | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:22.04) | = 0.8.0-1 | No fix listed |
| ubuntu/r-cran-commonmark(Ubuntu:22.04) | = 1.7-2 | No fix listed |
| ubuntu/haskell-cmark-gfm(Ubuntu:24.04) | = 0.2.5+ds1-1build2 | No fix listed |
| ubuntu/haskell-cmark-gfm(Ubuntu:24.04) | = 0.2.5+ds1-2 | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:24.04) | = 0.8.0-3 | No fix listed |
| ubuntu/r-cran-commonmark(Ubuntu:24.04) | = 1.9.0-1 | No fix listed |
| ubuntu/r-cran-commonmark(Ubuntu:24.04) | = 1.9.1-1 | No fix listed |
| ubuntu/haskell-cmark-gfm(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/haskell-cmark-gfm(Ubuntu:25.10) | = 0.2.6+ds1-1 | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:25.10) | = 0.8.0-3 | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:25.10) | = 2024.11.20-1 | No fix listed |
| ubuntu/r-cran-commonmark(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/r-cran-commonmark(Ubuntu:25.10) | = 1.9.5-1 | No fix listed |
| ubuntu/haskell-cmark-gfm(Ubuntu:26.10) | = 0.2.6+ds1-3 | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:26.10) | = 2025.10.22-2 | No fix listed |
| ubuntu/r-cran-commonmark(Ubuntu:26.10) | = 2.0.0-2 | No fix listed |
| ubuntu/r-cran-commonmark(Ubuntu:26.10) | = 2.0.0-3 | No fix listed |
| ubuntu/haskell-cmark-gfm(Ubuntu:26.04) | = 0.2.6+ds1-1 | No fix listed |
| ubuntu/haskell-cmark-gfm(Ubuntu:26.04) | = 0.2.6+ds1-3 | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:26.04) | = 2024.11.20-1 | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:26.04) | = 2025.10.22-1 | No fix listed |
| ubuntu/python-cmarkgfm(Ubuntu:26.04) | = 2025.10.22-2 | No fix listed |
| ubuntu/r-cran-commonmark(Ubuntu:26.04) | = 1.9.5-1 | No fix listed |
| ubuntu/r-cran-commonmark(Ubuntu:26.04) | = 2.0.0-1 | No fix listed |
| ubuntu/r-cran-commonmark(Ubuntu:26.04) | = 2.0.0-2 | No fix listed |
References
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- Debian Security Tracker CVE-2020-5238 vendor-advisory
- github.com issue-tracking patch third-party-advisory
- github.com issue-tracking third-party-advisory
- FEDORA-2020-c39d7a562c vendor-advisory
- FEDORA-2020-fe299b3fa3 vendor-advisory
- FEDORA-2020-1eaffe0013 vendor-advisory
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking