CVE Vulnerabilities

CVE-2022-2596

Inefficient Regular Expression Complexity

Published: Aug 01, 2022 | Modified: Nov 21, 2024
CVSS 3.x
5.9
MEDIUM
Source:
NVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
5.9 MODERATE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

Inefficient Regular Expression Complexity in GitHub repository node-fetch/node-fetch prior to 3.2.10.

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
Node-fetchNode-fetch_project3.0.0 (including)3.2.10 (excluding)
Node-fetchUbuntubionic*
Node-fetchUbuntufocal*
Node-fetchUbuntukinetic*
Node-fetchUbuntulunar*
Node-fetchUbuntumantic*
Node-fetchUbuntuoracular*
Node-fetchUbuntuplucky*

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