What’s Vulnerable › Vulnerabilities
CVE-2024-22051: CommonMarker Integer Overflow Vulnerability
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-01-04 · updated 2026-07-14
- Weakness: CWE-190
Description
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.
Affected products
- github cmark-gfm: before 0.28.3.gfm.21; from 0.29.0.gfm.0 before 0.29.0.gfm.3 — fixed in 0.28.3.gfm.21, 0.29.0.gfm.3
- Gjtorikian Commonmarker: before 0.23.4 — fixed in 0.23.4
How to fix
Upgrade to a fixed version: github cmark-gfm 0.28.3.gfm.21, 0.29.0.gfm.3; Gjtorikian Commonmarker 0.23.4. Check the vendor advisory for mitigations.
References
- https://github.com/advisories/GHSA-fmx4-26r3-wxpf
- https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x
- https://github.com/gjtorikian/commonmarker/commit/ab4504fd17460627a6ab255bc3c63e8e5fc6aed3
- https://github.com/gjtorikian/commonmarker/security/advisories/GHSA-fmx4-26r3-wxpf
- https://vulncheck.com/advisories/vc-advisory-GHSA-fmx4-26r3-wxpf
- https://github.com/advisories/GHSA-fmx4-26r3-wxpf
- https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x
- https://github.com/gjtorikian/commonmarker/commit/ab4504fd17460627a6ab255bc3c63e8e5fc6aed3
- https://github.com/gjtorikian/commonmarker/security/advisories/GHSA-fmx4-26r3-wxpf
- https://vulncheck.com/advisories/vc-advisory-GHSA-fmx4-26r3-wxpf
Get alerted when CVE-2024-22051 or the next vulnerability affects your stack