CVE Vulnerabilities

CVE-2022-25858

Inefficient Regular Expression Complexity

Published: Jul 15, 2022 | Modified: Aug 08, 2023
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
7.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM

The package terser before 4.8.1, from 5.0.0 and before 5.14.2 are vulnerable to Regular Expression Denial of Service (ReDoS) due to insecure usage of regular expressions.

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
Terser Terser * 4.8.1 (excluding)
Terser Terser 5.0.0 (including) 5.14.2 (excluding)
Red Hat Advanced Cluster Management for Kubernetes 2.4 for RHEL 8 RedHat rhacm2/search-ui-rhel8:v2.4.8-5 *
Red Hat Advanced Cluster Management for Kubernetes 2.6 for RHEL 8 RedHat rhacm2/console-rhel8:v2.6.2-18 *
Red Hat OpenShift Service Mesh 2.2 for RHEL 8 RedHat openshift-service-mesh/prometheus-rhel8:2.2.7-7 *
RHINT Service Registry 2.3.0 GA RedHat terser *
Chromium-browser Ubuntu trusty *
Chromium-browser Ubuntu upstream *
Chromium-browser Ubuntu xenial *
Node-terser Ubuntu impish *
Node-terser Ubuntu kinetic *
Node-terser Ubuntu lunar *
Qt6-webengine Ubuntu kinetic *
Qt6-webengine Ubuntu lunar *

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