Vulnerability · Published Jul 1, 2020 · Assigned by GitHub_M
CVE-2020-5238Denial of service in table parsing in cmark-gfm
Medium 6.5
In plain English
A medium-severity improper input validation in cmark-gfm from github. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | pandoc | 2.0.6-5.el8 | ALSA-2021:1972 |
| AlmaLinux:8 | pandoc-common | 2.0.6-5.el8 | ALSA-2021:1972 |
| Debian:12 | cmark-gfm | 0.29.0.gfm.2-1 | DEBIAN-CVE-2020-5238 |
| Debian:13 | cmark-gfm | 0.29.0.gfm.2-1 | DEBIAN-CVE-2020-5238 |
| Debian:14 | cmark-gfm | 0.29.0.gfm.2-1 | DEBIAN-CVE-2020-5238 |
| Debian:12 | haskell-cmark-gfm | 0.2.1+ds1-1 | DEBIAN-CVE-2020-5238 |
| Debian:13 | haskell-cmark-gfm | 0.2.1+ds1-1 | DEBIAN-CVE-2020-5238 |
| Debian:14 | haskell-cmark-gfm | 0.2.1+ds1-1 | DEBIAN-CVE-2020-5238 |
| Debian:12 | python-cmarkgfm | 0.7.0-1 | DEBIAN-CVE-2020-5238 |
| Debian:13 | python-cmarkgfm | 0.7.0-1 | DEBIAN-CVE-2020-5238 |
| Debian:14 | python-cmarkgfm | 0.7.0-1 | DEBIAN-CVE-2020-5238 |
| Debian:12 | r-cran-commonmark | 1.8.0-1 | DEBIAN-CVE-2020-5238 |
| Debian:13 | r-cran-commonmark | 1.8.0-1 | DEBIAN-CVE-2020-5238 |
| Debian:14 | r-cran-commonmark | 1.8.0-1 | DEBIAN-CVE-2020-5238 |
| Debian:12 | ruby-commonmarker | 0.21.0-1 | DEBIAN-CVE-2020-5238 |
| Debian:13 | ruby-commonmarker | 0.21.0-1 | DEBIAN-CVE-2020-5238 |
| Debian:14 | ruby-commonmarker | 0.21.0-1 | DEBIAN-CVE-2020-5238 |
| Ubuntu:22.04:LTS | haskell-cmark-gfm | no fix listed | UBUNTU-CVE-2020-5238 |
| Ubuntu:24.04:LTS | haskell-cmark-gfm | no fix listed | UBUNTU-CVE-2020-5238 |
| Ubuntu:25.10 | haskell-cmark-gfm | no fix listed | UBUNTU-CVE-2020-5238 |
| Ubuntu:26.04:LTS | haskell-cmark-gfm | no fix listed | UBUNTU-CVE-2020-5238 |
| Ubuntu:26.10 | haskell-cmark-gfm | no fix listed | UBUNTU-CVE-2020-5238 |
| Ubuntu:22.04:LTS | python-cmarkgfm | no fix listed | UBUNTU-CVE-2020-5238 |
| Ubuntu:24.04:LTS | python-cmarkgfm | no fix listed | UBUNTU-CVE-2020-5238 |
| Ubuntu:25.10 | python-cmarkgfm | no fix listed | UBUNTU-CVE-2020-5238 |
| Ubuntu:26.04:LTS | python-cmarkgfm | no fix listed | UBUNTU-CVE-2020-5238 |
| Ubuntu:26.10 | python-cmarkgfm | no fix listed | UBUNTU-CVE-2020-5238 |
| Ubuntu:22.04:LTS | r-cran-commonmark | no fix listed | UBUNTU-CVE-2020-5238 |
| Ubuntu:24.04:LTS | r-cran-commonmark | no fix listed | UBUNTU-CVE-2020-5238 |
| Ubuntu:25.10 | r-cran-commonmark | no fix listed | UBUNTU-CVE-2020-5238 |
| Ubuntu:26.04:LTS | r-cran-commonmark | no fix listed | UBUNTU-CVE-2020-5238 |
| Ubuntu:26.10 | r-cran-commonmark | no fix listed | UBUNTU-CVE-2020-5238 |
Affected products (as reported)
Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
References
- https://github.com/github/cmark-gfm/security/advisories/GHSA-7gc6-9qr5-hc85 x_refsource_CONFIRM
- https://github.com/github/cmark-gfm/commit/85d895289c5ab67f988ca659493a64abb5fec7b4 x_refsource_MISC
- FEDORA-2020-c39d7a562c vendor-advisory, x_refsource_FEDORA
- FEDORA-2020-1eaffe0013 vendor-advisory, x_refsource_FEDORA
- FEDORA-2020-fe299b3fa3 vendor-advisory, x_refsource_FEDORA