{"schemaVersion":3,"id":"CVE-2022-24724","aliases":["RHSA-2022:5597","UBUNTU-CVE-2022-24724","DEBIAN-CVE-2022-24724"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2022-03-03T19:35:09.000Z","modified":"2025-04-22T18:20:59.594Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Red hat","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":7.2,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0451,"percentile":0.91464,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.0451},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0451,"percentile":0.91464}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0451,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.0451,"percentile":0.91464}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_CA17452279897838","name":"Exploit Reference (packetstormsecurity.com)","source":"reference","url":"http://packetstormsecurity.com/files/166599/cmark-gfm-Integer-overflow.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-190","name":"Integer Overflow or Wraparound","description":"The product performs a calculation that can\n         produce an integer overflow or wraparound when the logic\n         assumes that the resulting value will always be larger than\n         the original value. This occurs when an integer value is\n         incremented to a value that is too large to store in the\n         associated representation. When this occurs, the value may\n         become a very small or negative number.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/190.html"}],"affected":[{"vendor":"debian","product":"cmark-gfm","name":"cmark-gfm","label":"cmark-gfm","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/cmark-gfm","purlType":"deb","versions":[{"text":"< 0.29.0.gfm.3-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.29.0.gfm.3-3","eol":null,"hubHref":null},{"vendor":"debian","product":"ghostwriter","name":"ghostwriter","label":"ghostwriter","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ghostwriter","purlType":"deb","versions":[{"text":"< 2.1.6+ds-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.1.6+ds-1","eol":null,"hubHref":null},{"vendor":"debian","product":"python-cmarkgfm","name":"python-cmarkgfm","label":"python-cmarkgfm","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/python-cmarkgfm","purlType":"deb","versions":[{"text":"< 0.7.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.7.0-1","eol":null,"hubHref":null},{"vendor":"debian","product":"r-cran-commonmark","name":"r-cran-commonmark","label":"r-cran-commonmark","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/r-cran-commonmark","purlType":"deb","versions":[{"text":"< 1.8.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.8.0-1","eol":null,"hubHref":null},{"vendor":"debian","product":"ruby-commonmarker","name":"ruby-commonmarker","label":"ruby-commonmarker","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ruby-commonmarker","purlType":"deb","versions":[{"text":"< 0.23.4-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0.23.4-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"cmark-gfm","name":"cmark-gfm","label":"cmark-gfm","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/cmark-gfm","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"fedoraproject","product":"fedora","name":"fedora","label":"fedora","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"34","noFixRecorded":false,"fixedIn":null},{"text":"35","noFixRecorded":false,"fixedIn":null},{"text":"36","noFixRecorded":false,"fixedIn":null}],"versionsText":"34 | 35 | 36","eol":{"isEol":true,"eolDate":"2022-06-07T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"34","label":"34","eolFrom":"2022-06-07T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"fedora","label":"Fedora Linux","category":"os"}},"hubHref":"/vendor/fedoraproject/fedora"},{"vendor":"github","product":"cmark-gfm","name":"cmark-gfm","label":"cmark-gfm","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.29.0.gfm.0, < 0.29.0.gfm.3","noFixRecorded":false,"fixedIn":null},{"text":"< 0.28.3.gfm.21","noFixRecorded":false,"fixedIn":null},{"text":"> 0.28.3.gfm.21, < 0.29.0.gfm.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.29.0.gfm.0, < 0.29.0.gfm.3 | < 0.28.3.gfm.21 | > 0.28.3.gfm.21, < 0.29.0.gfm.3","eol":null,"hubHref":"/vendor/github/cmark-gfm"},{"vendor":"redhat","product":"pandoc","name":"pandoc","label":"pandoc","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/pandoc","purlType":"rpm","versions":[{"text":"< 0:2.0.6-6.el8_6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:2.0.6-6.el8_6","eol":null,"hubHref":null},{"vendor":"redhat","product":"pandoc-common","name":"pandoc-common","label":"pandoc-common","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/pandoc-common","purlType":"rpm","versions":[{"text":"< 0:2.0.6-6.el8_6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:2.0.6-6.el8_6","eol":null,"hubHref":null}],"affectedCount":10,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x","label":"github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z55K6VNVKO2G5SNKRCQ2KDG5SKTX5PVV/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TJBFIJEHJZEEDG6MO4MQHZYKUXELH77O/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F7V3HAM5H6YFJG2QFEXACZR3XVWFTXTC/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5CYUU662VO6CCXQKVZVOHXX3RGIF2DLQ/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RSKUOJ2VAYGTJXPDE2RRPMNLVVMKCI77/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KH4UQA6VWVZU5EW3HNEAB7D7BTCNJSJ2/","label":"lists.fedoraproject.org/archives/…","hostname":"lists.fedoraproject.org","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"http://packetstormsecurity.com/files/166599/cmark-gfm-Integer-overflow.html","label":"packetstormsecurity.com/files/166599/cmark-gfm-Integer-overflow.html","hostname":"packetstormsecurity.com","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2022:5597","label":"access.redhat.com/errata/RHSA-2022:5597","hostname":"access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#important","label":"access.redhat.com/security/updates/classification/","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2060662","label":"bugzilla.redhat.com/show_bug.cgi?id=2060662","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_5597.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_5597.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2022-24724","label":"access.redhat.com/security/cve/CVE-2022-24724","hostname":"access.redhat.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-24724","label":"www.cve.org/CVERecord?id=CVE-2022-24724","hostname":"www.cve.org","tags":["Advisory","REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24724","label":"nvd.nist.gov/vuln/detail/CVE-2022-24724","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2022-24724","label":"ubuntu.com/security/CVE-2022-24724","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-24724","label":"security-tracker.debian.org/tracker/CVE-2022-24724","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-03-03T19:35:09.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-22T18:20:59.594Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T18:32:36.544Z","stale":false,"partial":false}}