CVE-2023-45681
published high CVSS 3.1 · 7.3Out of bounds heap buffer write 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 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.
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
5- https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3660-L3677
- https://lists.fedoraproject.org/archives/list/[email protected]/message/2MHQQXX27ACLLYUQHWSL3DVCOGUK5ZA4/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/2WRORYQ2Z2XXHPX36JHBUSDVY6IOMW2N/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/LBIPXOBWUHPAH4QHMVP2AWWAPDDZDQ66/
- https://securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_h/
Provider assertions
3GitHub_M · cna
Out of bounds heap buffer write in stb_vorbis
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a4a008ef55dc5f52597ae315ab43c787251a59244a03ce10880b00ca02ea6ab6
- Ingested
- 23 Sep 2026, 08:12:31 UTC
- Source record
- Official CVE record