Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-5238
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:29 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-5238
Complete source record
{
"id": "7a16a0e93aee3036145fea7d5ee61969e3b6b4dce6cf86282cd3f60d57e74df5",
"url": "https://osv.dev/vulnerability/CVE-2020-5238",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-5238",
"summary": "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.",
"evidence": "osv:CVE-2020-5238",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2020-5238",
"aliases": [
"CVE-2020-5238",
"GHSA-7gc6-9qr5-hc85"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/github/cmark-gfm",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "0f98e8abfb65dd7b2a2ae03e46b182b5124e0e34"
},
{
"fixed": "85d895289c5ab67f988ca659493a64abb5fec7b4"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:github_flavored_markdown_project:github_flavored_markdown:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.29.0.gfm.1"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "85d895289c5ab67f988ca659493a64abb5fec7b4"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"0.28.3.gfm.20",
"0.29.0.gfm.0",
"0.28.3.gfm.19",
"0.28.3.gfm.18",
"0.28.3.gfm.17",
"0.28.3.gfm.16",
"0.28.3.gfm.15",
"0.28.3.gfm.14",
"0.28.3.gfm.13",
"0.28.3.gfm.12",
"0.28.0.gfm.11",
"0.28.0.gfm.10",
"0.28.0.gfm.9",
"0.28.0.gfm.8",
"0.28.0.gfm.7",
"0.28.0.gfm.6",
"0.28.0.gfm.5",
"0.27.1.gfm.4",
"0.27.1.gfm.3",
"0.27.1.gfm.2"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-5238.json"
}
}
],
"modified": "2026-10-20T10:54:22.478999037Z",
"provider": "osv",
"references": [
"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/WMQFOQQCWOAMQ4I2XIVCVOXXIJ75HDCW/",
"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZGJH2A4VAV54X6NSCNNGSEIGIIY5N2VR/",
"https://github.com/github/cmark-gfm/security/advisories/GHSA-7gc6-9qr5-hc85",
"https://github.com/github/cmark-gfm/commit/85d895289c5ab67f988ca659493a64abb5fec7b4"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*",
"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*"
],
"vendor_product": "fedoraproject:fedora",
"extracted_events": [
{
"range": [
{
"introduced": "31"
},
{
"last_affected": "31"
},
{
"introduced": "32"
},
{
"last_affected": "32"
},
{
"introduced": "33"
},
{
"last_affected": "33"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2020-5238",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385232,
"published_at": "2020-07-01T23:15:10.443+00:00"
}