CVE-2023-22485: cmark-gfm out-of-bounds read in validate_protocol

Published 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 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

1 affected component
cmark-gfm<0.29.0.gfm.7

Event History

Jan 24, 2023
CVE Published
via MITRE·12:26 AM
Data Sourced
via MITRE·12:26 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

What is the severity of CVE-2023-22485?

The severity of CVE-2023-22485 is medium with a CVSS score of 5.3.

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.

4

Is the CVE-2023-22485 vulnerability harmful in practice?

The CVE-2023-22485 vulnerability is believed to be harmless in practice.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203