Bugzilla – Bug 1207437
VUL-0: CVE-2023-22483: ghc-cmark-gfm: cmark-gfm: quadratic complexity bugs may lead to a denial of service
Last modified: 2023-02-07 16:50:06 UTC
CVE-2023-22483 cmark-gfm is GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C. Versions prior to 0.29.0.gfm.7 are subject to several polynomial time complexity issues in cmark-gfm that may lead to unbounded resource exhaustion and subsequent denial of service. Various commands, when piped to cmark-gfm with large values, cause the running time to increase quadratically. These vulnerabilities have been patched in version 0.29.0.gfm.7. References: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-22483 https://www.cve.org/CVERecord?id=CVE-2023-22483 https://github.com/github/cmark-gfm/security/advisories/GHSA-29g3-96g3-jg6c
Reported upstream at https://github.com/kivikakk/cmark-gfm-hs/issues/30. My preferred solution would be to un-bundle the C code from the Haskell library, if that is possible. Otherwise, we'll probably go for applying a patch to fix the issue.