---
id: CVE-2024-22051
title: >-
  CommonMarker versions prior to 0.23.4 are at risk of an integer overflow
  vulnerability
summary: >-
  CommonMarker versions prior to 0.23.4 are at risk of an integer overflow
  vulnerability. This vulnerability can result in possibly unauthenticated
  remote attackers to cause heap memory corruption, potentially leading to an
  information lea…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-190
  - CWE-190
vendor: github
product: cmark-gfm
affected:
  - cmark-gfm < 0.28.3.gfm.21
  - 'cmark-gfm >= 0.29.0.gfm.0, < 0.29.0.gfm.3'
  - commonmarker < 0.23.4
patched:
  - cmark-gfm 0.29.0.gfm.3
  - commonmarker 0.23.4
published: '2024-01-04'
updated: '2026-07-14'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-22051'
references:
  - url: 'https://github.com/advisories/GHSA-fmx4-26r3-wxpf'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/gjtorikian/commonmarker/commit/ab4504fd17460627a6ab255bc3c63e8e5fc6aed3
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/gjtorikian/commonmarker/security/advisories/GHSA-fmx4-26r3-wxpf
    label: disclosure@vulncheck.com
  - url: 'https://vulncheck.com/advisories/vc-advisory-GHSA-fmx4-26r3-wxpf'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/advisories/GHSA-fmx4-26r3-wxpf'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://github.com/gjtorikian/commonmarker/commit/ab4504fd17460627a6ab255bc3c63e8e5fc6aed3
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://github.com/gjtorikian/commonmarker/security/advisories/GHSA-fmx4-26r3-wxpf
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://vulncheck.com/advisories/vc-advisory-GHSA-fmx4-26r3-wxpf'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.0145
epssPercentile: 0.72265
ingestedAt: '2026-07-14T23:40:04.657Z'
---

## Overview

CommonMarker versions prior to 0.23.4 are at risk of an integer overflow vulnerability. This vulnerability can result in possibly unauthenticated remote attackers to cause heap memory corruption, potentially leading to an information leak or remote code execution, via parsing tables with marker rows that contain more than UINT16_MAX columns.

## Affected

- `cmark-gfm < 0.28.3.gfm.21`
- `cmark-gfm >= 0.29.0.gfm.0, < 0.29.0.gfm.3`
- `commonmarker < 0.23.4`

## Remediation

Upgrade past the affected range:

- `cmark-gfm 0.29.0.gfm.3`
- `commonmarker 0.23.4`
