CVE-2020-5238
published medium CVSS 3.1 · 6.5Denial of service in table parsing in cmark-gfm
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| github | — | cmark-gfm< 0.29.0.gfm.1 | Affected | Not stated | GitHub_M |
| AlmaLinux | 8 | pandoc | Advisory build | 2.0.6-5.el8 | ALSA-2021:1972 |
| AlmaLinux | 8 | pandoc-common | Advisory build | 2.0.6-5.el8 | ALSA-2021:1972 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| github | cmark-gfm | < 0.29.0.gfm.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-20 CWE-20: Improper Input Validation
References
5- https://github.com/github/cmark-gfm/commit/85d895289c5ab67f988ca659493a64abb5fec7b4
- https://github.com/github/cmark-gfm/security/advisories/GHSA-7gc6-9qr5-hc85
- FEDORA-2020-c39d7a562c https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TCDHBTUFIOYRIS5HAS6PZNBNMB7IOAX3/
- FEDORA-2020-fe299b3fa3 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WMQFOQQCWOAMQ4I2XIVCVOXXIJ75HDCW/
- FEDORA-2020-1eaffe0013 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZGJH2A4VAV54X6NSCNNGSEIGIIY5N2VR/
Provider assertions
2GitHub_M · cna
Denial of service in table parsing in cmark-gfm
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 7db5e6c1099b89b4a3226c4d156b3a65594f6dc846c88833eefa3e982792bc4e
- Ingested
- 23 Sep 2026, 07:51:02 UTC
- Source record
- Official CVE record