First published: Tue Jan 24 2023(Updated: )
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 `validate_protocol` 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.
Credit: security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
Github Cmark-gfm | <0.29.0.gfm.7 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
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.
The severity of CVE-2023-22485 is medium with a CVSS score of 5.3.
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.
The CVE-2023-22485 vulnerability is believed to be harmless in practice.
To fix CVE-2023-22485, it is recommended to update to version 0.29.0.gfm.7 or later of GitHub's cmark-gfm.