7.5high
Denial of Service (DoS)
- Severity
- 7.5high CVSS:3.1 by snyk
- Exploit likelihood
- 1.27% (higher than 70% of CVEs)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-rvgf-69j7-xh78
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| @discordjs/opus | before unspecified | CVE List |
| @discordjs/opus (npm) | before 0.8.0 | GitHub Advisory Database |
| discordjs opus | Not specified | NVD |
All scores
| snyk | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
NVD (es)
Todas las versiones del paquete @discordjs/opus son vulnerables a una Denegación de Servicio (DoS) cuando se intenta codificar usando un codificador con cero canales, o un buffer no inicializado. Esto conlleva a un bloqueo grave
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-25345 changed 2024-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rvgf-69j7-xh78 changed 2025-05-30 | CC-BY-4.0 |
| NVD | CVE-2022-25345 changed 2026-06-17 | Public domain |