
CVE catalog
CVE-2023-22485
cmark-gfm: CVE-2023-22485
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.72% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | cmark-gfm | sid | 0.29.0.gfm.13-7.1 | fixed |
| Debian | cmark-gfm | forky | 0.29.0.gfm.13-7.1 | fixed |
| Debian | cmark-gfm | trixie | 0.29.0.gfm.13-4 | fixed |
| Debian | cmark-gfm | bookworm | 0.29.0.gfm.6-6 | vulnerable |
| Debian | python-cmarkgfm | sid | 2025.10.22-2 | fixed |
| Debian | python-cmarkgfm | forky | 2025.10.22-2 | fixed |
| Debian | python-cmarkgfm | trixie | 2024.11.20-1 | fixed |
| Debian | python-cmarkgfm | bookworm | 0.8.0-3 | vulnerable |
| Debian | r-cran-commonmark | sid | 2.0.0-3 | fixed |
| Debian | r-cran-commonmark | forky | 2.0.0-3 | fixed |
| Debian | r-cran-commonmark | trixie | 1.9.5-1 | fixed |
| Debian | r-cran-commonmark | bookworm | 1.8.1-1 | vulnerable |
| Debian | ruby-commonmarker | sid | 2.10.1-1 | fixed |
| Debian | ruby-commonmarker | forky | 2.10.0-2 | fixed |
| Debian | ruby-commonmarker | trixie | 0.23.10-1 | fixed |
| Debian | ruby-commonmarker | bookworm | 0.23.6-1 | vulnerable |
| Ubuntu | cmark-gfm | pro | 0.28.3.gfm.20-3 | vulnerable |
| Ubuntu | cmark-gfm | pro | 0.29.0.gfm.0-3 | vulnerable |
| Ubuntu | cmark-gfm | pro | 0.29.0.gfm.0-4 | vulnerable |
| Ubuntu | cmark-gfm | pro | 0.29.0.gfm.0-4ubuntu0.1~esm1 | vulnerable |
| Ubuntu | cmark-gfm | 22.04 | 0.29.0.gfm.0-6 | vulnerable |
| Ubuntu | cmark-gfm | 22.04 | 0.29.0.gfm.2-1 | vulnerable |
| Ubuntu | cmark-gfm | 22.04 | 0.29.0.gfm.2-1+really.0.29.0.gfm.0ubuntu1 | vulnerable |
| Ubuntu | cmark-gfm | 22.04 | 0.29.0.gfm.2-2 | vulnerable |
| Ubuntu | cmark-gfm | 22.04 | 0.29.0.gfm.3-3 | vulnerable |
| Ubuntu | cmark-gfm | 24.04 | 0.29.0.gfm.6-6 | vulnerable |
| Ubuntu | cmark-gfm | 24.04 | 0.29.0.gfm.6-6build1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | cmark-gfm | source | sid | 0.29.0.gfm.13-1 | not yet assigned | Not reported | [1033110] |
| Debian | cmark-gfm | source | forky | 0.29.0.gfm.13-1 | not yet assigned | Not reported | [1033110] |
| Debian | cmark-gfm | source | trixie | 0.29.0.gfm.13-1 | not yet assigned | Not reported | [1033110] |
| Debian | cmark-gfm | source | bookworm | (unfixed) | not yet assigned | Not reported | [1033110] |
| Debian | python-cmarkgfm | source | sid | 2024.11.20-1 | not yet assigned | Not reported | [1033111] |
| Debian | python-cmarkgfm | source | forky | 2024.11.20-1 | not yet assigned | Not reported | [1033111] |
| Debian | python-cmarkgfm | source | trixie | 2024.11.20-1 | not yet assigned | Not reported | [1033111] |
| Debian | python-cmarkgfm | source | bookworm | (unfixed) | not yet assigned | Not reported | [1033111] |
| Debian | r-cran-commonmark | source | sid | 1.9.0-1 | not yet assigned | Not reported | [1033112] |
| Debian | r-cran-commonmark | source | forky | 1.9.0-1 | not yet assigned | Not reported | [1033112] |
| Debian | r-cran-commonmark | source | trixie | 1.9.0-1 | not yet assigned | Not reported | [1033112] |
| Debian | r-cran-commonmark | source | bookworm | (unfixed) | not yet assigned | Not reported | [1033112] |
| Debian | ruby-commonmarker | source | sid | 0.23.10-1 | not yet assigned | Not reported | [1033113] |
| Debian | ruby-commonmarker | source | forky | 0.23.10-1 | not yet assigned | Not reported | [1033113] |
| Debian | ruby-commonmarker | source | trixie | 0.23.10-1 | not yet assigned | Not reported | [1033113] |
| Debian | ruby-commonmarker | source | bookworm | (unfixed) | not yet assigned | Not reported | [1033113] |
[Debian bug #1033110][Debian bug #1033111][Debian bug #1033112][Debian bug #1033113]
Notes
[bookworm] cmark-gfm: Minor issue [bookworm] python-cmarkgfm: Minor issue [bookworm] r-cran-commonmark: Minor issue [bookworm] ruby-commonmarker: Minor issue
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.