High severity · published Oct 21, 2023
CVE-2023-45681
stb_vorbis is a single file MIT licensed library for processing ogg vorbis files
7.8
CVSS
0.5%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 44% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SV
Stb Vorbis.c · Nothings
1.22 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2023-45681
CVE.org
https://www.cve.org/CVERecord?id=CVE-2023-45681
Third Party Advisory
https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3660-L3677
lists.fedoraproject.org
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2MHQQXX27ACLLYUQHWSL3DVCOGUK5ZA4/
lists.fedoraproject.org
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2WRORYQ2Z2XXHPX36JHBUSDVY6IOMW2N/
lists.fedoraproject.org
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LBIPXOBWUHPAH4QHMVP2AWWAPDDZDQ66/
Third Party Advisory
https://securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_h/
More from Stb Vorbis.c
9.8
CVE-2023-47212
A heap-based buffer overflow vulnerability exists in the comment functionality of stb _vorbis.c v1.22
8.8
CVE-2026-5317
Nothings stb stb_vorbis.c start_decoder out-of-bounds write
7.8
CVE-2023-45679
stb_vorbis is a single file MIT licensed library for processing ogg vorbis files
7.8
CVE-2023-45678
stb_vorbis is a single file MIT licensed library for processing ogg vorbis files
7.8
CVE-2023-45677
stb_vorbis is a single file MIT licensed library for processing ogg vorbis files
