CVE Vulnerabilities

CVE-2021-32723

Uncontrolled Resource Consumption

Published: Jun 28, 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 a syntax highlighting library. Some languages before 1.24.0 are vulnerable to Regular Expression Denial of Service (ReDoS). When Prism is used to highlight untrusted (user-given) text, an attacker can craft a string that will take a very very long time to highlight. This problem has been fixed in Prism v1.24. As a workaround, do not use ASCIIDoc or ERB to highlight untrusted text. Other languages are not affected and can be used to highlight untrusted text.

Weakness

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

Affected Software

NameVendorStart VersionEnd Version
PrismPrismjs*1.24.0 (excluding)
Node-prismjsUbuntudevel*
Node-prismjsUbuntuesm-apps/focal*
Node-prismjsUbuntuesm-apps/jammy*
Node-prismjsUbuntuesm-apps/noble*
Node-prismjsUbuntufocal*
Node-prismjsUbuntugroovy*
Node-prismjsUbuntuhirsute*
Node-prismjsUbuntuimpish*
Node-prismjsUbuntujammy*
Node-prismjsUbuntukinetic*
Node-prismjsUbuntulunar*
Node-prismjsUbuntumantic*
Node-prismjsUbuntunoble*
Node-prismjsUbuntuoracular*
Node-prismjsUbuntuplucky*
Node-prismjsUbuntuquesting*
Node-prismjsUbuntutrusty*
Node-prismjsUbuntuupstream*
Node-prismjsUbuntuxenial*

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