CVE-2020-7760 Regular Expression Denial of Service (ReDoS)
An attacker can cause a denial of service in CodeMirror via a specially crafted input triggering a regular expression denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-7760?
CVE-2020-7760 is a medium-severity denial of service vulnerability in Oracle Essbase, published on 30 Oct 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
This affects the package codemirror before 5.58.2; the package org.apache.marmotta.webjars:codemirror before 5.58.2. The vulnerable regular expression is located in https://github.com/codemirror/CodeMirror/blob/cdb228ac736369c685865b122b736cd0d397836c/mode/javascript/javascript.jsL129. The ReDOS vulnerability of the regex is mainly due to the sub-pattern (s|/*.*?*/)*
Weakness: CWE-400
Which versions are affected by CVE-2020-7760?
2 open source packages ship an affected version, including codemirror. It affects 6 products.
| Package | Affected | Fixed in |
|---|---|---|
codemirror npm | All versions | 5.58.2 |
codemirror npm | All versions | 5.58.2 |
Products include Codemirror Codemirror, Oracle Application Express, Oracle Enterprise Manager Express User Interface, Oracle Essbase, Oracle Hyperion Data Relationship Management, Oracle Spatial Studio.
How do I fix CVE-2020-7760?
Upgrade codemirror to 5.58.2 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-2020-7760 being exploited?
There is no known exploitation of CVE-2020-7760 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2020-7760, DSA-4789-1, GHSA-4gw3-8f77-f72c, UBUNTU-CVE-2020-7760.