CVE-2022-25345
JSON

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 packageVersionsReported by
@discordjs/opusbefore unspecifiedCVE List
@discordjs/opus (npm)before 0.8.0GitHub Advisory Database
discordjs opusNot specifiedNVD

All scores

snyk7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV: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

SourceRecordLicence
CVE ListCVE-2022-25345 changed 2024-09-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-rvgf-69j7-xh78 changed 2025-05-30CC-BY-4.0
NVDCVE-2022-25345 changed 2026-06-17Public domain