
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability CVE-2021-23341 affects PrismJS, a lightweight syntax highlighting library, versions before 1.23.0. This vulnerability was discovered and disclosed on February 18, 2021. The issue is identified as a Regular Expression Denial of Service (ReDoS) vulnerability that affects multiple components including prism-asciidoc, prism-rest, prism-tap, and prism-eiffel (NVD, Snyk).
The vulnerability is caused by improper regular expression patterns in multiple components that can lead to catastrophic backtracking. The affected components contain vulnerable regex patterns that can be exploited through specially crafted input strings. The vulnerability has a CVSS v3.1 base score of 7.5 (High), with attack vector being Network, attack complexity Low, and requiring no privileges or user interaction. The scope is unchanged, with no impact on confidentiality or integrity, but high impact on availability (Ubuntu).
When exploited, this vulnerability can cause the service to excessively consume CPU resources, resulting in a Denial of Service condition. The attack can lead to a total loss of availability, where the system becomes unresponsive while processing the malicious input. This impact is particularly significant as it can affect the entire system's performance and availability (Snyk).
The vulnerability is exploitable through specially crafted input strings that trigger catastrophic backtracking in the regular expressions. A proof-of-concept exists demonstrating how the vulnerability can be exploited, and the attack can be executed remotely without requiring any special privileges or user interaction (GitHub Issue).
The vulnerability was fixed in PrismJS version 1.23.0. Users are recommended to upgrade to this version or later to mitigate the vulnerability. The fix involved modifying the regular expression patterns in the affected components to prevent catastrophic backtracking (GitHub PR).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."