# CVE-2022-24724: Integer overflow in table parsing extension leads to heap memory corruption

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 3.51% (percentile 90, 2026-11-26)
- **CWE:** CWE-190
- **Published:** 2022-03-03T19:35:09.000Z
- **Modified:** 2026-06-17T04:32:22.620Z

## Who should check

- Anyone running github cmark-gfm \< 0.28.3.gfm.21; \>= 0.29.0.gfm.0, \< 0.29.0.gfm.3

## Description

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.

## Affected and fixed versions

- github cmark-gfm: \< 0.28.3.gfm.21; \>= 0.29.0.gfm.0, \< 0.29.0.gfm.3 (cvelist)

## Mitigation

- Upgrade cmark-gfm to 0.29.0.gfm.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-24724. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-24724.md
Affected: github cmark-gfm < 0.28.3.gfm.21; >= 0.29.0.gfm.0, < 0.29.0.gfm.3
Fixed in: github cmark-gfm 0.28.3.gfm.21, github cmark-gfm 0.29.0.gfm.3

Steps:
1. Search this machine and project for github cmark-gfm: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-24724 being exploited?

There is no confirmed exploitation: CVE-2022-24724 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 3.51% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-24724?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2022-24724?

github cmark-gfm \< 0.28.3.gfm.21; \>= 0.29.0.gfm.0, \< 0.29.0.gfm.3.

### Is there a fix for CVE-2022-24724?

Yes. Fixed in github cmark-gfm 0.28.3.gfm.21, github cmark-gfm 0.29.0.gfm.3. Upgrade cmark-gfm to 0.29.0.gfm.3 or later.

### How do I check if I'm affected by CVE-2022-24724?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z55K6VNVKO2G5SNKRCQ2KDG5SKTX5PVV/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TJBFIJEHJZEEDG6MO4MQHZYKUXELH77O/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F7V3HAM5H6YFJG2QFEXACZR3XVWFTXTC/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5CYUU662VO6CCXQKVZVOHXX3RGIF2DLQ/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RSKUOJ2VAYGTJXPDE2RRPMNLVVMKCI77/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KH4UQA6VWVZU5EW3HNEAB7D7BTCNJSJ2/>
- exploit: <http://packetstormsecurity.com/files/166599/cmark-gfm-Integer-overflow.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-24724>

HTML: <https://flawdb.com/CVE-2022-24724> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-24724>
