CVE-2020-7760 MEDIUM

CVE-2020-7760: Regular Expression Denial of Service (ReDoS)

Vendor N/A
Product codemirror
Published October 30, 2020
Last update September 17, 2024

CVSS base score

5.3/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality None
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C

What the vulnerability does

01Description

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|/*.*?*/)*

Key dates

02Disclosure timeline

October 30, 2020 CVE published
September 17, 2024 Record updated