CVE-2023-45681

Out of bounds heap buffer write in stb_vorbis

Published Oct 20, 2023 CVSS 3.1 · 7.3 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2023-49971 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.
History
Type Values Removed Values Added
First Time appeared Nothings stb
CPEs cpe:2.3:a:nothings:stb:*:*:*:*:*:*:*:*
Vendors & Products Nothings stb
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 13, 2025, 5:14 PM
Reserved
Oct 10, 2023, 2:36 PM
Status
Modified
Published
Oct 21, 2023, 12:15 AM
Modified
Jun 17, 2026, 6:29 AM