Remote code execution via table-column counter overflow
Published Jan 4, 2024 · Updated Jul 14, 2026
Integer overflow in CommonMarker before 0.23.4 allows remote attackers to corrupt heap memory through crafted Markdown table marker rows. The cmark-gfm row_from_string function increments its 16-bit n_columns counter without rejecting more than UINT16_MAX columns, so the counter wraps while the cell list continues growing. Exploitation requires an application to render attacker-controlled Markdown with the table extension enabled and can disclose memory or execute code in that application's process.
Summary
What happened
Integer overflow in CommonMarker before 0.23.4 allows remote attackers to corrupt heap memory through crafted Markdown table marker rows. The cmark-gfm row_from_string function increments its 16-bit n_columns counter without rejecting more than UINT16_MAX columns, so the counter wraps while the cell list continues growing. Exploitation requires an application to render attacker-controlled Markdown with the table extension enabled and can disclose memory or execute code in that application's process.
The record
- CVE
- CVE-2024-22051
- Published
- Jan 4, 2024
- Updated
- Jul 14, 2026
- Vendor
- Garen Torikian
- Product
- CommonMarker
- Classifications
- CWE-190, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jan 4, 2024CVE publishedPublication date reported by the CVE source.
- Jul 14, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <0.23.4
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo