
CVE catalog
CVE-2023-26485
cmark-gfm vulnerabilities
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 1.03% · Oct 25, 2026
cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C. A polynomial time complexity issue in cmark-gfm may lead to unbounded resource exhaustion and subsequent denial of service. This CVE covers quadratic complexity issues when parsing text which leads with either large numbers of `_` characters. This issue has been addressed in version 0.29.0.gfm.10. Users are advised to upgrade. Users unable to upgrade should validate that their input comes from trusted sources. ### Impact A polynomial time complexity issue in cmark-gfm may lead to unbounded resource exhaustion and subsequent denial of service. ### Proof of concept ``` $ ~/cmark-gfm$ python3 -c 'pad = "_" * 100000; print(pad + "." + pad, end="")' | time ./build/src/cmark-gfm --to plaintext ``` Increasing the number 10000 in the above commands causes the running time to increase quadratically. ### Patches This vulnerability have been patched in 0.29.0.gfm.10. ### Note on cmark and cmark-gfm XXX: TBD [cmark-gfm](https://github.com/github/cmark-gfm) is a fork of [cmark](https://github.com/commonmark/cmark) that adds the GitHub Flavored Markdown extensions. The two codebases have diverged over time, but share a common core. These bugs affect both `cmark` and `cmark-gfm`. ### Credit We would like to thank @gravypod for reporting this vulnerability. ### References https://en.wikipedia.org/wiki/Time_complexity ### For more information If you have any questions or comments about this advisory: * Open an issue in [github/cmark-gfm](https://github.com/github/cmark-gfm)
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 | noble | Not reported | vulnerable |
| Ubuntu | python-cmarkgfm | noble | Not reported | vulnerable |
| Ubuntu | r-cran-commonmark | noble | Not reported | vulnerable |
| Ubuntu | ruby-commonmarker | noble | Not reported | vulnerable |
| Ubuntu | cmark-gfm | noble | 0.29.0.gfm.6-6ubuntu0.24.04.1~esm1 | fixed |
| Ubuntu | libcmark-gfm-dev | noble | 0.29.0.gfm.6-6ubuntu0.24.04.1~esm1 | fixed |
| Ubuntu | libcmark-gfm-extensions-dev | noble | 0.29.0.gfm.6-6ubuntu0.24.04.1~esm1 | fixed |
| Ubuntu | libcmark-gfm-extensions0.29.0.gfm.6 | noble | 0.29.0.gfm.6-6ubuntu0.24.04.1~esm1 | fixed |
| Ubuntu | libcmark-gfm0.29.0.gfm.6 | noble | 0.29.0.gfm.6-6ubuntu0.24.04.1~esm1 | fixed |
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 | [1034171] |
| Debian | cmark-gfm | source | forky | 0.29.0.gfm.13-1 | not yet assigned | Not reported | [1034171] |
| Debian | cmark-gfm | source | trixie | 0.29.0.gfm.13-1 | not yet assigned | Not reported | [1034171] |
| Debian | cmark-gfm | source | bookworm | (unfixed) | not yet assigned | Not reported | [1034171] |
| Debian | python-cmarkgfm | source | sid | 2024.11.20-1 | not yet assigned | Not reported | [1034172] |
| Debian | python-cmarkgfm | source | forky | 2024.11.20-1 | not yet assigned | Not reported | [1034172] |
| Debian | python-cmarkgfm | source | trixie | 2024.11.20-1 | not yet assigned | Not reported | [1034172] |
| Debian | python-cmarkgfm | source | bookworm | (unfixed) | not yet assigned | Not reported | [1034172] |
| Debian | r-cran-commonmark | source | sid | 1.9.1-1 | not yet assigned | Not reported | [1034173] |
| Debian | r-cran-commonmark | source | forky | 1.9.1-1 | not yet assigned | Not reported | [1034173] |
| Debian | r-cran-commonmark | source | trixie | 1.9.1-1 | not yet assigned | Not reported | [1034173] |
| Debian | r-cran-commonmark | source | bookworm | (unfixed) | not yet assigned | Not reported | [1034173] |
| Debian | ruby-commonmarker | source | sid | 0.23.10-1 | not yet assigned | Not reported | [1034174] |
| Debian | ruby-commonmarker | source | forky | 0.23.10-1 | not yet assigned | Not reported | [1034174] |
| Debian | ruby-commonmarker | source | trixie | 0.23.10-1 | not yet assigned | Not reported | [1034174] |
| Debian | ruby-commonmarker | source | bookworm | (unfixed) | not yet assigned | Not reported | [1034174] |
| Ubuntu | cmark-gfm | deb | noble | 0.29.0.gfm.6-6ubuntu0.24.04.1~esm1 | Not reported | Not reported | Not reported |
| Ubuntu | libcmark-gfm-dev | deb | noble | 0.29.0.gfm.6-6ubuntu0.24.04.1~esm1 | Not reported | Not reported | Not reported |
| Ubuntu | libcmark-gfm-extensions-dev | deb | noble | 0.29.0.gfm.6-6ubuntu0.24.04.1~esm1 | Not reported | Not reported | Not reported |
| Ubuntu | libcmark-gfm-extensions0.29.0.gfm.6 | deb | noble | 0.29.0.gfm.6-6ubuntu0.24.04.1~esm1 | Not reported | Not reported | Not reported |
| Ubuntu | libcmark-gfm0.29.0.gfm.6 | deb | noble | 0.29.0.gfm.6-6ubuntu0.24.04.1~esm1 | Not reported | Not reported | Not reported |
[Debian bug #1034171][Debian bug #1034172][Debian bug #1034173][Debian bug #1034174]
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.
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2023-26485]
- [https://security-tracker.debian.org/tracker/CVE-2023-26485]
- [https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-26485.json]
- [https://ubuntu.com/security/notices/USN-7319-1]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [Ubuntu Security Notices (USN)]