CVEfocus › CVE database › CVE-2020-5238

CVE-2020-5238Denial of service in table parsing in cmark-gfm

CVSS 6.5 MediumEPSS 1.6% (higher than 76% of CVEs)Published 2020-07-01Updated 2024-08-04Assigner: GitHub_M

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.

CWE-20

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

19Fixed
4Fix pending
9Under investigation
7Will not fix
6Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10haskell-cmark-gfmFix pendingUBUNTU-CVE-2020-5238
Ubuntu 26.10python-cmarkgfmFix pendingUBUNTU-CVE-2020-5238
Ubuntu 26.10r-cran-commonmarkFix pendingUBUNTU-CVE-2020-5238
Ubuntu 26.04cmark-gfmNot affected
vulnerable_code_not_present
Ubuntu 26.04haskell-cmark-gfmUnder investigationUBUNTU-CVE-2020-5238
Ubuntu 26.04python-cmarkgfmUnder investigationUBUNTU-CVE-2020-5238
Ubuntu 26.04r-cran-commonmarkUnder investigationUBUNTU-CVE-2020-5238
Ubuntu 26.04ruby-commonmarkerNot affected
vulnerable_code_not_present
Ubuntu 25.10cmark-gfmNot affected
vulnerable_code_not_present
Ubuntu 25.10haskell-cmark-gfmWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2020-5238
Ubuntu 25.10python-cmarkgfmWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2020-5238
Ubuntu 25.10r-cran-commonmarkWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2020-5238
Ubuntu 25.10ruby-commonmarkerNot affected
vulnerable_code_not_present
Ubuntu 24.04haskell-cmark-gfmUnder investigationUBUNTU-CVE-2020-5238
Ubuntu 24.04python-cmarkgfmUnder investigationUBUNTU-CVE-2020-5238
Ubuntu 24.04r-cran-commonmarkUnder investigationUBUNTU-CVE-2020-5238
Ubuntu 24.04ruby-commonmarkerNot affected
vulnerable_code_not_present
Ubuntu 22.04haskell-cmark-gfmUnder investigationUBUNTU-CVE-2020-5238
Ubuntu 22.04python-cmarkgfmUnder investigationUBUNTU-CVE-2020-5238
Ubuntu 22.04r-cran-commonmarkUnder investigationUBUNTU-CVE-2020-5238
Ubuntu 22.04ruby-commonmarkerNot affected
vulnerable_code_not_present
Ubuntu 20.04cmark-gfmFix pendingUBUNTU-CVE-2020-5238
Ubuntu 20.04haskell-cmark-gfmWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2020-5238
Ubuntu 20.04python-cmarkgfmWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2020-5238
Ubuntu 20.04r-cran-commonmarkWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2020-5238
Ubuntu 20.04ruby-commonmarkerWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2020-5238
Debian 14cmark-gfmFixed0.29.0.gfm.2-1DEBIAN-CVE-2020-5238
Debian 14haskell-cmark-gfmFixed0.2.1+ds1-1DEBIAN-CVE-2020-5238
Debian 14python-cmarkgfmFixed0.7.0-1DEBIAN-CVE-2020-5238
Debian 14r-cran-commonmarkFixed1.8.0-1DEBIAN-CVE-2020-5238
Debian 14ruby-commonmarkerFixed0.21.0-1DEBIAN-CVE-2020-5238
Debian 13cmark-gfmFixed0.29.0.gfm.2-1DEBIAN-CVE-2020-5238
Debian 13haskell-cmark-gfmFixed0.2.1+ds1-1DEBIAN-CVE-2020-5238
Debian 13python-cmarkgfmFixed0.7.0-1DEBIAN-CVE-2020-5238
Debian 13r-cran-commonmarkFixed1.8.0-1DEBIAN-CVE-2020-5238
Debian 13ruby-commonmarkerFixed0.21.0-1DEBIAN-CVE-2020-5238
Debian 12cmark-gfmFixed0.29.0.gfm.2-1DEBIAN-CVE-2020-5238
Debian 12haskell-cmark-gfmFixed0.2.1+ds1-1DEBIAN-CVE-2020-5238
Debian 12python-cmarkgfmFixed0.7.0-1DEBIAN-CVE-2020-5238
Debian 12r-cran-commonmarkFixed1.8.0-1DEBIAN-CVE-2020-5238
Debian 12ruby-commonmarkerFixed0.21.0-1DEBIAN-CVE-2020-5238
Red Hat Enterprise Linux 8pandocFixed0:2.0.6-5.el8RHSA-2021:1972
Red Hat Enterprise Linux 8pandoc-commonFixed0:2.0.6-5.el8RHSA-2021:1972
AlmaLinux 8pandocFixed2.0.6-5.el8ALSA-2021:1972
AlmaLinux 8pandoc-commonFixed2.0.6-5.el8ALSA-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.

Vendor advisories:

References

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.