# CVE-2024-21522: audify vulnerable to Improper Validation of Array Index

- 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): 0.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2024-07-10T05:00:03.927Z
- Modified: 2026-07-10T15:25:06.911Z
- Also known as: GHSA-7vhm-fmph-7wxw
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: snyk

## Description

All versions of the package audify are vulnerable to Improper Validation of Array Index when frameSize is provided to the new OpusDecoder().decode or new OpusDecoder().decodeFloat functions it is not checked for negative values. This can lead to a process crash.

(As written by CVE List.)

## Affected

- audify: before *
- almoghamdani audify: before *
- audify (npm): up to 1.9.0

## 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`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://security.snyk.io/vuln/SNYK-JS-AUDIFY-6370700> (web)
- <https://github.com/almoghamdani/audify/blob/94b2fe79dc528fda2c7d59c7a0fd0e9de07dc3dc/src/opus_decoder.cpp%23L53>
- <https://github.com/almoghamdani/audify/blob/94b2fe79dc528fda2c7d59c7a0fd0e9de07dc3dc/src/opus_decoder.cpp%23L79> (web)
- <https://gist.github.com/dellalibera/6bb866ae5d1cc2adaabe27bbd6d2d21e> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-21522> (advisory)
- <https://github.com/almoghamdani/audify> (package)
- <https://github.com/almoghamdani/audify/blob/94b2fe79dc528fda2c7d59c7a0fd0e9de07dc3dc/src/opus_decoder.cpp#L53> (web)

## Sources

- CVE List: [CVE-2024-21522](https://www.cve.org/CVERecord?id=CVE-2024-21522), CVE Terms of Use, modified 2026-07-10
- GitHub Advisory Database: [GHSA-7vhm-fmph-7wxw](https://github.com/advisories/GHSA-7vhm-fmph-7wxw), CC-BY-4.0, modified 2024-07-10
- NVD: [CVE-2024-21522](https://nvd.nist.gov/vuln/detail/CVE-2024-21522), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-21522 · Whole record: https://cve.day/CVE-2024-21522.json · Rebuilt by cve.day 2026-11-25T22:58:42.725Z
