CVE-2024-21490
Java vulnerability analysis and mitigation

Overview

CVE-2024-21490 affects versions of the Angular package from 1.3.0 onwards. The vulnerability involves a regular expression used to split the value of the ng-srcset directive that is vulnerable to super-linear runtime due to backtracking. This vulnerability was discovered by George Kalpakas and disclosed on November 28, 2023. The affected package is end-of-life (EOL) and will not receive any updates to address this issue (Snyk Advisory).

Technical details

The vulnerability is classified as CWE-1333 (Inefficient Regular Expression Complexity) with a CVSS v3.1 base score of 7.5 (High). The issue occurs in the regular expression parsing of the ng-srcset directive, where carefully-crafted input can cause catastrophic backtracking. The vulnerability is particularly concerning because it can be triggered with network-accessible input and requires no special privileges or user interaction to exploit (Snyk Advisory).

Impact

When exploited, this vulnerability can result in a Denial of Service (DoS) condition. The attack causes the service to excessively consume CPU resources due to catastrophic backtracking in the regular expression evaluation, potentially making the application unresponsive. The impact is particularly severe as it affects availability while requiring no special privileges to execute (Snyk Advisory).

Mitigation and workarounds

As the affected package is EOL, there will be no official security updates. The recommended mitigation is to migrate to @angular/core. For organizations that cannot immediately migrate, commercial support is available from HeroDevs, who have developed a patch for this vulnerability (HeroDevs Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management