{"id":"CVE-2022-25345","aliases":["ALPINE-CVE-2022-25345","BELL-CVE-2022-25345","EUVD-2022-6154","GHSA-rvgf-69j7-xh78"],"status":"published","title":"Denial of Service (DoS)","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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.01399,"percentile":0.72707,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-908"],"published":"2022-06-17T20:00:23Z","modified":"2026-07-14T08:03:30Z","fixes":[{"ecosystem":"npm","package":"@discordjs/opus","fixed_in":["0.8.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"@discordjs/opus","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.8.0"}]}]},{"source":"osv","ecosystem":"npm","package":"@discordjs/opus","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.8.0"}]}]}],"products":[{"vendor":"discordjs","product":"opus"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-DISCORDJSOPUS-2403100","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","advisory","evidence","web"]},{"url":"https://github.com/discordjs/opus/blob/3ca4341ffdd81cf83cec57045e59e228e6017590/src/node-opus.cc%23L28","tags":["x_refsource_MISC","x_transferred","Broken Link","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-25345","tags":["advisory"]},{"url":"https://github.com/discordjs/opus/blob/3ca4341ffdd81cf83cec57045e59e228e6017590/src/node-opus.cc#L28","tags":["web"]},{"url":"https://github.com/discordjs/opus/commit/406249f3fca484a2af97a34ceb989019efa09bc7","tags":["web"]},{"url":"https://github.com/discordjs/opus/releases/tag/v0.8.0","tags":["web"]},{"url":"https://github.com/advisories/GHSA-rvgf-69j7-xh78"},{"url":"https://security.alpinelinux.org/vuln/CVE-2022-25345","tags":["advisory"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2022-25345","tags":["advisory"]},{"url":"https://github.com/discordjs/opus","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-25345","title":"Denial of Service (DoS)","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.","status":"published","published":"2022-06-17T20:00:23.118Z","modified":"2024-09-17T00:35:39.258Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","level":"high","assessor":"cna"}],"updated_at":"2026-11-02T14:34:28.374916Z"}],"euvd":[{"id":"EUVD-2022-6154","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.","status":"published","published":"2022-06-17T20:00:23Z","modified":"2024-09-17T00:35:39Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","level":"high"}],"updated_at":"2026-11-03T00:28:57.917597Z"}],"ghsa":[{"id":"GHSA-rvgf-69j7-xh78","title":"Uncontrolled Resource Consumption in @discordjs/opus","description":"Improperly handled errors in @discordjs/opus cause hard crashes instead of returning the error to user land. All versions of package @discordjs/opus (\u003c= 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.","status":"published","published":"2022-06-18T00:00:20Z","modified":"2023-09-07T18:48:22Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T14:37:02.632342Z"}],"nvd":[{"id":"CVE-2022-25345","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.","status":"published","published":"2022-06-17T20:15:10.49Z","modified":"2026-06-17T04:33:25.963Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T14:07:22.613788Z"}],"osv":[{"id":"ALPINE-CVE-2022-25345","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.","status":"withdrawn","published":"2022-06-17T20:15:10.49Z","modified":"2026-07-14T08:03:30.684265667Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:27:49.202584Z"},{"id":"BELL-CVE-2022-25345","title":"CVE-2022-25345 does not affect BellSoft software","status":"withdrawn","published":"2023-08-31T12:15:12.721312Z","modified":"2026-01-26T09:48:30.421476Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:28:17.151188Z"},{"id":"CVE-2022-25345","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.","status":"published","published":"2022-06-17T20:15:10Z","modified":"2026-04-10T04:45:56.261776Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:24.758293Z"},{"id":"GHSA-rvgf-69j7-xh78","title":"Uncontrolled Resource Consumption in @discordjs/opus","description":"Improperly handled errors in @discordjs/opus cause hard crashes instead of returning the error to user land. All versions of package @discordjs/opus (\u003c= 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.","status":"published","published":"2022-06-18T00:00:20Z","modified":"2025-05-30T20:44:36.856436Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-908"],"updated_at":"2026-11-02T15:46:56.281047Z"}]}}
