{"id":"CVE-2023-45676","aliases":["CVE-2023-45676"],"related":[],"kind":"vulnerability","state":"published","title":"Multi-byte write heap buffer overflow in start_decoder in stb_vorbis","summary":"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[i] = get8_packet(f);`. The root cause is an integer overflow in `setup_malloc`. A sufficiently large value in the variable `sz` overflows with `sz+7` in and the negative value passes the maximum available memory buffer check. This issue may lead to code execution.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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[i] = get8_packet(f);`. The root cause is an integer overflow in `setup_malloc`. A sufficiently large value in the variable `sz` overflows with `sz+7` in and the negative value passes the maximum available memory buffer check. This issue may lead to code execution.","source":"cvelist"},{"lang":"es","text":"stb_vorbis es una librería de archivo único con licencia MIT para procesar archivos ogg vorbis. Un archivo manipulado puede provocar una escritura fuera de límites en `f-&gt;vendor[i] = get8_packet(f);`. La causa principal es un desbordamiento de enteros en `setup_malloc`. Un valor suficientemente grande en la variable `sz` se desborda con `sz+7` y el valor negativo pasa la verificación del búfer de memoria máxima disponible. Este problema puede provocar la ejecución del código.","source":"nvd"}],"published":"2023-10-20T23:26:47.709Z","modified":"2026-06-17T06:29:20.600Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"version":"<= 1.22","status":"affected"}],"vendor":"nothings","product":"stb","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"1.22","status":"affected"}],"vendor":"nothings","product":"stb","cpe":"cpe:2.3:a:nothings:stb:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"status":"affected","version":"1.22"}],"vendor":"nothings","product":"stb_vorbis.c","cpe":"cpe:2.3:a:nothings:stb_vorbis.c:1.22:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2023-145_GHSL-2023-151_stb_image_h/","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L3656","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/nothings/stb/blob/5736b15f7ea0ffb08dd38af21067c314d6a3aae9/stb_vorbis.c#L950-L960","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-09-12T13:32:47.392Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-45676","url":"https://www.cve.org/CVERecord?id=CVE-2023-45676","licence":"CVE Terms of Use","modified":"2024-09-12T13:38:48.646Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-45676","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-45676","licence":"Public domain","modified":"2026-06-17T06:29:20.600Z"}],"updatedAt":"2026-11-25T22:58:28.996Z","epss":{"score":0.00737,"percentile":0.50571,"date":"2026-11-30T12:00:22.000Z"}}