CVE Vulnerabilities

CVE-2021-33502

Inefficient Regular Expression Complexity

Published: May 24, 2021 | Modified: Nov 21, 2024
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
5 MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
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
root.io logo minimus.io logo echo.ai logo

The normalize-url package before 4.5.1, 5.x before 5.3.1, and 6.x before 6.0.1 for Node.js has a ReDoS (regular expression denial of service) issue because it has exponential performance for data: URLs.

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
Normalize-urlNormalize-url_project4.3.0 (including)4.5.1 (excluding)
Normalize-urlNormalize-url_project5.0.0 (including)5.3.1 (excluding)
Normalize-urlNormalize-url_project6.0.0 (including)6.0.0 (including)
Red Hat Enterprise Linux 8RedHatnodejs:16-8050020211206113934.c5368500*
Red Hat Enterprise Linux 8RedHatnodejs:14-8050020211213115342.c5368500*
Red Hat Enterprise Linux 8.4 Extended Update SupportRedHatnodejs:14-8040020211213111158.522a0ee4*
Red Hat Enterprise Linux 9RedHatnodejs-nodemon-0:2.0.19-1.el9_0*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-nodejs12-nodejs-0:12.22.2-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-nodejs12-nodejs-nodemon-0:2.0.3-2.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-nodejs14-nodejs-0:14.17.2-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7RedHatrh-nodejs14-nodejs-nodemon-0:2.0.3-2.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSRedHatrh-nodejs12-nodejs-0:12.22.2-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSRedHatrh-nodejs12-nodejs-nodemon-0:2.0.3-2.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSRedHatrh-nodejs14-nodejs-0:14.17.2-1.el7*
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSRedHatrh-nodejs14-nodejs-nodemon-0:2.0.3-2.el7*
Red Hat Virtualization Engine 4.4RedHatovirt-engine-ui-extensions-0:1.3.3-1.el8ev*
Red Hat Virtualization Engine 4.4RedHatovirt-web-ui-0:1.8.1-2.el8ev*
Node-gotUbuntubionic*
Node-gotUbuntufocal*
Node-gotUbuntugroovy*
Node-gotUbuntuhirsute*
Node-gotUbuntuimpish*
Node-gotUbuntukinetic*
Node-gotUbuntulunar*
Node-gotUbuntumantic*
Node-gotUbuntuoracular*
Node-gotUbuntuplucky*
Node-gotUbuntutrusty*
Node-gotUbuntuxenial*
Node-yarnpkgUbuntufocal*
Node-yarnpkgUbuntugroovy*
Node-yarnpkgUbuntuhirsute*
Node-yarnpkgUbuntuimpish*
Node-yarnpkgUbuntukinetic*
Node-yarnpkgUbuntulunar*
Node-yarnpkgUbuntumantic*
Node-yarnpkgUbuntuoracular*
Node-yarnpkgUbuntuplucky*
Node-yarnpkgUbuntutrusty*
Node-yarnpkgUbuntuxenial*

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