# CVE-2022-25345: Denial of Service (DoS)

- Severity: High 7.5 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.27%, higher than 70% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-06-17T20:00:23.118Z
- Modified: 2026-06-17T04:33:25.963Z
- Also known as: GHSA-rvgf-69j7-xh78
- Weaknesses: CWE-908
- Assigned by: snyk

## 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.

(As written by CVE List.)

## Affected

- @discordjs/opus: before unspecified
- @discordjs/opus (npm): before 0.8.0
- discordjs opus: no versions given

## Every score

- snyk: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://snyk.io/vuln/SNYK-JS-DISCORDJSOPUS-2403100> (exploit, third-party-advisory, web)
- <https://github.com/discordjs/opus/blob/3ca4341ffdd81cf83cec57045e59e228e6017590/src/node-opus.cc%23L28> (broken-link, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-25345> (advisory)
- <https://github.com/discordjs/opus/commit/406249f3fca484a2af97a34ceb989019efa09bc7> (web)
- <https://github.com/discordjs/opus> (package)
- <https://github.com/discordjs/opus/blob/3ca4341ffdd81cf83cec57045e59e228e6017590/src/node-opus.cc#L28> (web)
- <https://github.com/discordjs/opus/releases/tag/v0.8.0> (web)

## Sources

- CVE List: [CVE-2022-25345](https://www.cve.org/CVERecord?id=CVE-2022-25345), CVE Terms of Use, modified 2024-09-17
- GitHub Advisory Database: [GHSA-rvgf-69j7-xh78](https://github.com/advisories/GHSA-rvgf-69j7-xh78), CC-BY-4.0, modified 2025-05-30
- NVD: [CVE-2022-25345](https://nvd.nist.gov/vuln/detail/CVE-2022-25345), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-25345 · Whole record: https://cve.day/CVE-2022-25345.json · Rebuilt by cve.day 2026-11-25T22:58:12.448Z
