# CVE-2023-45681: Out of bounds heap buffer write in stb_vorbis

- Severity: High 7.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/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.51%, higher than 45% of CVEs (2026-12-01)
- Published: 2023-10-20T23:26:56.100Z
- Modified: 2026-06-17T06:29:21.287Z
- Weaknesses: CWE-190, CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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 write past an allocated heap buffer in `start_decoder`. The root cause is a potential integer overflow in `sizeof(char*) * (f->comment_list_length)` which may make `setup_malloc` allocate less memory than required. Since there is another integer overflow an attacker may overflow it too to force `setup_malloc` to return 0 and make the exploit more reliable. This issue may lead to code execution.

(As written by CVE List.)

## Affected

- nothings stb: <= 1.22; up to 1.22
- nothings stb_vorbis.c: 1.22

## Every score

- GitHub_M: CVSS:3.1 7.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/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-L3677> (third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LBIPXOBWUHPAH4QHMVP2AWWAPDDZDQ66/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2WRORYQ2Z2XXHPX36JHBUSDVY6IOMW2N/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2MHQQXX27ACLLYUQHWSL3DVCOGUK5ZA4/>

## Sources

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

---

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