{"api_version":"1","generated_at":"2026-07-23T19:19:55+00:00","cve":"CVE-2022-39209","urls":{"html":"https://cve.report/CVE-2022-39209","api":"https://cve.report/api/cve/CVE-2022-39209.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-39209","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-39209"},"summary":{"title":"CVE-2022-39209","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-09-15 18:15:00","updated_at":"2023-11-07 03:50:00"},"problem_types":["CWE-407"],"metrics":[],"references":[{"url":"https://en.wikipedia.org/wiki/Time_complexity","name":"https://en.wikipedia.org/wiki/Time_complexity","refsource":"MISC","tags":[],"title":"Time complexity - Wikipedia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-cgh3-p57x-9q7q","name":"https://github.com/github/cmark-gfm/security/advisories/GHSA-cgh3-p57x-9q7q","refsource":"CONFIRM","tags":[],"title":"Unbounded resource exhaustion may lead to denial of service · Advisory · github/cmark-gfm · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/github/cmark-gfm/commit/9d57d8a23142b316282bdfc954cb0ecda40a8655","name":"https://github.com/github/cmark-gfm/commit/9d57d8a23142b316282bdfc954cb0ecda40a8655","refsource":"MISC","tags":[],"title":"Merge pull request from GHSA-cgh3-p57x-9q7q · github/cmark-gfm@9d57d8a · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JMGP65NANDVKPDMXMKYO2ZV2H2HZJY4P/","name":"FEDORA-2022-6bcee2cc93","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 36 Update: ghc-cmark-gfm-0.2.5-1.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UEAAAI4OULDYQ2TA3HOXH54PC3DCBFZS/","name":"FEDORA-2022-dc6d6d9d6c","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 37 Update: ghc-cmark-gfm-0.2.5-1.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JIUCZN3PEKUCT2JQYQTYOVIJG2KSD6G7/","name":"FEDORA-2022-f1aed93db8","refsource":"","tags":[],"title":"[SECURITY] Fedora 35 Update: ghc-cmark-gfm-0.2.5-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UEAAAI4OULDYQ2TA3HOXH54PC3DCBFZS/","name":"FEDORA-2022-dc6d6d9d6c","refsource":"","tags":[],"title":"[SECURITY] Fedora 37 Update: ghc-cmark-gfm-0.2.5-1.fc37 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JIUCZN3PEKUCT2JQYQTYOVIJG2KSD6G7/","name":"FEDORA-2022-f1aed93db8","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 35 Update: ghc-cmark-gfm-0.2.5-1.fc35 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JMGP65NANDVKPDMXMKYO2ZV2H2HZJY4P/","name":"FEDORA-2022-6bcee2cc93","refsource":"","tags":[],"title":"[SECURITY] Fedora 36 Update: ghc-cmark-gfm-0.2.5-1.fc36 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-39209","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-39209","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"39209","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"35","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"39209","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"36","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"39209","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"37","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2022","cve_id":"39209","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"github","cpe5":"cmark-gfm","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-39209","qid":"182768","title":"Debian Security Update for ghostwriterr-cran-commonmarkcmark-gfm (CVE-2022-39209)"},{"cve":"CVE-2022-39209","qid":"283285","title":"Fedora Security Update for ghc (FEDORA-2022-6bcee2cc93)"},{"cve":"CVE-2022-39209","qid":"283286","title":"Fedora Security Update for ghc (FEDORA-2022-f1aed93db8)"},{"cve":"CVE-2022-39209","qid":"283448","title":"Fedora Security Update for ghc (FEDORA-2022-dc6d6d9d6c)"},{"cve":"CVE-2022-39209","qid":"285321","title":"Fedora Security Update for ghostwriter (FEDORA-2023-d1e9e62a92)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2022-39209","STATE":"PUBLIC","TITLE":"Uncontrolled Resource Consumption in cmark-gfm"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"cmark-gfm","version":{"version_data":[{"version_value":"< 0.29.0.gfm.6"}]}}]},"vendor_name":"github"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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":{"cvss":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-400: Uncontrolled Resource Consumption"}]}]},"references":{"reference_data":[{"name":"https://github.com/github/cmark-gfm/security/advisories/GHSA-cgh3-p57x-9q7q","refsource":"CONFIRM","url":"https://github.com/github/cmark-gfm/security/advisories/GHSA-cgh3-p57x-9q7q"},{"name":"https://github.com/github/cmark-gfm/commit/9d57d8a23142b316282bdfc954cb0ecda40a8655","refsource":"MISC","url":"https://github.com/github/cmark-gfm/commit/9d57d8a23142b316282bdfc954cb0ecda40a8655"},{"name":"https://en.wikipedia.org/wiki/Time_complexity","refsource":"MISC","url":"https://en.wikipedia.org/wiki/Time_complexity"},{"refsource":"FEDORA","name":"FEDORA-2022-6bcee2cc93","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JMGP65NANDVKPDMXMKYO2ZV2H2HZJY4P/"},{"refsource":"FEDORA","name":"FEDORA-2022-f1aed93db8","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JIUCZN3PEKUCT2JQYQTYOVIJG2KSD6G7/"},{"refsource":"FEDORA","name":"FEDORA-2022-dc6d6d9d6c","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UEAAAI4OULDYQ2TA3HOXH54PC3DCBFZS/"}]},"source":{"advisory":"GHSA-cgh3-p57x-9q7q","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2022-09-15 18:15:00","lastModifiedDate":"2023-11-07 03:50:00","problem_types":["CWE-407"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":6.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:github:cmark-gfm:*:*:*:*:*:*:*:*","versionEndExcluding":"0.29.0.gfm.6","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}