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
root.io logo minimus.io logo echo.ai logo

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

NameVendorStart VersionEnd Version
PrismPrismjs*1.25.0 (excluding)
RHACS-3.67-RHEL-8RedHatadvanced-cluster-security/rhacs-rhel8-operator:3.67.0-3*
Node-prismjsUbuntufocal*
Node-prismjsUbuntuhirsute*
Node-prismjsUbuntuimpish*
Node-prismjsUbuntukinetic*
Node-prismjsUbuntulunar*
Node-prismjsUbuntumantic*
Node-prismjsUbuntuoracular*
Node-prismjsUbuntuplucky*
Node-prismjsUbuntutrusty*
Node-prismjsUbuntuxenial*

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