Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious Ogg Vorbis with oversized codebook fields
-
DeliverySubmit file to stb_vorbis-linked service
-
Exploitstart_decoder() truncates size_t to int
-
ExecutionUndersized heap buffer allocated
-
PersistDecoder writes past allocation boundary
-
ImpactHeap corruption or process crash
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that an attacker can supply a malicious Ogg Vorbis file to a process that parses it using stb_vorbis ≤1.22. In server-side contexts (media transcoding APIs, audio upload endpoints, podcast processors) this requires only network access and no authentication, matching the AV:N/PR:N/UI:N vector. In desktop or game contexts, a user must open or play the malicious file (UI:R). The integer truncation only triggers when the computed codebook multiplicands buffer size exceeds 2^31-1 bytes, which requires very large entries × dimensions values in the Ogg Vorbis codebook header - achievable in a small file by setting numeric fields without storing corresponding data. No special server configuration or non-default feature flag is required; any code path calling stb_vorbis_open or equivalent with attacker-controlled input is vulnerable. |
| Impact | The CVSS 4.0 score of 8.8 (AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H) accurately captures the core risk for server-side deployments: a single malformed Ogg Vorbis file delivered over the network is sufficient to crash or heap-corrupt the consuming process without any authentication. Availability impact is high and reliability-degrading for media pipelines. The VI:L (limited integrity) reflects heap corruption potential beyond a clean crash - even a mid-sized municipal IT team in sanok running a media transcoding or podcast-processing service should treat this as actionable if stb_vorbis is vendored. EPSS data was not provided, and no CISA KEV entry exists, indicating no confirmed active exploitation at time of analysis. However, the craft-a-file vector is straightforward, and stb_vorbis is pervasively vendored without version pinning, making mass-scale patching difficult. The absence of a formal released fix version (only GitHub issues and a specific commit reference are provided) means many consumers may remain unpatched indefinitely. For desktop/game application contexts where a user must open the malformed file, real-world severity is closer to a low-complexity DoS requiring one user interaction. |
| Exploit ScenarioDerived | An attacker crafts a minimal Ogg Vorbis file whose codebook header encodes entries and dimensions values large enough that their product exceeds INT_MAX when multiplied together. When a server-side media transcoder or upload processor built on stb_vorbis ≤1.22 parses this file, start_decoder() allocates a buffer sized to the truncated int value, then writes the full codebook multiplicands array past the allocation boundary, corrupting adjacent heap objects. Depending on heap layout this yields a process crash or exploitable heap metadata corruption; no public POC exploit code was identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 12, 2026
Heap buffer overflow in stb_vorbis through 1.22 allows remote attackers to crash or corrupt the heap of any application that parses attacker-supplied Ogg Vorbis audio. The root cause is an integer truncation bug in start_decoder() where the codebook multiplicands allocation size is computed as a size_t but narrowed to int before being passed to the allocator, enabling a heap undersizing condition triggerable by crafting codebook entries and dimensions values that overflow the int range. No public exploit code or active exploitation is confirmed, but the no-interaction network vector makes this impactful for any service that accepts Ogg Vorbis input from untrusted sources.
RemediationAI
No vendor-released tagged patch version is confirmed from available data; consumers should monitor the upstream repository at https://github.com/nothings/stb for a commit that widens the allocation size variable from int to size_t in start_decoder(). The fix consists of ensuring the codebook multiplicands allocation uses size_t arithmetic throughout (changing the variable type at stb_vorbis.c lines 3878-3880 and 950), which GitHub issues #1928, #1933, and #1947 discuss. Projects that vendor stb_vorbis must apply the fix to their local copy and rebuild - upstream pulls do not propagate automatically. As a compensating control for network-facing services, reject Ogg Vorbis files exceeding a conservative size bound before passing them to the decoder; this does not eliminate the issue but raises the bar since malformed codebook metadata can appear early in the file. Sandboxing the decoder process (e.g., via seccomp or a separate low-privilege worker) limits the blast radius of heap corruption to a contained process rather than the main application.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
stb_vorbis (CPE: cpe:2.3:a:nothings:stb_vorbis:*:*:*:*:*:*:*:*) is a widely-vendored, single-header C library for decoding Ogg Vorbis audio, maintained in the nothings/stb repository. It is embedded directly in source trees of countless games, game engines, and media tools rather than distributed as a linked system library. The CWE-787 (Out-of-Bounds Write) root cause is an integer-width mismatch in start_decoder() (stb_vorbis.c lines ~3878-3880 and ~950): the product of codebook entries × dimensions yields a size_t, but this is implicitly cast to int before malloc, silently truncating for large values. The resulting undersized heap allocation is then written past its end when the library fills in the multiplicands array. Ogg Vorbis codebook entries and dimensions are decoder-controlled fields in the bitstream, giving an attacker precise control over the overflow trigger.
Know when Stb Vorbis gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
Network-reachable via file upload with no auth or interaction required in server contexts; availability high from crash, limited integrity from heap corruption, no confidentiality impact.
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
stb_vorbis through 1.22 contains a heap buffer overflow in start_decoder() where the codebook multiplicands allocation size is truncated from size_t to int. Attackers can craft a malicious Ogg Vorbis file with large entries and dimensions values to trigger out-of-bounds writes, causing process crashes or heap corruption.
Technical POC Analysis
Evidence basis: the only supplied source is a GitHub CTI gist dated 2026-09-12 that summarises two CVEs in three sentences.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
Applications using the stb_vorbis audio decoder library (versions through 1.22) face remote denial-of-service and potential data corruption risks when processing Ogg Vorbis files from untrusted sources, with no public exploit identified at time of analysis. Streaming platforms, voice messaging services, media processing pipelines, and any organization accepting audio uploads are vulnerable to crashes or heap memory compromise from attackers requiring only network access and a crafted audio file.
No vendor-released patch identified at time of analysis. Until patched: implement strict input validation and file-format verification for all Ogg Vorbis files; deploy audio processing in isolated containers or separate security domains to limit crash blast radius; disable Ogg Vorbis support in non-critical applications; establish monitoring for unexpected process crashes in audio-processing services; implement network segmentation for systems accepting media uploads from untrusted sources.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
More in Stb Vorbis
View allSean Barrett stb_vorbis version 1.12 and earlier contains a Buffer Overflow vulnerability in All vorbis decoding paths.
A stack buffer overflow in the compute_codewords function in stb_vorbis through 2019-03-04 allows an attacker to cause a
A heap buffer overflow in the start_decoder function in stb_vorbis through 2019-03-04 allows an attacker to cause a deni
An out-of-bounds read of a global buffer in the draw_line function in stb_vorbis through 2019-03-04 allows an attacker t
Use of uninitialized stack variables in the start_decoder function in stb_vorbis through 2019-03-04 allows an attacker t
A reachable assertion in the lookup1_values function in stb_vorbis through 2019-03-04 allows an attacker to cause a deni
A NULL pointer dereference in the get_window function in stb_vorbis through 2019-03-04 allows an attacker to cause a den
Division by zero in the predict_point function in stb_vorbis through 2019-03-04 allows an attacker to cause a denial of
EUVD-2026-76770
GHSA-4hj2-h365-qx39
NVD
CVE.org
EPSS
VulDB
Exploit-DB