Integer overflow in cmark-gfm - CVE-2022-24724
Published: July 18, 2022
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to integer overflow when parsing tables whose marker rows contain more than UINT16_MAX columns. A remote attacker can pass specially crafted data to the application, trigger integer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Red Hat CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for IBM z Systems
Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support
Red Hat CodeReady Linux Builder for Power, little endian - Extended Update Support
Fedora
ghc-cmark-gfm
patat
gitit
pandoc-citeproc
pandoc (Red Hat package)
ghostwriter
pandoc
ghc-hakyll
How to mitigate CVE-2022-24724
ghc-cmark-gfm - addressed in versions 0.2.3-1.fc34, 0.2.3-1.fc35, 0.2.3-1.fc36
patat - update to 0.8.6.1-1.1.fc34
gitit - update to 0.13.0.0-5.1.fc34
pandoc-citeproc - update to 0.17.0.1-5.fc34
pandoc (Red Hat package) - update to 2.0.6-6.el8_6
ghostwriter - addressed in versions 2.1.2-1.fc34, 2.1.2-1.fc35, 2.1.2-1.fc36
pandoc - update to 2.9.2.1-10.fc34
ghc-hakyll - update to 4.13.4.0-5.1.fc34
External References
- https://github.com/github/cmark-gfm/security/advisories/GHSA-mc3g-88wq-6f4x
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Z55K6VNVKO2G5SNKRCQ2KDG5SKTX5PVV/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/F7V3HAM5H6YFJG2QFEXACZR3XVWFTXTC/
- 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/RSKUOJ2VAYGTJXPDE2RRPMNLVVMKCI77/
- 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/KH4UQA6VWVZU5EW3HNEAB7D7BTCNJSJ2/
- http://packetstormsecurity.com/files/166599/cmark-gfm-Integer-overflow.html
Related Security Bulletins
- Integer overflow in GitHub cmark-gfm
- Red Hat Enterprise Linux 8.6 update for pandoc
- Fedora 36 update for ghc-cmark-gfm
- Fedora 35 update for ghc-cmark-gfm
- Fedora 34 update for ghostwriter
- Fedora 35 update for ghostwriter
- Fedora 36 update for ghostwriter
- Fedora 34 update for ghc-cmark-gfm, ghc-hakyll, gitit, pandoc, pandoc-citeproc, patat