CVE-2020-5238Denial of service in table parsing in cmark-gfm
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | haskell-cmark-gfm | Fix pending | UBUNTU-CVE-2020-5238 | |
| Ubuntu 26.10 | python-cmarkgfm | Fix pending | UBUNTU-CVE-2020-5238 | |
| Ubuntu 26.10 | r-cran-commonmark | Fix pending | UBUNTU-CVE-2020-5238 | |
| Ubuntu 26.04 | cmark-gfm | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | haskell-cmark-gfm | Under investigation | UBUNTU-CVE-2020-5238 | |
| Ubuntu 26.04 | python-cmarkgfm | Under investigation | UBUNTU-CVE-2020-5238 | |
| Ubuntu 26.04 | r-cran-commonmark | Under investigation | UBUNTU-CVE-2020-5238 | |
| Ubuntu 26.04 | ruby-commonmarker | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | cmark-gfm | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | haskell-cmark-gfm | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2020-5238 | |
| Ubuntu 25.10 | python-cmarkgfm | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2020-5238 | |
| Ubuntu 25.10 | r-cran-commonmark | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2020-5238 | |
| Ubuntu 25.10 | ruby-commonmarker | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | haskell-cmark-gfm | Under investigation | UBUNTU-CVE-2020-5238 | |
| Ubuntu 24.04 | python-cmarkgfm | Under investigation | UBUNTU-CVE-2020-5238 | |
| Ubuntu 24.04 | r-cran-commonmark | Under investigation | UBUNTU-CVE-2020-5238 | |
| Ubuntu 24.04 | ruby-commonmarker | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | haskell-cmark-gfm | Under investigation | UBUNTU-CVE-2020-5238 | |
| Ubuntu 22.04 | python-cmarkgfm | Under investigation | UBUNTU-CVE-2020-5238 | |
| Ubuntu 22.04 | r-cran-commonmark | Under investigation | UBUNTU-CVE-2020-5238 | |
| Ubuntu 22.04 | ruby-commonmarker | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | cmark-gfm | Fix pending | UBUNTU-CVE-2020-5238 | |
| Ubuntu 20.04 | haskell-cmark-gfm | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2020-5238 | |
| Ubuntu 20.04 | python-cmarkgfm | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2020-5238 | |
| Ubuntu 20.04 | r-cran-commonmark | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2020-5238 | |
| Ubuntu 20.04 | ruby-commonmarker | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2020-5238 | |
| Debian 14 | cmark-gfm | Fixed | 0.29.0.gfm.2-1 | DEBIAN-CVE-2020-5238 |
| Debian 14 | haskell-cmark-gfm | Fixed | 0.2.1+ds1-1 | DEBIAN-CVE-2020-5238 |
| Debian 14 | python-cmarkgfm | Fixed | 0.7.0-1 | DEBIAN-CVE-2020-5238 |
| Debian 14 | r-cran-commonmark | Fixed | 1.8.0-1 | DEBIAN-CVE-2020-5238 |
| Debian 14 | ruby-commonmarker | Fixed | 0.21.0-1 | DEBIAN-CVE-2020-5238 |
| Debian 13 | cmark-gfm | Fixed | 0.29.0.gfm.2-1 | DEBIAN-CVE-2020-5238 |
| Debian 13 | haskell-cmark-gfm | Fixed | 0.2.1+ds1-1 | DEBIAN-CVE-2020-5238 |
| Debian 13 | python-cmarkgfm | Fixed | 0.7.0-1 | DEBIAN-CVE-2020-5238 |
| Debian 13 | r-cran-commonmark | Fixed | 1.8.0-1 | DEBIAN-CVE-2020-5238 |
| Debian 13 | ruby-commonmarker | Fixed | 0.21.0-1 | DEBIAN-CVE-2020-5238 |
| Debian 12 | cmark-gfm | Fixed | 0.29.0.gfm.2-1 | DEBIAN-CVE-2020-5238 |
| Debian 12 | haskell-cmark-gfm | Fixed | 0.2.1+ds1-1 | DEBIAN-CVE-2020-5238 |
| Debian 12 | python-cmarkgfm | Fixed | 0.7.0-1 | DEBIAN-CVE-2020-5238 |
| Debian 12 | r-cran-commonmark | Fixed | 1.8.0-1 | DEBIAN-CVE-2020-5238 |
| Debian 12 | ruby-commonmarker | Fixed | 0.21.0-1 | DEBIAN-CVE-2020-5238 |
| Red Hat Enterprise Linux 8 | pandoc | Fixed | 0:2.0.6-5.el8 | RHSA-2021:1972 |
| Red Hat Enterprise Linux 8 | pandoc-common | Fixed | 0:2.0.6-5.el8 | RHSA-2021:1972 |
| AlmaLinux 8 | pandoc | Fixed | 2.0.6-5.el8 | ALSA-2021:1972 |
| AlmaLinux 8 | pandoc-common | Fixed | 2.0.6-5.el8 | ALSA-2021:1972 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- github cmark-gfm: affected: < 0.29.0.gfm.1
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://github.com/github/cmark-gfm/security/advisories/GHSA-7gc6-9qr5-hc85
- https://github.com/github/cmark-gfm/commit/85d895289c5ab67f988ca659493a64abb5fec7b4
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TCDHBTUFIOYRIS5HAS6PZNBNMB7IOAX3/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZGJH2A4VAV54X6NSCNNGSEIGIIY5N2VR/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WMQFOQQCWOAMQ4I2XIVCVOXXIJ75HDCW/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.