CVE-2021-40660 Regular expression denial of service in Delight Nashorn Sandbox

High 7.5 Published Updated

A ReDoS vulnerability in Delight Nashorn Sandbox allows attackers to cause a denial of service via crafted input.

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

What is CVE-2021-40660?

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

Official description

An issue was discovered in Delight Nashorn Sandbox 0.2.0. There is an ReDoS vulnerability that can be exploited to launching a denial of service (DoS) attack.

Weakness: CWE-1333

Which versions are affected by CVE-2021-40660?

2 open source packages ship an affected version, including org.javadelight:delight-nashorn-sandbox. It affects 1 product.

PackageAffectedFixed in
org.javadelight:delight-nashorn-sandbox MavenAll versions0.3.1
org.javadelight:delight-nashorn-sandbox MavenAll versions0.3.1

Products include Javadelight Nashorn Sandbox.

How do I fix CVE-2021-40660?

Upgrade org.javadelight:delight-nashorn-sandbox to 0.3.1 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 CVE-2021-40660 being exploited?

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

Sources

Also known as GHSA-38j3-6fm8-pfgc.

Is CVE-2021-40660 in your software?

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

Check your SBOMs for free