Skip to main content
Public proof of conceptFix available

CVE-2022-24724

A public proof of concept exists; no exploitation attested.

  • Published2022-03-03
  • WeaknessCWE-190

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2022-03-0320:15CVE publishedNVD

Versions per branch

NVD
Fedoraproject fedora
BranchAffectedFixed in
34.x= 34no fix published
35.x= 35no fix published
36.x= 36no fix published
Github cmark-gfm
BranchAffectedFixed in
0.x> 0.28.3.gfm.21, < 0.29.0.gfm.30.29.0.gfm.3
0.28< 0.28.3.gfm.210.28.3.gfm.21

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • github cmark-gfm
    Affected
    • = < 0.28.3.gfm.21no fix stated
    • = >= 0.29.0.gfm.0, < 0.29.0.gfm.3no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2022-04-06

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • cmark-gfmUbuntu:Pro:20.04:LTSall versions · no fixed version listed
  • cmark-gfmDebian:14all versions · fixed in 0.29.0.gfm.3-3
  • cmark-gfmDebian:13all versions · fixed in 0.29.0.gfm.3-3
  • cmark-gfmDebian:12all versions · fixed in 0.29.0.gfm.3-3
  • ghostwriterDebian:14all versions · fixed in 2.1.6+ds-1
  • ghostwriterDebian:13all versions · fixed in 2.1.6+ds-1
  • ghostwriterDebian:12all versions · fixed in 2.1.6+ds-1
  • pandocRocky Linux:8all versions · fixed in 0:2.0.6-6.el8_6

11 more package ranges on OSV.dev

Vendor advisories

  • CVE-2022-24724 Red Hat Product Security6 products fixed

    cmark-gfm: possible RCE due to integer overflow

  • RHSA-2022:5597 Red Hat Product Security6 products fixed

    Red Hat Security Advisory: pandoc security update

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2022:5597 · 6 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2025-04-22
  • CNACVSS 3.18.8known since 2026-10-23
  • NVDCVSS 3.19.8read 2026-10-23
  • NVDCVSS 2.07.5read 2026-10-23
  • CNAweakness (CWE)CWE-190known since 2026-10-23
  • FIRST EPSSEPSS score4.6 %2026-12-04
  • OSVaffected packages—

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2022-03-03
Last modified
2026-06-17
NVD status
Modified

Frequently asked questions

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.

Is CVE-2022-24724 actively exploited?

A proof-of-concept exploit exists for CVE-2022-24724, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2022-24724?

CVE-2022-24724 has a CVSS v3 base score of 9.8 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running commonmark? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record