
CVE catalog
CVE-2022-39209
cmark-gfm vulnerabilities
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 2.15% · Oct 25, 2026
cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C. In versions prior to 0.29.0.gfm.6 a polynomial time complexity issue in cmark-gfm's autolink extension may lead to unbounded resource exhaustion and subsequent denial of service. Users may verify the patch by running `python3 -c 'print("![l"* 100000 + "\n")' | ./cmark-gfm -e autolink`, which will resource exhaust on unpatched cmark-gfm but render correctly on patched cmark-gfm. This vulnerability has been patched in 0.29.0.gfm.6. Users are advised to upgrade. Users unable to upgrade should disable the use of the autolink extension.
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 | fixed |
| Debian | ghostwriter | sid | 26.04.0+ds-1 | fixed |
| Debian | ghostwriter | forky | 26.04.0+ds-1 | fixed |
| Debian | ghostwriter | trixie | 25.04.0+ds-1 | fixed |
| Debian | ghostwriter | bookworm | 2.1.6+ds-2 | fixed |
| 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 | fixed |
| 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 | python-cmarkgfm | 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 |
| Ubuntu | cmark-gfm | pro | 0.29.0.gfm.6-6 | vulnerable |
| Ubuntu | cmark-gfm | pro | 0.29.0.gfm.6-6build1 | vulnerable |
| Ubuntu | cmark-gfm | pro | 0.29.0.gfm.6-6ubuntu0.24.04.1~esm1 | fixed |
| Ubuntu | cmark-gfm | pro | 0.29.0.gfm.0-6 | vulnerable |
| Ubuntu | cmark-gfm | pro | 0.29.0.gfm.2-1 | vulnerable |
| Ubuntu | cmark-gfm | pro | 0.29.0.gfm.2-1+really.0.29.0.gfm.0ubuntu1 | vulnerable |
| Ubuntu | cmark-gfm | pro | 0.29.0.gfm.2-2 | vulnerable |
| Ubuntu | cmark-gfm | pro | 0.29.0.gfm.3-3 | vulnerable |
| Ubuntu | cmark-gfm | pro | 0.29.0.gfm.3-3ubuntu0.1~esm1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | cmark-gfm | source | sid | 0.29.0.gfm.6-2 | not yet assigned | Not reported | [1020588] |
| Debian | cmark-gfm | source | forky | 0.29.0.gfm.6-2 | not yet assigned | Not reported | [1020588] |
| Debian | cmark-gfm | source | trixie | 0.29.0.gfm.6-2 | not yet assigned | Not reported | [1020588] |
| Debian | cmark-gfm | source | bookworm | 0.29.0.gfm.6-2 | not yet assigned | Not reported | [1020588] |
| Debian | ghostwriter | source | sid | 2.1.6+ds-1 | unimportant | Not reported | Not reported |
| Debian | ghostwriter | source | forky | 2.1.6+ds-1 | unimportant | Not reported | Not reported |
| Debian | ghostwriter | source | trixie | 2.1.6+ds-1 | unimportant | Not reported | Not reported |
| Debian | ghostwriter | source | bookworm | 2.1.6+ds-1 | unimportant | Not reported | Not reported |
| Debian | python-cmarkgfm | source | sid | 2024.11.20-1 | not yet assigned | Not reported | [1034887] |
| Debian | python-cmarkgfm | source | forky | 2024.11.20-1 | not yet assigned | Not reported | [1034887] |
| Debian | python-cmarkgfm | source | trixie | 2024.11.20-1 | not yet assigned | Not reported | [1034887] |
| Debian | python-cmarkgfm | source | bookworm | (unfixed) | not yet assigned | Not reported | [1034887] |
| Debian | r-cran-commonmark | source | sid | 1.8.1-1 | not yet assigned | Not reported | Not reported |
| Debian | r-cran-commonmark | source | forky | 1.8.1-1 | not yet assigned | Not reported | Not reported |
| Debian | r-cran-commonmark | source | trixie | 1.8.1-1 | not yet assigned | Not reported | Not reported |
| Debian | r-cran-commonmark | source | bookworm | 1.8.1-1 | not yet assigned | Not reported | Not reported |
| Debian | ruby-commonmarker | source | sid | 0.23.10-1 | not yet assigned | Not reported | [1034888] |
| Debian | ruby-commonmarker | source | forky | 0.23.10-1 | not yet assigned | Not reported | [1034888] |
| Debian | ruby-commonmarker | source | trixie | 0.23.10-1 | not yet assigned | Not reported | [1034888] |
| Debian | ruby-commonmarker | source | bookworm | (unfixed) | not yet assigned | Not reported | [1034888] |
| 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 |
| Ubuntu | cmark-gfm | deb | pro | 0.29.0.gfm.6-6ubuntu0.24.04.1~esm1 | Not reported | USN-7319-1 | Not reported |
| Ubuntu | cmark-gfm | deb | pro | 0.29.0.gfm.3-3ubuntu0.1~esm1 | Not reported | UBUNTU-CVE-2022-39209 | Not reported |
[Debian bug #1020588][Debian bug #1034887][Debian bug #1034888]
Notes
[bookworm] cmark-gfm: Minor issue [bookworm] python-cmarkgfm: Minor issue [bookworm] ruby-commonmarker: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-cmarkgfm]Affected
Source package: [python-cmarkgfm]
Details (2)
0.8.0-3· amd64 · bookwormAffected
usn · python-cmarkgfm · debian · bookworm
0.8.0-3· arm64 · bookwormAffected
usn · python-cmarkgfm · debian · bookworm
- [ruby-commonmarker]Affected
Source package: [ruby-commonmarker]
Details (2)
0.23.6-1+b1· amd64 · bookwormAffected
usn · ruby-commonmarker · debian · bookworm
0.23.6-1+b1· arm64 · bookwormAffected
usn · ruby-commonmarker · debian · bookworm
- [cmark-gfm]Fixed
Details (2)
0.29.0.gfm.6-6· amd64 · bookwormFixed · Fixed:
0.29.0.gfm.6-2usn · cmark-gfm · debian · bookworm
0.29.0.gfm.6-6· arm64 · bookwormFixed · Fixed:
0.29.0.gfm.6-2usn · cmark-gfm · debian · bookworm
- [ghostwriter]Fixed
Details (2)
2.1.6+ds-2· amd64 · bookwormFixed · Fixed:
2.1.6+ds-1usn · ghostwriter · debian · bookworm
2.1.6+ds-2· arm64 · bookwormFixed · Fixed:
2.1.6+ds-1usn · ghostwriter · debian · bookworm
- [libcmark-gfm0.29.0.gfm.6]Fixed
Source package: [cmark-gfm]
Details (2)
0.29.0.gfm.6-6· amd64 · bookwormFixed · Fixed:
0.29.0.gfm.6-2usn · cmark-gfm · debian · bookworm
0.29.0.gfm.6-6· arm64 · bookwormFixed · Fixed:
0.29.0.gfm.6-2usn · cmark-gfm · debian · bookworm
- [libcmark-gfm-dev]Fixed
Source package: [cmark-gfm]
Details (2)
0.29.0.gfm.6-6· amd64 · bookwormFixed · Fixed:
0.29.0.gfm.6-2usn · cmark-gfm · debian · bookworm
0.29.0.gfm.6-6· arm64 · bookwormFixed · Fixed:
0.29.0.gfm.6-2usn · cmark-gfm · debian · bookworm
Source package: [cmark-gfm]
Details (2)
0.29.0.gfm.6-6· amd64 · bookwormFixed · Fixed:
0.29.0.gfm.6-2usn · cmark-gfm · debian · bookworm
0.29.0.gfm.6-6· arm64 · bookwormFixed · Fixed:
0.29.0.gfm.6-2usn · cmark-gfm · debian · bookworm
- [libcmark-gfm-extensions-dev]Fixed
Source package: [cmark-gfm]
Details (2)
0.29.0.gfm.6-6· amd64 · bookwormFixed · Fixed:
0.29.0.gfm.6-2usn · cmark-gfm · debian · bookworm
0.29.0.gfm.6-6· arm64 · bookwormFixed · Fixed:
0.29.0.gfm.6-2usn · cmark-gfm · debian · bookworm
- [r-cran-commonmark]Fixed
Details (2)
1.8.1-1· amd64 · bookwormFixed · Fixed:
1.8.1-1usn · r-cran-commonmark · debian · bookworm
1.8.1-1· arm64 · bookwormFixed · Fixed:
1.8.1-1usn · r-cran-commonmark · debian · bookworm
Observed:
References
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-39209]
- [https://osv.dev/vulnerability/USN-7319-1]
- [https://security-tracker.debian.org/tracker/CVE-2022-39209]
- [https://ubuntu.com/security/notices/USN-7319-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2022/wid-sec-w-2022-1935.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Ubuntu Security Notices (USN)]