Skip to content
OpenAdvisories
Medium · 5.3 CVE-2023-22485 EUVD-2023-26632

cmark-gfm out-of-bounds read in validate_protocol

Published Jan 24, 2023 · Updated Mar 10, 2025 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
github cmark-gfm < 0.29.0.gfm.7 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 cmark-gfm 0.29.0.gfm.13-1 —
Debian 14 python-cmarkgfm 2024.11.20-1 —
Debian 14 r-cran-commonmark 1.9.0-1 —
Debian 14 ruby-commonmarker 0.23.10-1 —
Debian 13 cmark-gfm 0.29.0.gfm.13-1 —
Debian 13 python-cmarkgfm 2024.11.20-1 —
Debian 13 r-cran-commonmark 1.9.0-1 —
Debian 13 ruby-commonmarker 0.23.10-1 —
Debian 12 cmark-gfm +3 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS cmark-gfm No fix yet —
Ubuntu 22.04 LTS cmark-gfm No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS cmark-gfm No fix yet —

References