CVE-2022-25345 Denial of Service (DoS)
Attackers can cause a hard crash in the @discordjs/opus library by providing zero channels or uninitialized buffers during encoding.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-25345?
CVE-2022-25345 is a high-severity denial of service vulnerability in @discordjs/opus, published on 17 Jun 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
All versions of package @discordjs/opus are vulnerable to Denial of Service (DoS) when trying to encode using an encoder with zero channels, or a non-initialized buffer. This leads to a hard crash.
Weakness: CWE-908
Which versions are affected by CVE-2022-25345?
2 open source packages ship an affected version, including @discordjs/opus. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
@discordjs/opus npm | All versions | 0.8.0 |
@discordjs/opus npm | All versions | 0.8.0 |
Products include Discordjs Opus.
How do I fix CVE-2022-25345?
Upgrade @discordjs/opus to 0.8.0 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-2022-25345 being exploited?
There is no known exploitation of CVE-2022-25345 in the wild and no public exploit code.
Sources
Also known as GHSA-rvgf-69j7-xh78.