CVE-2024-21521 @discordjs/opus vulnerable to Denial of Service
Attackers can crash the system by passing a malicious toString property to functions in the @discordjs/opus library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-21521?
CVE-2024-21521 is a high-severity denial of service vulnerability in @discordjs/opus, published on 10 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
All versions of the package @discordjs/opus are vulnerable to Denial of Service (DoS) due to providing an input object with a property toString to several different functions. Exploiting this vulnerability could lead to a system crash.
Weakness: CWE-400
Which versions are affected by CVE-2024-21521?
2 open source packages ship an affected version, including @discordjs/opus.
| Package | Affected | Fixed in |
|---|---|---|
@discordjs/opus npm | All versions to 0.9.0 | None |
@discordjs/opus npm | All versions to 0.9.0 | None |
How do I fix CVE-2024-21521?
No fix has been published for CVE-2024-21521 yet. Limit exposure of the affected software until one is available.
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-21521 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21521 exists.
Sources
Also known as GHSA-43wq-xrcm-3vgr.