CVE-2024-21539 Regular Expression Denial of Service (ReDoS) in @eslint/plugin-kit
An attacker can cause a denial of service by triggering excessive CPU usage through improper input sanitization in the ESLint plugin kit library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-21539?
CVE-2024-21539 is a high-severity denial of service vulnerability in @eslint/plugin-kit, published on 19 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Versions of the package @eslint/plugin-kit before 0.2.3 are vulnerable to Regular Expression Denial of Service (ReDoS) due to improper input sanitization. An attacker can increase the CPU usage and crash the program by exploiting this vulnerability.
Which versions are affected by CVE-2024-21539?
2 open source packages ship an affected version, including @eslint/plugin-kit.
| Package | Affected | Fixed in |
|---|---|---|
@eslint/plugin-kit npm | All versions | 0.2.3 |
@eslint/plugin-kit npm | All versions | 0.2.3 |
How do I fix CVE-2024-21539?
Upgrade @eslint/plugin-kit to 0.2.3 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-21539 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21539 exists.
Sources
Also known as GHSA-7q7g-4xm8-89cq.