GHSA-48wp-p9qv-4j64 Commonmarker vulnerable to to several quadratic complexity bugs that may lead to denial of service

Not scored Published

Attackers can cause denial of service in applications using commonmarker by submitting crafted input that triggers quadratic complexity bugs.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-48wp-p9qv-4j64?

GHSA-48wp-p9qv-4j64 is a denial of service vulnerability in commonmarker, published on 11 Apr 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.23.0.gfm.10 and 0.23.0.gfm.11.

Mitigation

Users are advised to upgrade to commonmarker version 0.23.9.

Which versions are affected by GHSA-48wp-p9qv-4j64?

2 open source packages ship an affected version, including commonmarker.

PackageAffectedFixed in
commonmarker RubyGemsAll versions0.23.9
commonmarker RubyGemsAll versions0.23.9

How do I fix GHSA-48wp-p9qv-4j64?

Upgrade commonmarker to 0.23.9 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-48wp-p9qv-4j64 being exploited?

There is no known exploitation of GHSA-48wp-p9qv-4j64 in the wild and no public exploit code.

Sources

Is GHSA-48wp-p9qv-4j64 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free