CVE-2023-45677
published high CVSS 3.1 · 7.3Heap buffer out of bounds write in start_decoder in stb_vorbis
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nothings | — | stb<= 1.22 | Affected | Not stated | GitHub_M |
| nothings | — | stb0 through 1.22 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| SUSE / openSUSE | openSUSE-Leap-15.6 | SDL2_sound-develaarch64 | Advisory build | 2.0.4-bp156.2.3.1 | OPENSUSE-SU-2025:0037-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | SDL2_sound-develi586 | Advisory build | 2.0.4-bp156.2.3.1 | OPENSUSE-SU-2025:0037-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | SDL2_sound-develppc64le | Advisory build | 2.0.4-bp156.2.3.1 | OPENSUSE-SU-2025:0037-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | SDL2_sound-devels390x | Advisory build | 2.0.4-bp156.2.3.1 | OPENSUSE-SU-2025:0037-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | SDL2_sound-develx86_64 | Advisory build | 2.0.4-bp156.2.3.1 | OPENSUSE-SU-2025:0037-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libSDL2_sound2aarch64 | Advisory build | 2.0.4-bp156.2.3.1 | OPENSUSE-SU-2025:0037-1 |
Show 20 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-15.6 | libSDL2_sound2i586 | Advisory build | 2.0.4-bp156.2.3.1 | OPENSUSE-SU-2025:0037-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libSDL2_sound2ppc64le | Advisory build | 2.0.4-bp156.2.3.1 | OPENSUSE-SU-2025:0037-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libSDL2_sound2s390x | Advisory build | 2.0.4-bp156.2.3.1 | OPENSUSE-SU-2025:0037-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libSDL2_sound2x86_64 | Advisory build | 2.0.4-bp156.2.3.1 | OPENSUSE-SU-2025:0037-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | SDL2_sound-develaarch64 | Advisory build | 2.0.4-1.1 | OPENSUSE-SU-2025:14642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | SDL2_sound-develppc64le | Advisory build | 2.0.4-1.1 | OPENSUSE-SU-2025:14642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | SDL2_sound-devels390x | Advisory build | 2.0.4-1.1 | OPENSUSE-SU-2025:14642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | SDL2_sound-develx86_64 | Advisory build | 2.0.4-1.1 | OPENSUSE-SU-2025:14642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | SDL3_sound-develaarch64 | Advisory build | 3.2.0-1.1 | OPENSUSE-SU-2026:10978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | SDL3_sound-develppc64le | Advisory build | 3.2.0-1.1 | OPENSUSE-SU-2026:10978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | SDL3_sound-devels390x | Advisory build | 3.2.0-1.1 | OPENSUSE-SU-2026:10978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | SDL3_sound-develx86_64 | Advisory build | 3.2.0-1.1 | OPENSUSE-SU-2026:10978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libSDL2_sound2aarch64 | Advisory build | 2.0.4-1.1 | OPENSUSE-SU-2025:14642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libSDL2_sound2ppc64le | Advisory build | 2.0.4-1.1 | OPENSUSE-SU-2025:14642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libSDL2_sound2s390x | Advisory build | 2.0.4-1.1 | OPENSUSE-SU-2025:14642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libSDL2_sound2x86_64 | Advisory build | 2.0.4-1.1 | OPENSUSE-SU-2025:14642-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libSDL3_sound0aarch64 | Advisory build | 3.2.0-1.1 | OPENSUSE-SU-2026:10978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libSDL3_sound0ppc64le | Advisory build | 3.2.0-1.1 | OPENSUSE-SU-2026:10978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libSDL3_sound0s390x | Advisory build | 3.2.0-1.1 | OPENSUSE-SU-2026:10978-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | libSDL3_sound0x86_64 | Advisory build | 3.2.0-1.1 | OPENSUSE-SU-2026:10978-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nothings | stb | <= 1.22 (affected) | GitHub_M · cna |
| nothings | stb | 0 through 1.22 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-787 CWE-787: Out-of-bounds Write
References
6- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3652-L3658
- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3653
- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3658
- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3670C7-L3670C75
- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L950-L961
- https://securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_h/
Provider assertions
3GitHub_M · cna
Heap buffer out of bounds write in start_decoder in stb_vorbis
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 73d0cfce40ad069bf46a6e3a4c35894ad4bf0052a77dafd5ca92fb218c52fb76
- Ingested
- 23 Sep 2026, 08:12:31 UTC
- Source record
- Official CVE record