{"id":"CVE-2022-24724","published":"2022-03-03T19:35:09Z","modified":"2025-04-22T18:20:59Z","title":"Integer overflow in table parsing extension leads to heap memory corruption","vendor":"GitHub","product":"cmark-gfm","tier":"tail","description":{"text":"cmark-gfm is GitHub's extended version of the C reference implementation of CommonMark. Prior to versions 0.29.0.gfm.3 and 0.28.3.gfm.21, an integer overflow in cmark-gfm's table row parsing `table.c:row_from_string` may lead to heap memory corruption when parsing tables who's marker rows contain more than UINT16_MAX columns. The impact of this heap corruption ranges from Information Leak to Arbitrary Code Execution depending on how and where `cmark-gfm` is used. If `cmark-gfm` is used for rendering remote user controlled markdown, this vulnerability may lead to Remote Code Execution (RCE) in applications employing affected versions of the `cmark-gfm` library. This vulnerability has been patched in the following cmark-gfm versions 0.29.0.gfm.3 and 0.28.3.gfm.21. A workaround is available. The vulnerability exists in the table markdown extensions of cmark-gfm. Disabling the table extension will prevent this vulnerability from being triggered.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.04597,"percentile":0.91789,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z55K6VNVKO2G5SNKRCQ2KDG5SKTX5PVV/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TJBFIJEHJZEEDG6MO4MQHZYKUXELH77O/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F7V3HAM5H6YFJG2QFEXACZR3XVWFTXTC/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5CYUU662VO6CCXQKVZVOHXX3RGIF2DLQ/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RSKUOJ2VAYGTJXPDE2RRPMNLVVMKCI77/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KH4UQA6VWVZU5EW3HNEAB7D7BTCNJSJ2/","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"http://packetstormsecurity.com/files/166599/cmark-gfm-Integer-overflow.html","tags":["x_refsource_MISC"]}],"priority":{"score":29.5,"factors":[{"name":"EPSS percentile","points":18.36},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"github","affectedVersions":[{"vendor":"github","product":"cmark-gfm","versions":["< 0.28.3.gfm.21",">= 0.29.0.gfm.0, < 0.29.0.gfm.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-04-22T15:44:15.748265Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"An integer overflow in the table row parsing function (table.c:row_from_string) of GitHub's cmark-gfm, the GFM extension of the CommonMark C implementation, can corrupt heap memory when a table's marker row contains more than 65,535 columns. An attacker who can supply markdown to a service that renders it with cmark-gfm can trigger this with low privileges and no user interaction over the network, with the resulting impact ranging from information leakage to arbitrary code execution, depending on how the library is used.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:28:13Z"},"euvd":{"id":"EUVD-2022-29578","exploited":false,"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/166599/cmark-gfm-Integer-overflow.html"]}