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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2020-07-01 · Modified: 2024-08-04
- Aliases: RHSA-2021:1972, UBUNTU-CVE-2020-5238, DEBIAN-CVE-2020-5238
- Record: https://cvemate.com/vulnerability/CVE-2020-5238 · JSON: https://cvemate.com/vulnerability/CVE-2020-5238/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.566%, percentile 76.172%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian cmark-gfm (Debian): \< 0.29.0.gfm.2-1
- debian haskell-cmark-gfm (Debian): \< 0.2.1+ds1-1
- debian python-cmarkgfm (Debian): \< 0.7.0-1
- debian r-cran-commonmark (Debian): \< 1.8.0-1
- debian ruby-commonmarker (Debian): \< 0.21.0-1
- ubuntu cmark-gfm (Ubuntu): All versions (No fix recorded)
- ubuntu haskell-cmark-gfm (Ubuntu): All versions (No fix recorded)
- ubuntu python-cmarkgfm (Ubuntu): All versions (No fix recorded)
- ubuntu r-cran-commonmark (Ubuntu): All versions (No fix recorded)
- ubuntu ruby-commonmarker (Ubuntu): All versions (No fix recorded)
- fedoraproject fedora: 31 \| 32 \| 33
- github\_flavored\_markdown\_project github\_flavored\_markdown: \< 0.29.0.gfm.1
- github cmark-gfm: \< 0.29.0.gfm.1
- redhat pandoc (Red Hat): \< 0:2.0.6-5.el8
- redhat pandoc-common (Red Hat): \< 0:2.0.6-5.el8

## 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/>
- <https://access.redhat.com/errata/RHSA-2021:1972>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.4_release_notes/>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1854328>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_1972.json>
- <https://access.redhat.com/security/cve/CVE-2020-5238>
- <https://www.cve.org/CVERecord?id=CVE-2020-5238>
- <https://nvd.nist.gov/vuln/detail/CVE-2020-5238>
- <https://ubuntu.com/security/CVE-2020-5238>
- <https://security-tracker.debian.org/tracker/CVE-2020-5238>

---

Data as of 2026-12-05T08:01:48.240Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
