{"id":"CVE-2022-25345","aliases":["CVE-2022-25345","GHSA-rvgf-69j7-xh78"],"related":[],"kind":"vulnerability","state":"published","title":"Denial of Service (DoS)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nAs of version 0.8.0, the errors are correctly returned to the user and are no longer throwing hard crashes that cannot be recovered.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2022-06-17T20:00:23.118Z","modified":"2026-06-17T04:33:25.963Z","severity":{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"snyk","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-908"],"affected":[{"ranges":[{"type":"custom","introduced":"0","fixed":"unspecified","status":"affected"}],"product":"@discordjs/opus","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.8.0"}],"ecosystem":"npm","package":"@discordjs/opus","purl":"pkg:npm/%40discordjs/opus","source":"ghsa"},{"ranges":[],"vendor":"discordjs","product":"opus","cpe":"cpe:2.3:a:discordjs:opus:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-DISCORDJSOPUS-2403100","tags":["exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/discordjs/opus/blob/3ca4341ffdd81cf83cec57045e59e228e6017590/src/node-opus.cc%23L28","tags":["broken-link","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25345","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/discordjs/opus/commit/406249f3fca484a2af97a34ceb989019efa09bc7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/discordjs/opus","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/discordjs/opus/blob/3ca4341ffdd81cf83cec57045e59e228e6017590/src/node-opus.cc#L28","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/discordjs/opus/releases/tag/v0.8.0","tags":["web"],"sources":["ghsa"]}],"credits":["Cristian-Alexandru Staicu"],"assigner":"snyk","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-25345","url":"https://www.cve.org/CVERecord?id=CVE-2022-25345","licence":"CVE Terms of Use","modified":"2024-09-17T00:35:39.258Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rvgf-69j7-xh78","url":"https://github.com/advisories/GHSA-rvgf-69j7-xh78","licence":"CC-BY-4.0","modified":"2025-05-30T20:44:36.856Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-25345","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25345","licence":"Public domain","modified":"2026-06-17T04:33:25.963Z"}],"updatedAt":"2026-11-25T22:58:12.448Z","epss":{"score":0.01267,"percentile":0.69823,"date":"2026-11-30T12:00:22.000Z"}}