Vulnerabilidades / CVE-2022-24724

crítica

CVE-2022-24724

cmark-gfm: possible RCE due to integer overflow

Publicada Modificada CWE 190
En la Trivy database desde, como mínimo, el 24 oct 2026, 07:11 UTCNo consta cuándo entró antes de ese build.

Severidad por fuente

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat8.8CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

La etiqueta propia de Trivy es CRITICAL. Crítica según NVD. Más baja según Red Hat (alta), AlmaLinux (alta).

Descripción

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.

Paquetes afectados y versiones corregidas

FuentePaqueteCorregido en
alma 8pandoc, pandoc-common2.0.6-6.el8_6
debian 10cmark-gfm, python-cmarkgfm, r-cran-commonmark y 1 mássin corrección indicada
debian 11cmark-gfm, python-cmarkgfm, r-cran-commonmark y 1 mássin corrección indicada
debian 12cmark-gfm, ghostwriter, python-cmarkgfm y 2 más0.29.0.gfm.3-3 y 4 más
debian 13cmark-gfm, ghostwriter, python-cmarkgfm y 2 más0.29.0.gfm.3-3 y 4 más
debian 14cmark-gfm, ghostwriter, python-cmarkgfm y 2 más0.29.0.gfm.3-3 y 4 más
echocmark-gfm, ghostwriter, python-cmarkgfm y 2 más0.29.0.gfm.3-3 y 4 más
Mostrar las 30 entradas de 7 fuentes
FuentePaqueteCorregido en
alma 8pandoc2.0.6-6.el8_6
alma 8pandoc-common2.0.6-6.el8_6
debian 10cmark-gfmsin corrección indicada
debian 10python-cmarkgfmsin corrección indicada
debian 10r-cran-commonmarksin corrección indicada
debian 10ruby-commonmarkersin corrección indicada
debian 11cmark-gfmsin corrección indicada
debian 11python-cmarkgfmsin corrección indicada
debian 11r-cran-commonmarksin corrección indicada
debian 11ruby-commonmarkersin corrección indicada
debian 12cmark-gfm0.29.0.gfm.3-3
debian 12ghostwriter2.1.6+ds-1
debian 12python-cmarkgfm0.7.0-1
debian 12r-cran-commonmark1.8.0-1
debian 12ruby-commonmarker0.23.4-1
debian 13cmark-gfm0.29.0.gfm.3-3
debian 13ghostwriter2.1.6+ds-1
debian 13python-cmarkgfm0.7.0-1
debian 13r-cran-commonmark1.8.0-1
debian 13ruby-commonmarker0.23.4-1
debian 14cmark-gfm0.29.0.gfm.3-3
debian 14ghostwriter2.1.6+ds-1
debian 14python-cmarkgfm0.7.0-1
debian 14r-cran-commonmark1.8.0-1
debian 14ruby-commonmarker0.23.4-1
echocmark-gfm0.29.0.gfm.3-3
echoghostwriter2.1.6+ds-1
echopython-cmarkgfm0.7.0-1
echor-cran-commonmark1.8.0-1
echoruby-commonmarker0.23.4-1

Referencias

Las 14 referencias

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.