Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-24724

CVE-2022-24724: GitHub Cmark-gfm RCE Vulnerability

CVE-2022-24724 is a remote code execution vulnerability in GitHub Cmark-gfm caused by an integer overflow in table parsing. Attackers can exploit this to execute arbitrary code. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 17, 2026

CVE-2022-24724 Overview

CVE-2022-24724 is a critical integer overflow vulnerability in cmark-gfm, GitHub's extended version of the C reference implementation of CommonMark. The vulnerability exists in the table row parsing function table.c:row_from_string and can lead to heap memory corruption when parsing markdown tables whose marker rows contain more than UINT16_MAX (65,535) columns.

Critical Impact

This vulnerability enables Remote Code Execution (RCE) in applications that use cmark-gfm to render user-controlled markdown content, with impacts ranging from information disclosure to arbitrary code execution.

Affected Products

  • GitHub cmark-gfm versions prior to 0.29.0.gfm.3
  • GitHub cmark-gfm versions prior to 0.28.3.gfm.21
  • Fedora 34, 35, and 36 (via bundled cmark-gfm packages)

Discovery Timeline

  • 2022-03-03 - CVE-2022-24724 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-24724

Vulnerability Analysis

This vulnerability is classified as CWE-190 (Integer Overflow or Wraparound). The flaw resides in cmark-gfm's table extension, specifically within the row_from_string function in table.c. When parsing markdown tables, the function uses a 16-bit unsigned integer (UINT16) to track the number of columns in a table's marker row.

When a maliciously crafted markdown table contains more than 65,535 columns (UINT16_MAX), the column counter overflows, wrapping around to a small value. This integer overflow leads to incorrect memory allocation calculations and subsequent heap memory corruption. The severity of exploitation depends on the application's memory layout and how cmark-gfm is integrated.

Root Cause

The root cause is insufficient bounds checking on the column count variable during table parsing. The row_from_string function stores the column count in a 16-bit integer type, which cannot safely represent values exceeding 65,535. When an attacker supplies a table with an excessive number of columns, the counter overflows, causing the allocated buffer size to be significantly smaller than required. Subsequent write operations then corrupt adjacent heap memory.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by submitting specially crafted markdown content containing a table with more than UINT16_MAX columns to any application that uses vulnerable versions of cmark-gfm for markdown rendering.

The exploitation flow involves:

  1. Crafting a markdown table with an excessive number of pipe characters (|) in the marker row
  2. Submitting this malicious markdown to a vulnerable application
  3. When cmark-gfm parses the table, the integer overflow occurs
  4. The resulting heap corruption can be leveraged for information leakage or arbitrary code execution

For detailed technical analysis of this vulnerability, refer to the GitHub Security Advisory GHSA-mc3g-88wq-6f4x and the Packet Storm Exploit Report.

Detection Methods for CVE-2022-24724

Indicators of Compromise

  • Unusual markdown content containing extremely long lines with thousands of pipe (|) characters
  • Application crashes or unexpected behavior when processing markdown content
  • Memory-related errors or segmentation faults in processes using cmark-gfm
  • Log entries showing heap corruption or memory allocation failures in markdown parsing components

Detection Strategies

  • Monitor for markdown input containing anomalously high numbers of table columns or pipe characters
  • Implement runtime memory corruption detection tools (AddressSanitizer, Valgrind) in development and staging environments
  • Deploy application-level input validation to reject markdown tables exceeding reasonable column limits
  • Use software composition analysis (SCA) tools to identify vulnerable cmark-gfm versions in your codebase

Monitoring Recommendations

  • Enable detailed logging for markdown processing components to capture parsing errors
  • Monitor system resource usage for processes handling user-submitted markdown content
  • Implement anomaly detection for unusually large markdown payloads targeting your applications
  • Set up alerts for application crashes or restarts that may indicate exploitation attempts

How to Mitigate CVE-2022-24724

Immediate Actions Required

  • Upgrade cmark-gfm to version 0.29.0.gfm.3 or 0.28.3.gfm.21 (or later) immediately
  • If immediate patching is not possible, disable the table extension in cmark-gfm as a temporary workaround
  • Audit your applications to identify all instances where cmark-gfm is used to render user-controlled markdown
  • Implement input validation to limit the size and complexity of markdown tables before processing

Patch Information

GitHub has released patched versions of cmark-gfm that address this vulnerability:

  • Version 0.29.0.gfm.3 - for the 0.29.x branch
  • Version 0.28.3.gfm.21 - for the 0.28.x branch

Fedora users should apply the latest security updates for their respective Fedora versions (34, 35, 36) through the standard package management system. Multiple Fedora Package Announcements have been issued addressing this vulnerability.

Workarounds

  • Disable the table markdown extension in cmark-gfm configuration if table rendering is not required
  • Implement pre-processing validation to reject markdown content with excessive table columns
  • Use input sanitization to limit the maximum number of columns in markdown tables before passing to cmark-gfm
  • Consider running cmark-gfm in a sandboxed environment to limit potential RCE impact
bash
# Example: Disable table extension when invoking cmark-gfm
# Check your application's cmark-gfm configuration and disable CMARK_OPT_TABLE_PREFER_STYLE_ATTRIBUTES
# or remove CMARK_EXT_TABLE from enabled extensions

# For applications using cmark-gfm CLI, avoid table extension:
cmark-gfm --unsafe input.md  # Review extensions enabled by default

# Update cmark-gfm via package manager (Fedora example)
sudo dnf update cmark-gfm

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechGithub Cmark Gfm

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability4.19%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Technical References
  • Packet Storm Exploit Report

  • GitHub Security Advisory GHSA-mc3g-88wq-6f4x

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement
  • Related CVEs
  • CVE-2024-22051: Github Cmark-gfm RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English