Integer overflow in table parsing extension leads to heap memory corruption

Check todayFull system takeover over the network by a logged-in user.
8.8HIGH

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
cmark-gfm < 0.28.3.gfm.21 to below 0.28.3.gfm.21 is vulnerable
cmark-gfm >= 0.29.0.gfm.0, < 0.29.0.gfm.3 to below 0.29.0.gfm.0, 0.29.0.gfm.3 is vulnerable

Install the cmark-gfm release that fixes your version line, or later:

0.28.3.gfm.210.29.0.gfm.0, 0.29.0.gfm.3
Read the vendor advisory โ†—
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

Improper Neutralization Vulnerability in GitHub Enterprise Server

CVE-2026-4821
GithubEnterprise Server8.1HIGH

Remote Code Execution Vulnerability in GitHub Enterprise Server

CVE-2026-3854
GithubEnterprise Server๐Ÿ”ฅ๐Ÿ˜„๐Ÿ‘พ8.7HIGH

Cryptographic Signature Spoofing Vulnerability in GitHub Enterprise Server

CVE-2025-23369
GithubEnterprise Server๐Ÿ˜„๐Ÿ‘พ7.6HIGH
View more Github vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities ยท Report a correction

CVSS V3.1

Score:
8.8
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
Low
User Interaction:
None
Scope:
Unchanged
.