CVE Vulnerabilities

CVE-2021-33623

Uncontrolled Resource Consumption

Published: May 28, 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 trim-newlines package before 3.0.1 and 4.x before 4.0.1 for Node.js has an issue related to regular expression denial-of-service (ReDoS) for the .end() method.

Weakness

The product does not properly control the allocation and maintenance of a limited resource.

Affected Software

NameVendorStart VersionEnd Version
Trim-newlinesTrim-newlines_project*3.0.1 (excluding)
Trim-newlinesTrim-newlines_project4.0.0 (including)4.0.1 (excluding)
Red Hat Virtualization Engine 4.4RedHatovirt-web-ui-0:1.9.0-1.el8ev*
Node-trim-newlinesUbuntubionic*
Node-trim-newlinesUbuntuesm-apps/bionic*
Node-trim-newlinesUbuntuesm-apps/focal*
Node-trim-newlinesUbuntufocal*
Node-trim-newlinesUbuntugroovy*
Node-trim-newlinesUbuntuhirsute*
Node-trim-newlinesUbuntuimpish*
Node-trim-newlinesUbuntulunar*
Node-trim-newlinesUbuntumantic*
Node-trim-newlinesUbuntuoracular*
Node-trim-newlinesUbuntuplucky*
Node-trim-newlinesUbuntutrusty*
Node-trim-newlinesUbuntuxenial*

Potential Mitigations

  • Mitigation of resource exhaustion attacks requires that the target system either:

  • The first of these solutions is an issue in itself though, since it may allow attackers to prevent the use of the system by a particular valid user. If the attacker impersonates the valid user, they may be able to prevent the user from accessing the server in question.

  • The second solution is simply difficult to effectively institute – and even when properly done, it does not provide a full solution. It simply makes the attack require more resources on the part of the attacker.

References