GitHub Advisoryadvisory · RubyGems

GHSA-4qw4-jpp4-8gvp Unbounded resource exhaustion in cmark-gfm autolink extension may lead to denial of service

MEDIUM Published 2022-09-21 Modified 2022-09-21 Official page ↗
Ecosystem
RubyGems
Packages
commonmarker
Severity
Moderate
Weaknesses
CWE-400
Reviewed
2022-09-21

Affected packages

• RubyGems commonmarker: < 0.23.6 → fixed in 0.23.6

Description

Impact CommonMarker uses `cmark-gfm` for rendering Github Flavored Markdown. A polynomial time complexity issue in cmark-gfm's autolink extension may lead to unbounded resource exhaustion and subsequent denial of service. Patches This vulnerability has been patched in the following CommonMarker release: • v0.23.6 Workarounds Disable use of the autolink extension. References https://github.com/gjtorikian/commonmarker/pull/190 https://github.com/github/cmark-gfm/security/advisories/GHSA-cgh3-p57x-9q7q https://en.wikipedia.org/wiki/Time_complexity For more information If you have any questions or comments about this advisory: • Open an issue in github/cmark-gfm Acknowledgements We would like to thank Legit Security for reporting this vulnerability.

Related

Weakness · CWE (1)

  • CWE-400 Uncontrolled Resource Consumption weakness

References