CVE-2021-40895 Denial of service in n/a

High 7.5 Published Updated

Attackers can cause denial of service in applications using todo-regex by submitting crafted invalid TODO statements that trigger excessive CPU usage.

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

What is CVE-2021-40895?

CVE-2021-40895 is a high-severity denial of service vulnerability in n/a, published on 27 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A Regular Expression Denial of Service (ReDOS) vulnerability was discovered in todo-regex v0.1.1 when matching crafted invalid TODO statements.

Weakness: CWE-1333

Which versions are affected by CVE-2021-40895?

It affects 1 product.

Products include Todo-Regex Project Todo-Regex.

How do I fix CVE-2021-40895?

No fix has been published for CVE-2021-40895 yet. Limit exposure of the affected software until one is available.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2021-40895 being exploited?

There is no known exploitation of CVE-2021-40895 in the wild and no public exploit code.

Sources

Also known as GHSA-8g46-9547-67wj.

Is CVE-2021-40895 in your software?

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

Check your SBOMs for free