CVE Vulnerabilities

CVE-2021-3801

Inefficient Regular Expression Complexity

Published: Sep 15, 2021 | Modified: Nov 21, 2024
CVSS 3.x
6.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.x
4.3 MEDIUM
AV:N/AC:M/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
6.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM

prism is vulnerable to Inefficient Regular Expression Complexity

Weakness

The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles.

Affected Software

Name Vendor Start Version End Version
Prism Prismjs * 1.25.0 (excluding)
RHACS-3.67-RHEL-8 RedHat advanced-cluster-security/rhacs-rhel8-operator:3.67.0-3 *
Node-prismjs Ubuntu hirsute *
Node-prismjs Ubuntu impish *
Node-prismjs Ubuntu kinetic *
Node-prismjs Ubuntu lunar *
Node-prismjs Ubuntu mantic *
Node-prismjs Ubuntu trusty *
Node-prismjs Ubuntu xenial *

Extended Description

	  Attackers can create crafted inputs that
	  intentionally cause the regular expression to use
	  excessive backtracking in a way that causes the CPU
	  consumption to spike.

Potential Mitigations

References