CVE-2022-25345
published 2022-06-17CVE-2022-25345: 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…
PriorityP336high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
1.24%
65.6th percentile
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.
Affected
9 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| discordjs | opus | < unspecified | unspecified |
| discordjs | opus | >= 0 < 0.8.0 | 0.8.0 |
| msrc | cbl2_opus_on_cbl_mariner_2.0 | — | — |
| wikepage | opus | >= 0 < 0 | 0 |
| wikepage | opus | >= 0 < 0 | 0 |
| wikepage | opus | >= 0 < 0 | 0 |
| wikepage | opus | >= 0 < 0 | 0 |
| wikepage | opus | >= 0 < 0 | 0 |
| wikepage | opus | >= 0 < 0 | 0 |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv7.5HIGH
vendor_msrc7.5HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
Uncontrolled Resource Consumption in @discordjs/opus
ghsa·2022-06-18
CVE-2022-25345 [HIGH] CWE-908 Uncontrolled Resource Consumption in @discordjs/opus
Uncontrolled Resource Consumption in @discordjs/opus
Improperly handled errors in @discordjs/opus cause hard crashes instead of returning the error to user land. All versions of package @discordjs/opus (<= 0.7.0) 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 due to improperly returning the errors from the invalid inputs.
As of version 0.8.0, the errors are correctly returned to the user and are no longer throwing hard crashes that cannot be recovered.
OSV
Uncontrolled Resource Consumption in @discordjs/opus
osv·2022-06-18
CVE-2022-25345 [HIGH] Uncontrolled Resource Consumption in @discordjs/opus
Uncontrolled Resource Consumption in @discordjs/opus
Improperly handled errors in @discordjs/opus cause hard crashes instead of returning the error to user land. All versions of package @discordjs/opus (<= 0.7.0) 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 due to improperly returning the errors from the invalid inputs.
As of version 0.8.0, the errors are correctly returned to the user and are no longer throwing hard crashes that cannot be recovered.
OSV
CVE-2022-25345: 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-
osv·2022-06-17·CVSS 7.5
CVE-2022-25345 [HIGH] CVE-2022-25345: 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-
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.
Microsoft
Denial of Service (DoS)
vendor_msrc·2022-06-14·CVSS 7.5
CVE-2022-25345 [HIGH] CWE-908 Denial of Service (DoS)
Denial of Service (DoS)
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
snyk: snyk
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https://learn.microsoft.com/en-us/azure/azure-l
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/discordjs/opus/blob/3ca4341ffdd81cf83cec57045e59e228e6017590/src/node-opus.cc%23L28https://snyk.io/vuln/SNYK-JS-DISCORDJSOPUS-2403100https://github.com/discordjs/opus/blob/3ca4341ffdd81cf83cec57045e59e228e6017590/src/node-opus.cc%23L28https://snyk.io/vuln/SNYK-JS-DISCORDJSOPUS-2403100
2022-06-17
Published