Skip to content
OpenAdvisories
Medium GHSA-48wp-p9qv-4j64

Commonmarker vulnerable to to several quadratic complexity bugs that may lead to denial of service

Published Apr 11, 2023 · Updated Dec 4, 2024 · Assigned by GHSA

Description

## Impact

Several quadratic complexity bugs in commonmarker's underlying [`cmark-gfm`](https://github.com/github/cmark-gfm) library may lead to unbounded resource exhaustion and subsequent denial of service.

The following vulnerabilities were addressed:

* [CVE-2023-24824](https://github.com/github/cmark-gfm/security/advisories/GHSA-66g8-4hjf-77xh)
* [CVE-2023-26485](https://github.com/github/cmark-gfm/security/advisories/GHSA-r8vr-c48j-fcc5)

For more information, consult the release notes for version [`0.23.0.gfm.10`](https://github.com/github/cmark-gfm/releases/tag/0.29.0.gfm.10) and [`0.23.0.gfm.11`](https://github.com/github/cmark-gfm/releases/tag/0.29.0.gfm.11).

## Mitigation

Users are advised to upgrade to commonmarker version [`0.23.9`](https://rubygems.org/gems/commonmarker/versions/0.23.9).

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems commonmarker < 0.23.9 0.23.9 GHSA-48wp-p9qv-4j64

References