CVE-2024-22051 in Github Cmark-Gfm and 1 more product
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 mor...
Affects 2 products from 2 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Github | Cmark-Gfm | < 0.28.3.gfm.21 ≥ 0.29.0.gfm.0, < 0.29.0.gfm.3 |
| Gjtorikian | Commonmarker | < 0.23.4 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-22051 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-188203-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2024-01-04 |
| Last modified | 2026-07-14 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-190: Integer Overflow or Wraparound
Arithmetic operation exceeds the maximum integer value, wrapping around and often leading to undersized allocations.
Related attack patterns (CAPEC)
CAPEC-92 Forced Integer Overflow via CWE-190
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CommonMarker versions prior to 0.23.4 are vulnerable to an integer overflow vulnerability that can lead to heap memory corruption, potentially resulting in information leaks or remote code execution.
The vulnerability arises from parsing tables with marker rows that contain more than UINT16_MAX columns, allowing possibly unauthenticated remote attackers to exploit the integer overflow condition.
Questions
What is CVE-2024-22051?
CommonMarker versions prior to 0.23.4 are vulnerable to an integer overflow vulnerability that can lead to heap memory corruption, potentially resulting in information leaks or remote code execution.
What is the CVSS score for CVE-2024-22051?
CVE-2024-22051 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 2.2%.
Is CVE-2024-22051 actively exploited?
No confirmed active exploitation of CVE-2024-22051 as of 2026-07-15.
How do I remediate CVE-2024-22051?
Priority: IMMEDIATE. Advisory: https://github.com/gjtorikian/commonmarker/security/advisories/GHSA-fmx4-26r3-wxpf PSIRT: [email protected]
What systems are affected by CVE-2024-22051?
CVE-2024-22051 affects Github Cmark-Gfm; Gjtorikian Commonmarker.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Github","product":"Cmark-Gfm","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-07-14.