CVE-2022-24724
published high CVSS 3.1 · 8.8Integer overflow in table parsing extension leads to heap memory corruption
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| github | — | cmark-gfm< 0.28.3.gfm.21 · >= 0.29.0.gfm.0, < 0.29.0.gfm.3 | Affected | Not stated | GitHub_M |
| AlmaLinux | 8 | pandoc | Advisory build | 2.0.6-6.el8_6 | ALSA-2022:5597 |
| Red Hat Enterprise Linux | RHEL-8 | pandocaarch64 | Advisory build | 2.0.6-6.el8_6 | RHSA-2022:5597 |
| Rocky Linux | 8 | pandocaarch64 | Listed in advisory | Not stated | RLSA-2022:5597 |
| AlmaLinux | 8 | pandoc-common | Advisory build | 2.0.6-6.el8_6 | ALSA-2022:5597 |
| Red Hat Enterprise Linux | RHEL-8 | pandocppc64le | Advisory build | 2.0.6-6.el8_6 | RHSA-2022:5597 |
| Red Hat Enterprise Linux | RHEL-8 | pandocs390x | Advisory build | 2.0.6-6.el8_6 | RHSA-2022:5597 |
| Red Hat Enterprise Linux | RHEL-8 | pandocsrc | Advisory build | 2.0.6-6.el8_6 | RHSA-2022:5597 |
Show 5 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat Enterprise Linux | RHEL-8 | pandocx86_64 | Advisory build | 2.0.6-6.el8_6 | RHSA-2022:5597 |
| Red Hat Enterprise Linux | RHEL-8 | pandoc-commonnoarch | Advisory build | 2.0.6-6.el8_6 | RHSA-2022:5597 |
| Rocky Linux | 8 | pandocsrc | Listed in advisory | Not stated | RLSA-2022:5597 |
| Rocky Linux | 8 | pandocx86_64 | Listed in advisory | Not stated | RLSA-2022:5597 |
| Rocky Linux | 8 | pandoc-commonnoarch | Listed in advisory | Not stated | RLSA-2022:5597 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| github | cmark-gfm | < 0.28.3.gfm.21 (affected)>= 0.29.0.gfm.0, < 0.29.0.gfm.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-190 CWE-190: Integer Overflow or Wraparound
References
8- http://packetstormsecurity.com/files/166599/cmark-gfm-Integer-overflow.html
- https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x
- FEDORA-2022-c42d02e5e5 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5CYUU662VO6CCXQKVZVOHXX3RGIF2DLQ/
- FEDORA-2022-bc43bafcfd https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F7V3HAM5H6YFJG2QFEXACZR3XVWFTXTC/
- FEDORA-2022-1f981071eb https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KH4UQA6VWVZU5EW3HNEAB7D7BTCNJSJ2/
- FEDORA-2022-79b9a59e3b https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RSKUOJ2VAYGTJXPDE2RRPMNLVVMKCI77/
- FEDORA-2022-725edc74c0 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TJBFIJEHJZEEDG6MO4MQHZYKUXELH77O/
- FEDORA-2022-557ad15f2e https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z55K6VNVKO2G5SNKRCQ2KDG5SKTX5PVV/
Provider assertions
3GitHub_M · cna
Integer overflow in table parsing extension leads to heap memory corruption
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 7af2c14a3900b352839b8aadbdac35c13970fb10b5e25421f363facdf27c6296
- Ingested
- 23 Sep 2026, 07:58:57 UTC
- Source record
- Official CVE record