CVE-2022-39209
Uncontrolled Resource Consumption in cmark-gfm
Reported by github_m · Published September 15, 2022
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| github | cmark-gfm | < 0.29.0.gfm.6 |
| github | cmark-gfm | 0 |
Timeline
- Sep 15, 2022 CVE Published
- Sep 16, 2022 EPSS Score (30 in total, the first dated here)
- Dec 13, 2022 PoC Published
- Mar 20, 2026 Security Advisory
- Jun 17, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2022-39209
vulnetix vdb fixes CVE-2022-39209
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-39209/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2022-6bcee2cc93 vendor-advisory
- FEDORA-2022-f1aed93db8 vendor-advisory
- FEDORA-2022-dc6d6d9d6c vendor-advisory