# CVE-2022-39209: cmark-gfm: cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C

CVE-2022-39209 is fixed in 9 products on 1 platform, first by DEBIAN-CVE-2022-39209, released September 15, 2022. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2022-39209
- Priority: Routine
- CVSS: 6.5 (medium)
- EPSS: 0.0215
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Sep 15, 2022

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | cmark-gfm Debian 12.15 (bookworm) | 0.29.0.gfm.6-2 | [DEBIAN-CVE-2022-39209](https://patchblox.com/security/data/fix/linux/debian-cve-2022-39209.md) | Sep 15, 2022 |
| Linux | cmark-gfm Debian 13.5 (trixie) | 0.29.0.gfm.6-2 | [DEBIAN-CVE-2022-39209](https://patchblox.com/security/data/fix/linux/debian-cve-2022-39209.md) | Sep 15, 2022 |
| Linux | cmark-gfm Debian 14 | 0.29.0.gfm.6-2 | [DEBIAN-CVE-2022-39209](https://patchblox.com/security/data/fix/linux/debian-cve-2022-39209.md) | Sep 15, 2022 |
| Linux | cmark-gfm Ubuntu 20.04 LTS (focal) | 0.29.0.gfm.0-4ubuntu0.1~esm1 | [cmark-gfm 0.29.0.gfm.0-4ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-cmark-gfm-0.29.0.gfm.0-4ubuntu0.1-esm1.md) | Mar 31, 2023 |
| Linux | cmark-gfm Ubuntu 22.04.1 LTS (jammy) | 0.29.0.gfm.3-3ubuntu0.1~esm1 | [cmark-gfm 0.29.0.gfm.3-3ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-cmark-gfm-0.29.0.gfm.3-3ubuntu0.1-esm1.md) | Mar 31, 2023 |
| Linux | ghostwriter Debian 12.15 (bookworm) | 2.1.6+ds-1 | [DEBIAN-CVE-2022-39209](https://patchblox.com/security/data/fix/linux/debian-cve-2022-39209.md) | Sep 15, 2022 |
| Linux | ghostwriter Debian 13.5 (trixie) | 2.1.6+ds-1 | [DEBIAN-CVE-2022-39209](https://patchblox.com/security/data/fix/linux/debian-cve-2022-39209.md) | Sep 15, 2022 |
| Linux | ghostwriter Debian 14 | 2.1.6+ds-1 | [DEBIAN-CVE-2022-39209](https://patchblox.com/security/data/fix/linux/debian-cve-2022-39209.md) | Sep 15, 2022 |
| Linux | libcmark-gfm-extensions0 Ubuntu 20.04 LTS (focal) | 0.29.0.gfm.0-4ubuntu0.1~esm1 | [libcmark-gfm-extensions0 0.29.0.gfm.0-4ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libcmark-gfm-extensions0-0.29.0.gfm.0-4ubuntu0.1-esm1.md) | Mar 31, 2023 |
| Linux | libcmark-gfm-extensions0.29.0.gfm.3 Ubuntu 22.04.1 LTS (jammy) | 0.29.0.gfm.3-3ubuntu0.1~esm1 | [libcmark-gfm-extensions0.29.0.gfm.3 0.29.0.gfm.3-3ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libcmark-gfm-extensions0.29.0.gfm.3-0.29.0.gfm.3-3ubuntu0.1-esm1.md) | Mar 31, 2023 |
| Linux | libcmark-gfm0 Ubuntu 20.04 LTS (focal) | 0.29.0.gfm.0-4ubuntu0.1~esm1 | [libcmark-gfm0 0.29.0.gfm.0-4ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libcmark-gfm0-0.29.0.gfm.0-4ubuntu0.1-esm1.md) | Mar 31, 2023 |
| Linux | libcmark-gfm0.29.0.gfm.3 Ubuntu 22.04.1 LTS (jammy) | 0.29.0.gfm.3-3ubuntu0.1~esm1 | [libcmark-gfm0.29.0.gfm.3 0.29.0.gfm.3-3ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libcmark-gfm0.29.0.gfm.3-0.29.0.gfm.3-3ubuntu0.1-esm1.md) | Mar 31, 2023 |
| Linux | python-cmarkgfm Debian 13.5 (trixie) | 2024.11.20-1 | [DEBIAN-CVE-2022-39209](https://patchblox.com/security/data/fix/linux/debian-cve-2022-39209.md) | Sep 15, 2022 |
| Linux | python-cmarkgfm Debian 14 | 2024.11.20-1 | [DEBIAN-CVE-2022-39209](https://patchblox.com/security/data/fix/linux/debian-cve-2022-39209.md) | Sep 15, 2022 |
| Linux | r-cran-commonmark Debian 12.15 (bookworm) | 1.8.1-1 | [DEBIAN-CVE-2022-39209](https://patchblox.com/security/data/fix/linux/debian-cve-2022-39209.md) | Sep 15, 2022 |
| Linux | r-cran-commonmark Debian 13.5 (trixie) | 1.8.1-1 | [DEBIAN-CVE-2022-39209](https://patchblox.com/security/data/fix/linux/debian-cve-2022-39209.md) | Sep 15, 2022 |
| Linux | r-cran-commonmark Debian 14 | 1.8.1-1 | [DEBIAN-CVE-2022-39209](https://patchblox.com/security/data/fix/linux/debian-cve-2022-39209.md) | Sep 15, 2022 |
| Linux | ruby-commonmarker Debian 13.5 (trixie) | 0.23.10-1 | [DEBIAN-CVE-2022-39209](https://patchblox.com/security/data/fix/linux/debian-cve-2022-39209.md) | Sep 15, 2022 |
| Linux | ruby-commonmarker Debian 14 | 0.23.10-1 | [DEBIAN-CVE-2022-39209](https://patchblox.com/security/data/fix/linux/debian-cve-2022-39209.md) | Sep 15, 2022 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
