GHSA-636f-xm5j-pj9m Several quadratic complexity bugs may lead to denial of service in Commonmarker

Not scored Published

Quadratic complexity bugs in the Commonmarker library allow attackers to cause denial of service via resource exhaustion.

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

What is GHSA-636f-xm5j-pj9m?

GHSA-636f-xm5j-pj9m is a denial of service vulnerability in commonmarker, published on 24 Jan 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.7.

Mitigation

Users are advised to upgrade to commonmarker version 0.23.7.

Which versions are affected by GHSA-636f-xm5j-pj9m?

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

PackageAffectedFixed in
commonmarker RubyGemsAll versions0.23.7
commonmarker RubyGemsAll versions0.23.7

How do I fix GHSA-636f-xm5j-pj9m?

Upgrade commonmarker to 0.23.7 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-636f-xm5j-pj9m being exploited?

There is no known exploitation of GHSA-636f-xm5j-pj9m in the wild and no public exploit code.

Sources

Is GHSA-636f-xm5j-pj9m in your software?

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

Check your SBOMs for free