CVE-2020-7760
Codemirror vulnerability
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|/*.*?*/)*
Affected products
Codemirror, Application Express, Enterprise Manager Express User Interface, Essbase, Hyperion Data Relationship Management, Spatial Studio. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Codemirror runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/codemirror/CodeMirror/commit/55d0333907117c9231ffdf555ae8824705993bbb · Patch
- www.oracle.com//security-alerts/cpujul2021.html · Patch
- www.oracle.com/security-alerts/cpuApr2021.html · Patch
- www.oracle.com/security-alerts/cpuapr2022.html · Patch
- snyk.io/vuln/SNYK-JAVA-ORGAPACHEMARMOTTAWEBJARS-1024450 · Exploit
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1024449 · Exploit
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1024445 · Exploit
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBCODEMIRROR-1024448 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2020-7760
- cve.org/CVERecord?id=CVE-2020-7760
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.