SecurityContext

CVE-2022-39209: cmark-gfm - Denial of Service

  • Cve: CVE-2022-39209
  • Name: cmark-gfm - Denial of Service
  • 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.
  • Impact: Attackers can cause resource exhaustion leading to denial of service by exploiting the autolink extension with crafted input.
  • Remediation: Upgrade to version 0.29.0.gfm.6 or later. If unable to upgrade, disable the autolink extension.
  • Vulnerability type: denial_of_service
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.02295
  • Epss percentile: 0.83704
  • Assignee: [email protected]
  • Published at: 2022-09-15T18:15:12Z
  • Age in days: 1531
  • Modified at: 2026-06-17T04:57:55Z
  • Patch available: yes
  • References total: 6
  • Products total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-39209
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: requirements

Cwe

IdName
CWE-400Uncontrolled Resource Consumption
CWE-407Inefficient Algorithmic Complexity

Hackerone

  • Reports: 2
  • Rank: 3806

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/github/cmark-gfm/commit/9d57d8a23142b316282bdfc954cb0ecda40a8655Patch, Third Party Advisory
https://en.wikipedia.org/wiki/Time_complexityThird Party Advisory
https://github.com/github/cmark-gfm/security/advisories/GHSA-cgh3-p57x-9q7qThird Party Advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JIUCZN3PEKUCT2JQYQTYOVIJG2KSD6G7/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JMGP65NANDVKPDMXMKYO2ZV2H2HZJY4P/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UEAAAI4OULDYQ2TA3HOXH54PC3DCBFZS/

Products

ProductAffectedPlatform boundSourcesUrl
github:cmark-gfm< 0.29.0.gfm.6nonvd/v1/products/github/cmark-gfm
fedoraproject:fedora= 37, = 36, = 35nonvd/v1/products/fedoraproject/fedora

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Hackerone reports: 2
  • Exposed hosts: 49161
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since