CVE-2022-24724
cmark-gfm: possible RCE due to integer overflow
Severidad por fuente
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
| Fuente | Paquete | Corregido en |
|---|---|---|
| alma 8 | pandoc, pandoc-common | 2.0.6-6.el8_6 |
| debian 10 | cmark-gfm, python-cmarkgfm, r-cran-commonmark y 1 más | sin corrección indicada |
| debian 11 | cmark-gfm, python-cmarkgfm, r-cran-commonmark y 1 más | sin corrección indicada |
| debian 12 | cmark-gfm, ghostwriter, python-cmarkgfm y 2 más | 0.29.0.gfm.3-3 y 4 más |
| debian 13 | cmark-gfm, ghostwriter, python-cmarkgfm y 2 más | 0.29.0.gfm.3-3 y 4 más |
| debian 14 | cmark-gfm, ghostwriter, python-cmarkgfm y 2 más | 0.29.0.gfm.3-3 y 4 más |
| echo | cmark-gfm, ghostwriter, python-cmarkgfm y 2 más | 0.29.0.gfm.3-3 y 4 más |
Mostrar las 30 entradas de 7 fuentes
| Fuente | Paquete | Corregido en |
|---|---|---|
| alma 8 | pandoc | 2.0.6-6.el8_6 |
| alma 8 | pandoc-common | 2.0.6-6.el8_6 |
| debian 10 | cmark-gfm | sin corrección indicada |
| debian 10 | python-cmarkgfm | sin corrección indicada |
| debian 10 | r-cran-commonmark | sin corrección indicada |
| debian 10 | ruby-commonmarker | sin corrección indicada |
| debian 11 | cmark-gfm | sin corrección indicada |
| debian 11 | python-cmarkgfm | sin corrección indicada |
| debian 11 | r-cran-commonmark | sin corrección indicada |
| debian 11 | ruby-commonmarker | sin corrección indicada |
| debian 12 | cmark-gfm | 0.29.0.gfm.3-3 |
| debian 12 | ghostwriter | 2.1.6+ds-1 |
| debian 12 | python-cmarkgfm | 0.7.0-1 |
| debian 12 | r-cran-commonmark | 1.8.0-1 |
| debian 12 | ruby-commonmarker | 0.23.4-1 |
| debian 13 | cmark-gfm | 0.29.0.gfm.3-3 |
| debian 13 | ghostwriter | 2.1.6+ds-1 |
| debian 13 | python-cmarkgfm | 0.7.0-1 |
| debian 13 | r-cran-commonmark | 1.8.0-1 |
| debian 13 | ruby-commonmarker | 0.23.4-1 |
| debian 14 | cmark-gfm | 0.29.0.gfm.3-3 |
| debian 14 | ghostwriter | 2.1.6+ds-1 |
| debian 14 | python-cmarkgfm | 0.7.0-1 |
| debian 14 | r-cran-commonmark | 1.8.0-1 |
| debian 14 | ruby-commonmarker | 0.23.4-1 |
| echo | cmark-gfm | 0.29.0.gfm.3-3 |
| echo | ghostwriter | 2.1.6+ds-1 |
| echo | python-cmarkgfm | 0.7.0-1 |
| echo | r-cran-commonmark | 1.8.0-1 |
| echo | ruby-commonmarker | 0.23.4-1 |
Referencias
- http://packetstormsecurity.com/files/166599/cmark-gfm-Integer-overflow.html
- https://access.redhat.com/errata/RHSA-2022:5597
- https://access.redhat.com/security/cve/CVE-2022-24724
- https://bugzilla.redhat.com/2060662
- https://errata.almalinux.org/8/ALSA-2022-5597.html
- https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5CYUU662VO6CCXQKVZVOHXX3RGIF2DLQ/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/F7V3HAM5H6YFJG2QFEXACZR3XVWFTXTC/
Las 14 referencias
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KH4UQA6VWVZU5EW3HNEAB7D7BTCNJSJ2/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RSKUOJ2VAYGTJXPDE2RRPMNLVVMKCI77/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TJBFIJEHJZEEDG6MO4MQHZYKUXELH77O/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z55K6VNVKO2G5SNKRCQ2KDG5SKTX5PVV/
- https://nvd.nist.gov/vuln/detail/CVE-2022-24724
- https://www.cve.org/CVERecord?id=CVE-2022-24724