CVE catalog

CVE-2022-24724

cmark-gfm: CVE-2022-24724

[CVE catalog]

Severity
Critical · CVSS 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
4.51% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiancmark-gfmsid0.29.0.gfm.13-7.1fixed
Debiancmark-gfmforky0.29.0.gfm.13-7.1fixed
Debiancmark-gfmtrixie0.29.0.gfm.13-4fixed
Debiancmark-gfmbookworm0.29.0.gfm.6-6fixed
Debianghostwritersid26.04.0+ds-1fixed
Debianghostwriterforky26.04.0+ds-1fixed
Debianghostwritertrixie25.04.0+ds-1fixed
Debianghostwriterbookworm2.1.6+ds-2fixed
Debianpython-cmarkgfmsid2025.10.22-2fixed
Debianpython-cmarkgfmforky2025.10.22-2fixed
Debianpython-cmarkgfmtrixie2024.11.20-1fixed
Debianpython-cmarkgfmbookworm0.8.0-3fixed
Debianr-cran-commonmarksid2.0.0-3fixed
Debianr-cran-commonmarkforky2.0.0-3fixed
Debianr-cran-commonmarktrixie1.9.5-1fixed
Debianr-cran-commonmarkbookworm1.8.1-1fixed
Debianruby-commonmarkersid2.10.1-1fixed
Debianruby-commonmarkerforky2.10.0-2fixed
Debianruby-commonmarkertrixie0.23.10-1fixed
Debianruby-commonmarkerbookworm0.23.6-1fixed
Ubuntucmark-gfmpro0.28.3.gfm.20-3vulnerable
Ubuntucmark-gfmpro0.29.0.gfm.0-3vulnerable
Ubuntucmark-gfmpro0.29.0.gfm.0-4vulnerable
Ubuntucmark-gfmpro0.29.0.gfm.0-4ubuntu0.1~esm1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancmark-gfmsourcesid0.29.0.gfm.3-3not yet assignedNot reported[1006756]
Debiancmark-gfmsourceforky0.29.0.gfm.3-3not yet assignedNot reported[1006756]
Debiancmark-gfmsourcetrixie0.29.0.gfm.3-3not yet assignedNot reported[1006756]
Debiancmark-gfmsourcebookworm0.29.0.gfm.3-3not yet assignedNot reported[1006756]
Debianghostwritersourcesid2.1.6+ds-1not yet assignedNot reported[1006757]
Debianghostwritersourceforky2.1.6+ds-1not yet assignedNot reported[1006757]
Debianghostwritersourcetrixie2.1.6+ds-1not yet assignedNot reported[1006757]
Debianghostwritersourcebookworm2.1.6+ds-1not yet assignedNot reported[1006757]
Debianpython-cmarkgfmsourcesid0.7.0-1not yet assignedNot reported[1006758]
Debianpython-cmarkgfmsourceforky0.7.0-1not yet assignedNot reported[1006758]
Debianpython-cmarkgfmsourcetrixie0.7.0-1not yet assignedNot reported[1006758]
Debianpython-cmarkgfmsourcebookworm0.7.0-1not yet assignedNot reported[1006758]
Debianr-cran-commonmarksourcesid1.8.0-1not yet assignedNot reported[1006760]
Debianr-cran-commonmarksourceforky1.8.0-1not yet assignedNot reported[1006760]
Debianr-cran-commonmarksourcetrixie1.8.0-1not yet assignedNot reported[1006760]
Debianr-cran-commonmarksourcebookworm1.8.0-1not yet assignedNot reported[1006760]
Debianruby-commonmarkersourcesid0.23.4-1not yet assignedNot reported[1006759]
Debianruby-commonmarkersourceforky0.23.4-1not yet assignedNot reported[1006759]
Debianruby-commonmarkersourcetrixie0.23.4-1not yet assignedNot reported[1006759]
Debianruby-commonmarkersourcebookworm0.23.4-1not yet assignedNot reported[1006759]

[Debian bug #1006756][Debian bug #1006757][Debian bug #1006758][Debian bug #1006760][Debian bug #1006759]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [cmark-gfm]Fixed
    Details (2)
    • 0.29.0.gfm.6-6 · amd64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.3-3

      dsa · cmark-gfm · debian · bookworm

    • 0.29.0.gfm.6-6 · arm64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.3-3

      dsa · cmark-gfm · debian · bookworm

  • Details (2)
    • 2.1.6+ds-2 · amd64 · bookworm

      Fixed · Fixed: 2.1.6+ds-1

      dsa · ghostwriter · debian · bookworm

    • 2.1.6+ds-2 · arm64 · bookworm

      Fixed · Fixed: 2.1.6+ds-1

      dsa · ghostwriter · debian · bookworm

  • Source package: [cmark-gfm]

    Details (2)
    • 0.29.0.gfm.6-6 · amd64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.3-3

      dsa · cmark-gfm · debian · bookworm

    • 0.29.0.gfm.6-6 · arm64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.3-3

      dsa · cmark-gfm · debian · bookworm

  • Source package: [cmark-gfm]

    Details (2)
    • 0.29.0.gfm.6-6 · amd64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.3-3

      dsa · cmark-gfm · debian · bookworm

    • 0.29.0.gfm.6-6 · arm64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.3-3

      dsa · cmark-gfm · debian · bookworm

  • Source package: [cmark-gfm]

    Details (2)
    • 0.29.0.gfm.6-6 · amd64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.3-3

      dsa · cmark-gfm · debian · bookworm

    • 0.29.0.gfm.6-6 · arm64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.3-3

      dsa · cmark-gfm · debian · bookworm

  • Source package: [cmark-gfm]

    Details (2)
    • 0.29.0.gfm.6-6 · amd64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.3-3

      dsa · cmark-gfm · debian · bookworm

    • 0.29.0.gfm.6-6 · arm64 · bookworm

      Fixed · Fixed: 0.29.0.gfm.3-3

      dsa · cmark-gfm · debian · bookworm

  • Source package: [python-cmarkgfm]

    Details (2)
    • 0.8.0-3 · amd64 · bookworm

      Fixed · Fixed: 0.7.0-1

      dsa · python-cmarkgfm · debian · bookworm

    • 0.8.0-3 · arm64 · bookworm

      Fixed · Fixed: 0.7.0-1

      dsa · python-cmarkgfm · debian · bookworm

  • Details (2)
    • 1.8.1-1 · amd64 · bookworm

      Fixed · Fixed: 1.8.0-1

      dsa · r-cran-commonmark · debian · bookworm

    • 1.8.1-1 · arm64 · bookworm

      Fixed · Fixed: 1.8.0-1

      dsa · r-cran-commonmark · debian · bookworm

  • Source package: [ruby-commonmarker]

    Details (2)
    • 0.23.6-1+b1 · amd64 · bookworm

      Fixed · Fixed: 0.23.4-1

      dsa · ruby-commonmarker · debian · bookworm

    • 0.23.6-1+b1 · arm64 · bookworm

      Fixed · Fixed: 0.23.4-1

      dsa · ruby-commonmarker · debian · bookworm

Observed:

References