Integer overflow in cmark-gfm - CVE-2022-24724

 

Integer overflow in cmark-gfm - CVE-2022-24724

Published: July 18, 2022


Vulnerability identifier: #VU65401
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-24724
CWE-ID: CWE-190
Exploitation vector: Remote access
Exploit availability: No public exploit available

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

cmark-gfm
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

Install updates from vendor's website.

cmark-gfm - addressed in versions 0.28.3.gfm.21, 0.29.0.gfm.3
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

Related Security Bulletins