CVE-2023-45681
JSON

7.3high

Out of bounds heap buffer write in stb_vorbis

Severity
7.3high CVSS:3.1 by GitHub_M
Exploit likelihood
0.51% (higher than 45% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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.

Affected

Product or packageVersionsReported by
nothings stb<= 1.22, up to 1.22CVE List
nothings stb_vorbis.c1.22NVD

All scores

GitHub_M7.3high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
NVD7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-190CWE-787

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

stb_vorbis es una librería de archivo único con licencia MIT para procesar archivos ogg vorbis. Un archivo manipulado puede activar la escritura en memoria más allá de un búfer de montón asignado en `start_decoder`. La causa principal es un posible desbordamiento de enteros en `sizeof(char*) * (f-&gt;comment_list_length)` que puede hacer que `setup_malloc` asigne menos memoria de la requerida. Dado que hay otro desbordamiento de enteros, un atacante también puede desbordarlo para forzar a `setup_malloc` a devolver 0 y hacer que el exploit sea más confiable. Este problema puede provocar la ejecución del código.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-45681 changed 2025-02-13CVE Terms of Use
NVDCVE-2023-45681 changed 2026-06-17Public domain