CVE-2020-7760

NameCVE-2020-7760
DescriptionThis 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|/*.*?*/)*
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
ReferencesDSA-4789-1
NVD severitymedium

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
codemirror-js (PTS)stretch5.4.0-1fixed
buster5.43.0-1vulnerable
buster (security)5.43.0-1+deb10u1fixed
bullseye, sid5.58.2+~cs0.23.101-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
codemirror-jssourcestretch(not affected)
codemirror-jssourcebuster5.43.0-1+deb10u1DSA-4789-1
codemirror-jssource(unstable)5.58.2+~cs0.23.101-1

Notes

[stretch] - codemirror-js <not-affected> (Vulnerable code added later)
https://snyk.io/vuln/SNYK-JS-CODEMIRROR-1016937
https://github.com/codemirror/CodeMirror/commit/55d0333907117c9231ffdf555ae8824705993bbb

Search for package or bug name: Reporting problems