# CVE-2023-45680: Null pointer dereference in vorbis_deinit in stb_vorbis

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- 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.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2023-10-20T23:26:54.394Z
- Modified: 2026-06-17T06:29:21.157Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

stb_vorbis is a single file MIT licensed library for processing ogg vorbis files. A crafted file may trigger memory allocation failure in `start_decoder`. In that case the function returns early, the `f->comment_list` is set to `NULL`, but `f->comment_list_length` is not reset. Later in `vorbis_deinit` it tries to dereference the `NULL` pointer. This issue may lead to denial of service.

(As written by CVE List.)

## Affected

- nothings stb: <= 1.22
- nothings stb_vorbis.c: 1.22

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_h/> (third-party-advisory)
- <https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3660-L3666> (third-party-advisory)
- <https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L4208-L4215> (third-party-advisory)

## Sources

- CVE List: [CVE-2023-45680](https://www.cve.org/CVERecord?id=CVE-2023-45680), CVE Terms of Use, modified 2024-09-11
- NVD: [CVE-2023-45680](https://nvd.nist.gov/vuln/detail/CVE-2023-45680), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-45680 · Whole record: https://cve.day/CVE-2023-45680.json · Rebuilt by cve.day 2026-11-25T22:58:28.998Z
