cve.bz

CVE-2022-39209 Inefficient Algorithmic Complexity

6.5 mediumEPSS 2.3%Fix available

Medium (6.5). EPSS 2.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
2.3% (unchanged from 2.3% a week ago; 2.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 84th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-407 Inefficient Algorithmic Complexity
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-39209 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-39209?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-39209?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-39209 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
github:cmark-gfmbefore 0.29.0.gfm.6
fedoraproject:fedora35
fedoraproject:fedora36
fedoraproject:fedora37

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12python-cmarkgfm, ruby-commonmarkerno fix listedDEBIAN-CVE-2022-39209
Debian12, 13, 14cmark-gfm0.29.0.gfm.6-2DEBIAN-CVE-2022-39209
Debian12, 13, 14ghostwriter2.1.6+ds-1DEBIAN-CVE-2022-39209
Debian12, 13, 14r-cran-commonmark1.8.1-1DEBIAN-CVE-2022-39209
Debian13, 14python-cmarkgfm2024.11.20-1DEBIAN-CVE-2022-39209
Debian13, 14ruby-commonmarker0.23.10-1DEBIAN-CVE-2022-39209
UbuntuPro:20.04:LTScmark-gfm0.29.0.gfm.0-4ubuntu0.1~esm1UBUNTU-CVE-2022-39209 USN-7319-1
UbuntuPro:22.04:LTScmark-gfm0.29.0.gfm.3-3ubuntu0.1~esm1UBUNTU-CVE-2022-39209 USN-7319-1
UbuntuPro:24.04:LTScmark-gfm0.29.0.gfm.6-6ubuntu0.24.04.1~esm1USN-7319-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat 3scale API Management Platform 2commonmarkerNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-39209.

Attack patterns (CAPEC)

  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON