First published: Thu Sep 15 2022(Updated: )
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.
Credit: security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
cmark-gfm | <0.29.0.gfm.6 | |
Fedora | =35 | |
Fedora | =36 | |
Fedora | =37 | |
debian/cmark-gfm | <=0.29.0.gfm.0-6 | 0.29.0.gfm.6-6 0.29.0.gfm.13-4 |
debian/ghostwriter | <=1.8.1-2 | 2.1.6+ds-2 24.12.0+ds-1 24.12.2+ds-1 |
debian/python-cmarkgfm | <=0.4.2-1<=0.8.0-3 | |
debian/r-cran-commonmark | <=1.7-2 | 1.8.1-1 1.9.2-2 |
debian/ruby-commonmarker | <=0.21.0-1<=0.23.6-1<=0.23.10-1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2022-39209 is a vulnerability in cmark-gfm, GitHub's fork of cmark, which could lead to unbounded resource exhaustion and denial of service.
The severity of CVE-2022-39209 is high with a severity score of 6.5.
CVE-2022-39209 affects cmark-gfm versions prior to 0.29.0.gfm.6 and may lead to unbounded resource exhaustion and subsequent denial of service.
You can verify if your version of cmark-gfm is affected by CVE-2022-39209 by checking the patch version. Versions prior to 0.29.0.gfm.6 are affected.
To fix CVE-2022-39209, you should update cmark-gfm to version 0.29.0.gfm.6 or newer.