{"id":"CVE-2023-28626","aliases":["CVE-2023-28626","GHSA-8hqf-xjwp-p67v"],"related":[],"kind":"vulnerability","state":"published","title":"Quadratic runtime when parsing Markdown in comrak","summary":"comrak is a CommonMark + GFM compatible Markdown parser and renderer written in rust. A range of quadratic parsing issues are present in Comrak. These can be used to craft denial-of-service attacks on services that use Comrak to parse Markdown. This issue has been addressed in version 0.17.0. Users are advised to upgrade. There are no known workarounds for this vulnerability. This issue is also tracked as `GHSL-2023-047`","summarySource":"cvelist","descriptions":[{"lang":"en","text":"comrak is a CommonMark + GFM compatible Markdown parser and renderer written in rust. A range of quadratic parsing issues are present in Comrak. These can be used to craft denial-of-service attacks on services that use Comrak to parse Markdown. This issue has been addressed in version 0.17.0. Users are advised to upgrade. There are no known workarounds for this vulnerability. This issue is also tracked as `GHSL-2023-047`","source":"cvelist"},{"lang":"en","text":"### Impact\nA range of quadratic parsing issues from `cmark`/`cmark-gfm` are also present in Comrak. These can be used to craft denial-of-service attacks on services that use Comrak to parse Markdown.\n\n### Patches\n0.17.0 contains fixes to known quadratic parsing issues.\n\n### Workarounds\n\nn/a\n\n### References\n\n* https://github.com/commonmark/cmark/issues/255\n* https://github.com/commonmark/cmark/issues/389\n* https://github.com/commonmark/cmark/issues/373\n* https://github.com/commonmark/cmark/issues/299\n* https://github.com/commonmark/cmark/issues/388\n* https://github.com/commonmark/cmark/issues/284\n* https://github.com/commonmark/cmark/issues/218\n* https://github.com/commonmark/cmark/pull/232\n* https://github.com/github/cmark-gfm/blob/c32ef78bae851cb83b7ad52d0fbff880acdcd44a/test/pathological_tests.py#L63-L65\n* https://github.com/github/cmark-gfm/blob/c32ef78bae851cb83b7ad52d0fbff880acdcd44a/test/pathological_tests.py#L87-L89","format":"markdown","source":"ghsa"}],"published":"2023-03-28T14:40:29.000Z","modified":"2026-06-17T05:48:25.207Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":"< 0.17.0","status":"affected"}],"vendor":"kivikakk","product":"comrak","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.17.0"}],"ecosystem":"crates.io","package":"comrak","purl":"pkg:cargo/comrak","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.17.0"}],"vendor":"comrak_project","product":"comrak","cpe":"cpe:2.3:a:comrak_project:comrak:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/kivikakk/comrak/security/advisories/GHSA-8hqf-xjwp-p67v","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/kivikakk/comrak/commit/ce795b7f471b01589f842dc09af38b025701178d","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PTWZWCT7KCX2KTXTLPUYZ3EHOONG4X46/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OUYME2VA555X6567H7ORIJQFN4BVGT6N/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VQ3UBC7LE4VPCMZBTADIBL353CH7CPVV/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-28626","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/commonmark/cmark/issues/389","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/commonmark/cmark/issues/388","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/commonmark/cmark/issues/373","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/commonmark/cmark/issues/299","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/commonmark/cmark/issues/284","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/commonmark/cmark/issues/255","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/commonmark/cmark/issues/218","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/commonmark/cmark/pull/232","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/github/cmark-gfm/blob/c32ef78bae851cb83b7ad52d0fbff880acdcd44a/test/pathological_tests.py#L63-L65","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/github/cmark-gfm/blob/c32ef78bae851cb83b7ad52d0fbff880acdcd44a/test/pathological_tests.py#L87-L89","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/kivikakk/comrak","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/kivikakk/comrak/releases/tag/0.17.0","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OUYME2VA555X6567H7ORIJQFN4BVGT6N","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PTWZWCT7KCX2KTXTLPUYZ3EHOONG4X46","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VQ3UBC7LE4VPCMZBTADIBL353CH7CPVV","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-02-18T19:02:57.336Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-28626","url":"https://www.cve.org/CVERecord?id=CVE-2023-28626","licence":"CVE Terms of Use","modified":"2025-02-18T19:03:27.555Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8hqf-xjwp-p67v","url":"https://github.com/advisories/GHSA-8hqf-xjwp-p67v","licence":"CC-BY-4.0","modified":"2023-11-08T04:12:12.562Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-28626","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-28626","licence":"Public domain","modified":"2026-06-17T05:48:25.207Z"}],"updatedAt":"2026-11-25T22:58:22.759Z","epss":{"score":0.0112,"percentile":0.67079,"date":"2026-12-01T12:00:22.000Z"}}