Integer overflow in table parsing extension leads to heap memory corruption
CVE-2022-24724
Key Information:
- Vendor
Github
- Status
- CVE ID
- CVE ID:
- CVE-2022-24724
- Vendor
- CVE Published:
- 3 March 2022
- Fixed in
- Fixed in:
- 0.28.3.gfm.21, 0.29.0.gfm.0, 0.29.0.gfm.3
Timeline
Vulnerability published
Vulnerability Reserved
How risky is it?
- Partly: Works over the network, but needs a login
- No: No public exploit yet
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Check today
Find out if you're affected. If you are, patch.
What to do
1Update to a fixed version
Install the cmark-gfm release that fixes your version line, or later:
2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach cmark-gfm. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Why it's rated "Check today"
- Its CVSS severity is high (8.8).
What is CVE-2022-24724?
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.
References
More Github Vulnerabilities
Improper Neutralization Vulnerability in GitHub Enterprise Server
Remote Code Execution Vulnerability in GitHub Enterprise Server
Cryptographic Signature Spoofing Vulnerability in GitHub Enterprise Server
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction