CVE-2023-45677
Summary
| CVE | CVE-2023-45677 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-10-21 00:15:00 UTC |
| Updated | 2023-10-26 22:44:00 UTC |
| Description | stb_vorbis is a single file MIT licensed library for processing ogg vorbis files. A crafted file may trigger out of bounds write in `f->vendor[len] = (char)'\0';`. The root cause is that if `len` read in `start_decoder` is a negative number and `setup_malloc` successfully allocates memory in that case, but memory write is done with a negative index `len`. Similarly if len is INT_MAX the integer overflow len+1 happens in `f->vendor = (char*)setup_malloc(f, sizeof(char) * (len+1));` and `f->comment_list[i] = (char*)setup_malloc(f, sizeof(char) * (len+1));`. This issue may lead to code execution. |
Risk And Classification
Problem Types: CWE-787
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Nothings | Stb Vorbis.c | 1.22 | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| GHSL-2023-145_GHSL-2023-151/GHSL-2023-165_GHSL-2023-172: Several memory access violations in stb_image and stb_vorbis | GitHub Security Lab | MISC | securitylab.github.com | |
| github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/st... | MISC | github.com | |
| github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/st... | MISC | github.com | |
| github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/st... | MISC | github.com | |
| github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/st... | MISC | github.com | |
| github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/st... | MISC | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.