
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-5317 is a heap out-of-bounds write vulnerability in the start_decoder() function of stb_vorbis.c in Nothings stb library up to version 1.22. The flaw is triggered when processing a specially crafted Vorbis audio file, causing an integer overflow in comment list allocation that leads to massive heap corruption. It was disclosed and published on April 2, 2026, with a public proof-of-concept exploit released simultaneously. The vulnerability carries a CVSS v3.1 base score of 8.8 (High) (GitHub Advisory, Red Hat Bugzilla).
The root cause is an integer overflow (CWE-787 / CWE-119) in start_decoder() within stb_vorbis.c. The comment_list_length field is read directly from untrusted Vorbis header data; the allocation sizeof(char*) * comment_list_length overflows the int sz parameter of setup_malloc() — for example, 8 * 0x20000002 = 0x100000010 truncates to just 16 bytes. The subsequent loop then attempts to write approximately 536 million pointer-sized entries into this 16-byte buffer, causing sequential heap corruption. Each out-of-bounds write stores a heap pointer to attacker-controlled comment string data, creating a heap corruption primitive potentially exploitable via tcache poisoning or chunk overlap. Exploitation requires user interaction (e.g., opening a malicious .ogg file) but no authentication or special privileges (PoC Gist, GitHub Advisory).
Successful exploitation can result in arbitrary code execution on the affected system, with potential for full confidentiality, integrity, and availability compromise. Because stb_vorbis.c is a widely embedded single-header library used in games, multimedia applications, and other software, the blast radius extends to any application that processes untrusted Vorbis audio using this library. An attacker who tricks a user into opening a malicious .ogg file could gain code execution in the context of the vulnerable application, potentially enabling lateral movement or data exfiltration (GitHub Advisory, PoC Gist).
A public proof-of-concept exploit was released on GitHub (by user d0razi) demonstrating a heap buffer overflow crash using a crafted poc.ogg file and AddressSanitizer-instrumented reproduction code; the PoC triggers the crash but does not achieve full code execution (PoC Gist). As of the time of reporting, there is no evidence of active in-the-wild exploitation, and no threat actor attribution has been made. The EPSS score is approximately 0.033% (7th percentile), indicating a low near-term exploitation probability (GitHub Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog.
poc.ogg file (base64-encoded payload available in the public PoC gist) that contains a crafted Vorbis comment header with an oversized comment_list_length value (e.g., 0x20000002) designed to trigger integer overflow during allocation..ogg file via email attachment, web download, or any other vector that causes the target application (which uses stb_vorbis.c) to open and parse the file.stb_vorbis_decode_memory() or stb_vorbis_open_memory(), which internally invokes start_decoder() in stb_vorbis.c.setup_malloc() allocates only 16 bytes due to integer overflow, while the loop writes ~536 million pointer-sized entries, causing massive sequential heap corruption with attacker-controlled data..ogg files in user download directories, temp folders, or application data paths; files with oversized or malformed Vorbis comment headers.stb_vorbis.c for audio decoding; AddressSanitizer or similar memory error reports referencing start_decoder in stb_vorbis.c.stb_vorbis_open_memory, stb_vorbis_decode_memory, or start_decoder at stb_vorbis.c:3670; heap-buffer-overflow errors at address regions consistent with setup_malloc allocations..ogg file, which may indicate post-exploitation activity (PoC Gist).There is currently no official patch from the upstream vendor (Nothings), as the vendor did not respond to disclosure. Patch information has been documented in GitHub and Red Hat advisories as of April 2026, but no fixed version number has been specified (GitHub Advisory, Red Hat Bugzilla). Recommended mitigations include: (1) restricting processing of untrusted Vorbis audio files from external sources; (2) implementing input validation and bounds checking for comment_list_length before allocation in stb_vorbis.c; (3) monitoring for upstream patches in the nothings/stb repository and applying them promptly; and (4) using memory-safe build configurations (e.g., compiling with AddressSanitizer or enabling heap hardening) as a detection and mitigation layer.
Red Hat tracked the vulnerability via Bugzilla (Bug 2454179) and classified it as medium severity, indicating awareness among enterprise Linux distributors (Red Hat Bugzilla). The GitHub Advisory Database published the advisory as "Moderate" severity and noted the vendor did not respond to disclosure (GitHub Advisory). No significant public researcher commentary or broad media coverage has been identified beyond automated vulnerability tracking services.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."