Skip to content
Fencer Vulns
high 7.5

CVE-2022-39209 json

Uncontrolled Resource Consumption in cmark-gfm

published 2022-09-15 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-41748

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.2%
EPSS 2.2% chance of exploitation in 30 days, percentile 82%
public exploits
0
none known

Summary

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.

Patch / fix

  • github cmark-gfm 0.29.0.gfm.6
  • cmark-gfm Debian 14, Debian 13, Debian 12 0.29.0.gfm.6-2
  • ghostwriter Debian 14, Debian 13, Debian 12 2.1.6+ds-1
  • python-cmarkgfm Debian 14, Debian 13 2024.11.20-1
  • r-cran-commonmark Debian 14, Debian 13, Debian 12 1.8.1-1
  • ruby-commonmarker Debian 14, Debian 13 0.23.10-1

debian advisories DEBIAN-CVE-2022-39209

  • cmark-gfm Ubuntu Pro 20.04 LTS 0.29.0.gfm.0-4ubuntu0.1~esm1
  • cmark-gfm Ubuntu Pro 22.04 LTS 0.29.0.gfm.3-3ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2022-39209

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-39209 updated cvss 6.5

cmark-gfm: Unbounded resource exhaustion may lead to denial of service

  • Red Hat 3scale API Management Platform 2 commonmarker commonmarker
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
18 mo ago

Exploit prediction

2.15% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

  • github cmark-gfm

Classification

Weakness
  • CWE-400 Uncontrolled Resource Consumption
  • CWE-407 Inefficient Algorithmic Complexity

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.