commonmarker
Affected
- introduced
0, fixed0.23.4(ecosystem)
Fixed versions
0.23.4
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2024-22051
Integer overflow in cmark-gfm table parsing extension leads to heap memory corruption
Impact
CommonMarker uses cmark-gfm for rendering Github Flavored Markdown. An integer overflow in `cmark-gfm`'s table row parsing 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.
If affected versions of CommonMarker are used for rendering remote user controlled markdown, this vulnerability may lead to Remote Code Execution (RCE).
Patches
This vulnerability has been patched in the following CommonMarker release:
Workarounds
The vulnerability exists in the table markdown extensions of cmark-gfm. Disabling any use of the table extension will prevent this vulnerability from being triggered.
References
Acknowledgements
We would like to thank Felix Wilhelm of Google's Project Zero for reporting this vulnerability
For more information
If you have any questions or comments about this advisory:
High Basis: The source's own band: HIGH
0, fixed 0.23.4 (ecosystem)0.23.4
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0