CVE-2022-39209 Uncontrolled Resource Consumption in cmark-gfm
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebian
Description
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.
Upgrade path
20 packages: 17 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/python-cmarkgfm(Debian 12) | = 0.8.0-3; = 2024.11.20-1; = 2025.10.22-1; = 2025.10.22-2 +1 more | No fix listed | No fix yet |
| debian/ruby-commonmarker(Debian 12) | = 0.23.6-1; = 0.23.9-1; = 0.23.10-1; = 2.8.3-1 +7 more | No fix listed | No fix yet |
| debian/cmark-gfm(Debian 12) | < 0.29.0.gfm.6-2 | 0.29.0.gfm.6-2 | Fixed |
| debian/cmark-gfm(Debian 13) | < 0.29.0.gfm.6-2 | 0.29.0.gfm.6-2 | Fixed |
| debian/cmark-gfm(Debian 14) | < 0.29.0.gfm.6-2 | 0.29.0.gfm.6-2 | Fixed |
| debian/ghostwriter(Debian 12) | < 2.1.6+ds-1 | 2.1.6+ds-1 | Fixed |
| debian/ghostwriter(Debian 13) | < 2.1.6+ds-1 | 2.1.6+ds-1 | Fixed |
| debian/ghostwriter(Debian 14) | < 2.1.6+ds-1 | 2.1.6+ds-1 | Fixed |
| debian/python-cmarkgfm(Debian 13) | < 2024.11.20-1 | 2024.11.20-1 | Fixed |
| debian/python-cmarkgfm(Debian 14) | < 2024.11.20-1 | 2024.11.20-1 | Fixed |
| debian/r-cran-commonmark(Debian 12) | < 1.8.1-1 | 1.8.1-1 | Fixed |
| debian/r-cran-commonmark(Debian 13) | < 1.8.1-1 | 1.8.1-1 | Fixed |
| debian/r-cran-commonmark(Debian 14) | < 1.8.1-1 | 1.8.1-1 | Fixed |
| debian/ruby-commonmarker(Debian 13) | < 0.23.10-1 | 0.23.10-1 | Fixed |
| debian/ruby-commonmarker(Debian 14) | < 0.23.10-1 | 0.23.10-1 | Fixed |
| GitHub cmark-gfm | < 0.29.0.gfm.6; = < 0.29.0.gfm.6 | 0.29.0.gfm.6 | Fixed |
| ubuntu/cmark-gfm(Ubuntu 22.04) | < 0.29.0.gfm.3-3ubuntu0.1~esm1 | 0.29.0.gfm.3-3ubuntu0.1~esm1 | Fixed |
| ubuntu/cmark-gfm(Ubuntu Pro 20.04) | < 0.29.0.gfm.0-4ubuntu0.1~esm1; = 0.28.3.gfm.20-3; = 0.29.0.gfm.0-3; = 0.29.0.gfm.0-4 | 0.29.0.gfm.0-4ubuntu0.1~esm1 | Fixed |
| ubuntu/cmark-gfm(Ubuntu Pro 22.04) | < 0.29.0.gfm.3-3ubuntu0.1~esm1; = 0.29.0.gfm.0-6; = 0.29.0.gfm.2-1; = 0.29.0.gfm.2-1+really.0.29.0.gfm.0ubuntu1 +2 more | 0.29.0.gfm.3-3ubuntu0.1~esm1 | Fixed |
| fedoraproject fedora | = 35; = 36; = 37 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| GitHub cmark-gfm | = < 0.29.0.gfm.6 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:22.04) | < 0.29.0.gfm.3-3ubuntu0.1~esm1 | 0.29.0.gfm.3-3ubuntu0.1~esm1 |
| GitHub cmark-gfm | < 0.29.0.gfm.6 | 0.29.0.gfm.6 |
| fedoraproject fedora | = 35 | No fix listed |
| fedoraproject fedora | = 36 | No fix listed |
| fedoraproject fedora | = 37 | No fix listed |
| debian/cmark-gfm(Debian:12) | < 0.29.0.gfm.6-2 | 0.29.0.gfm.6-2 |
| debian/cmark-gfm(Debian:14) | < 0.29.0.gfm.6-2 | 0.29.0.gfm.6-2 |
| debian/cmark-gfm(Debian:13) | < 0.29.0.gfm.6-2 | 0.29.0.gfm.6-2 |
| debian/ghostwriter(Debian:12) | < 2.1.6+ds-1 | 2.1.6+ds-1 |
| debian/ghostwriter(Debian:14) | < 2.1.6+ds-1 | 2.1.6+ds-1 |
| debian/ghostwriter(Debian:13) | < 2.1.6+ds-1 | 2.1.6+ds-1 |
| debian/python-cmarkgfm(Debian:12) | All versions | No fix listed |
| debian/python-cmarkgfm(Debian:14) | < 2024.11.20-1 | 2024.11.20-1 |
| debian/python-cmarkgfm(Debian:13) | < 2024.11.20-1 | 2024.11.20-1 |
| debian/r-cran-commonmark(Debian:12) | < 1.8.1-1 | 1.8.1-1 |
| debian/r-cran-commonmark(Debian:14) | < 1.8.1-1 | 1.8.1-1 |
| debian/r-cran-commonmark(Debian:13) | < 1.8.1-1 | 1.8.1-1 |
| debian/ruby-commonmarker(Debian:12) | All versions | No fix listed |
| debian/ruby-commonmarker(Debian:14) | < 0.23.10-1 | 0.23.10-1 |
| debian/ruby-commonmarker(Debian:13) | < 0.23.10-1 | 0.23.10-1 |
| ubuntu/cmark-gfm(Ubuntu:Pro:20.04) | < 0.29.0.gfm.0-4ubuntu0.1~esm1 | 0.29.0.gfm.0-4ubuntu0.1~esm1 |
| ubuntu/cmark-gfm(Ubuntu:Pro:20.04) | = 0.28.3.gfm.20-3 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:Pro:20.04) | = 0.29.0.gfm.0-3 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:Pro:20.04) | = 0.29.0.gfm.0-4 | No fix listed |
Show 20 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/cmark-gfm(Ubuntu:Pro:22.04) | < 0.29.0.gfm.3-3ubuntu0.1~esm1 | 0.29.0.gfm.3-3ubuntu0.1~esm1 |
| ubuntu/cmark-gfm(Ubuntu:Pro:22.04) | = 0.29.0.gfm.0-6 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:Pro:22.04) | = 0.29.0.gfm.2-1 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:Pro:22.04) | = 0.29.0.gfm.2-1+really.0.29.0.gfm.0ubuntu1 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:Pro:22.04) | = 0.29.0.gfm.2-2 | No fix listed |
| ubuntu/cmark-gfm(Ubuntu:Pro:22.04) | = 0.29.0.gfm.3-3 | No fix listed |
| debian/python-cmarkgfm(Debian:12) | = 0.8.0-3 | No fix listed |
| debian/python-cmarkgfm(Debian:12) | = 2024.11.20-1 | No fix listed |
| debian/python-cmarkgfm(Debian:12) | = 2025.10.22-1 | No fix listed |
| debian/python-cmarkgfm(Debian:12) | = 2025.10.22-2 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 0.23.10-1 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 0.23.6-1 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 0.23.9-1 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 2.10.0-1 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 2.10.0-2 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 2.10.1-1 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 2.8.3-1 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 2.8.3-2 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 2.8.3-3 | No fix listed |
| debian/ruby-commonmarker(Debian:12) | = 2.8.3-4 | No fix listed |
References
- Debian Security Tracker CVE-2022-39209 vendor-advisory
- github.com issue-tracking third-party-advisory
- github.com issue-tracking patch third-party-advisory
- en.wikipedia.org issue-tracking third-party-advisory
- FEDORA-2022-6bcee2cc93 vendor-advisory
- FEDORA-2022-f1aed93db8 vendor-advisory
- FEDORA-2022-dc6d6d9d6c vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- USN-7319-1 vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking