CVE-2022-39209: cmark-gfm - Denial of Service
- Cve: CVE-2022-39209
- Name: cmark-gfm - Denial of Service
- 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.
- Impact: Attackers can cause resource exhaustion leading to denial of service by exploiting the autolink extension with crafted input.
- Remediation: Upgrade to version 0.29.0.gfm.6 or later. If unable to upgrade, disable the autolink extension.
- Vulnerability type: denial_of_service
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.02295
- Epss percentile: 0.83704
- Assignee: [email protected]
- Published at: 2022-09-15T18:15:12Z
- Age in days: 1531
- Modified at: 2026-06-17T04:57:55Z
- Patch available: yes
- References total: 6
- Products total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-39209
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-400 | Uncontrolled Resource Consumption |
| CWE-407 | Inefficient Algorithmic Complexity |
Hackerone
- Reports: 2
- Rank: 3806
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| github:cmark-gfm | < 0.29.0.gfm.6 | no | nvd | /v1/products/github/cmark-gfm |
| fedoraproject:fedora | = 37, = 36, = 35 | no | nvd | /v1/products/fedoraproject/fedora |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Hackerone reports: 2
- Exposed hosts: 49161
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since