CVE-2021-40660 json
Regular expression denial of service in Delight Nashorn Sandbox
published 2022-06-14 4 y ago modified 2026-06-17 4 mo ago also GHSA-38j3-6fm8-pfgc , EUVD-2022-5900
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 64%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.javadelight:delight-nashorn-sandbox 0.3.1
Exploit prediction
1.04% chance of exploitation in the next 30 days, higher than 64% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/javadelight/delight-nashorn-sandbox/issues/117 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.javadelight:delight-nashorn-sandbox | <0.3.1 |
0.3.1 |
Classification
- Weakness
-
- CWE-1333 Inefficient Regular Expression Complexity
References
-
github.com
/javadelight/delight-nashorn-sandbox/pull/139
web
-
github.com
/javadelight/delight-nashorn-sandbox/commit/b899b8ecad46090fdc042ac7683e1164114a69de
web
-
github.com
/javadelight/delight-nashorn-sandbox/issues/117
web, exploit, issue-tracking, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-40660
advisory
-
github.com
/javadelight/delight-nashorn-sandbox/issues/117#issuecomment-1564983722
web
-
github.com
/javadelight/delight-nashorn-sandbox
package
-
github.com
/javadelight/delight-nashorn-sandbox/releases/tag/0.3.1
web
Sources
- CVE List CVE-2021-40660
- GitHub Advisory GHSA-38j3-6fm8-pfgc
- NVD CVE-2021-40660
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.