GHSA-7vh7-fw88-wj87 Several quadratic complexity bugs may lead to denial of service in Commonmarker
Attackers can cause denial of service in applications using Commonmarker by exploiting quadratic complexity bugs in the underlying cmark-gfm library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is GHSA-7vh7-fw88-wj87?
GHSA-7vh7-fw88-wj87 is a denial of service vulnerability in commonmarker, published on 8 Aug 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Impact
Several quadratic complexity bugs in commonmarker's underlying cmark-gfm library may lead to unbounded resource exhaustion and subsequent denial of service.
The following vulnerabilities were addressed:
For more information, consult the release notes for version 0.29.0.gfm.12.
Mitigation
Users are advised to upgrade to commonmarker version 0.23.10.
Which versions are affected by GHSA-7vh7-fw88-wj87?
2 open source packages ship an affected version, including commonmarker.
| Package | Affected | Fixed in |
|---|---|---|
commonmarker RubyGems | All versions | 0.23.10 |
commonmarker RubyGems | All versions | 0.23.10 |
How do I fix GHSA-7vh7-fw88-wj87?
Upgrade commonmarker to 0.23.10 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is GHSA-7vh7-fw88-wj87 being exploited?
There is no known exploitation of GHSA-7vh7-fw88-wj87 in the wild and no public exploit code.