CVE-2023-22485: cmark-gfm out-of-bounds read in validate_protocol
cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C. In versions prior 0.29.0.gfm.7, a crafted markdown document can trigger an out-of-bounds read in the validateprotocol function. We believe this bug is harmless in practice, because the out-of-bounds read accesses malloc metadata without causing any visible damage.This vulnerability has been patched in 0.29.0.gfm.7.
Affected Software
Event History
Frequently Asked Questions
What is CVE-2023-22485?
CVE-2023-22485 is a vulnerability in cmark-gfm, a CommonMark parsing and rendering library and program in C, that can trigger an out-of-bounds read in the `validate_protocol` function.
What is the severity of CVE-2023-22485?
The severity of CVE-2023-22485 is medium with a CVSS score of 5.3.
How does CVE-2023-22485 impact GitHub's cmark-gfm?
In versions prior to 0.29.0.gfm.7, a crafted markdown document can trigger the vulnerability in the `validate_protocol` function of GitHub's cmark-gfm.
Is the CVE-2023-22485 vulnerability harmful in practice?
The CVE-2023-22485 vulnerability is believed to be harmless in practice.
How can I fix CVE-2023-22485?
To fix CVE-2023-22485, it is recommended to update to version 0.29.0.gfm.7 or later of GitHub's cmark-gfm.