{"id":"CVE-2024-22051","aliases":["CVE-2024-22051","GHSA-fmx4-26r3-wxpf"],"related":[],"kind":"vulnerability","state":"published","title":"CommonMarker Integer Overflow Vulnerability","summary":"CommonMarker versions prior to 0.23.4 are at risk of an integer overflow vulnerability. This vulnerability can result in possibly unauthenticated remote attackers to cause heap memory corruption, potentially leading to an information leak or remote code execution, via parsing tables with marker rows that contain more than UINT16_MAX columns.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"CommonMarker versions prior to 0.23.4 are at risk of an integer overflow vulnerability. This vulnerability can result in possibly unauthenticated remote attackers to cause heap memory corruption, potentially leading to an information leak or remote code execution, via parsing tables with marker rows that contain more than UINT16_MAX columns.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nCommonMarker uses `cmark-gfm` for rendering [Github Flavored Markdown](https://github.github.com/gfm/). An [integer overflow in `cmark-gfm`'s table row parsing](https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x) 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.\n\nIf affected versions of CommonMarker are used for rendering remote user controlled markdown, this vulnerability may lead to Remote Code Execution (RCE).\n\n### Patches\n\nThis vulnerability has been patched in the following CommonMarker release:\n\n- v0.23.4\n\n### Workarounds\n\nThe vulnerability exists in the table markdown extensions of `cmark-gfm`. Disabling any use of the table extension will prevent this vulnerability from being triggered.\n\n### References\n\n- https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x\n\n### Acknowledgements\n\nWe would like to thank Felix Wilhelm of Google's Project Zero for reporting this vulnerability\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n* Open an issue in [CommonMarker](http://github.com/gjtorikian/commonmarker)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las versiones de CommonMarker anteriores a la 0.23.4 corren el riesgo de sufrir una vulnerabilidad de desbordamiento de enteros. Esta vulnerabilidad puede provocar que atacantes remotos posiblemente no autenticados provoquen daños en la memoria del montón, lo que podría provocar una fuga de información o la ejecución remota de código, a través de tablas de análisis con filas de marcadores que contienen más de columnas UINT16_MAX.","source":"nvd"}],"published":"2022-03-03T20:28:47.000Z","modified":"2026-11-08T13:59:56.276Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.23.4","status":"affected"}],"package":"commonmarker","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.23.4"}],"ecosystem":"RubyGems","package":"commonmarker","purl":"pkg:gem/commonmarker","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.28.3.gfm.21"},{"status":"affected","introduced":"0.29.0.gfm.0","fixed":"0.29.0.gfm.3"}],"vendor":"github","product":"cmark-gfm","cpe":"cpe:2.3:a:github:cmark-gfm:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"0.23.4"}],"vendor":"gjtorikian","product":"commonmarker","cpe":"cpe:2.3:a:gjtorikian:commonmarker:*:*:*:*:*:ruby:*:*","source":"nvd"}],"references":[{"url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x","tags":["not-applicable","related","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/gjtorikian/commonmarker/security/advisories/GHSA-fmx4-26r3-wxpf","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/gjtorikian/commonmarker/commit/ab4504fd17460627a6ab255bc3c63e8e5fc6aed3","tags":["patch","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/advisories/GHSA-fmx4-26r3-wxpf","tags":["third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://vulncheck.com/advisories/vc-advisory-GHSA-fmx4-26r3-wxpf","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22051","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/gjtorikian/commonmarker","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/commonmarker/CVE-2024-22051.yml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-01-08T18:15:45.577Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-22051","url":"https://www.cve.org/CVERecord?id=CVE-2024-22051","licence":"CVE Terms of Use","modified":"2026-11-08T13:59:56.276Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fmx4-26r3-wxpf","url":"https://github.com/advisories/GHSA-fmx4-26r3-wxpf","licence":"CC-BY-4.0","modified":"2026-05-14T21:03:46.567Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-22051","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22051","licence":"Public domain","modified":"2026-07-14T23:17:15.487Z"}],"updatedAt":"2026-11-25T22:58:35.924Z","epss":{"score":0.01607,"percentile":0.76605,"date":"2026-12-01T12:00:22.000Z"}}