VDB
CVE-2023-45677
CVE-2023-45677
PUBLISHED
CVSS 7.300000190734863 HIGH
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.
EPSS 0.54% · 43.4th percentile
Risk Scores
CVSS 3.1
7.300000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
EPSS Score
0.54%
43.4th percentile
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| nothings | stb | 0, 0 |
| nothings | stb | <= 1.22, * |
| nothings | stb_vorbis.c | 1.22, 1.22, 1.22 |
Timeline
- Oct 20, 2023 CVE Published
- Oct 21, 2023 EPSS Score
- Nov 21, 2023 EPSS Score
- Dec 23, 2023 EPSS Score
- Jan 23, 2024 EPSS Score
- Feb 23, 2024 EPSS Score
- Mar 25, 2024 EPSS Score
- Apr 26, 2024 EPSS Score
- May 27, 2024 EPSS Score
- Jun 27, 2024 EPSS Score
- Jul 28, 2024 EPSS Score
- Aug 29, 2024 EPSS Score
References
- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3652-L3658 url
- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3653 url
- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L950-L961 url
- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3658 advisory
- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3670C7-L3670C75 advisory
- https://securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_h/ url