Skip to main content

stb_vorbis CVE-2026-89266

| EUVDEUVD-2026-76770 HIGH
Out-of-bounds Write (CWE-787)
2026-09-11 VulnCheck GHSA-4hj2-h365-qx39
8.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious Ogg Vorbis with oversized codebook fields
  2. Delivery
    Submit file to stb_vorbis-linked service
  3. Exploit
    start_decoder() truncates size_t to int
  4. Execution
    Undersized heap buffer allocated
  5. Persist
    Decoder writes past allocation boundary
  6. Impact
    Heap 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

stb_vorbis 0 ≤1.22

Affected Packages

euvd stb_vorbis no fix

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

Vendor (VulnCheck) PRIMARY 8.8 HIGH
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
vuln.today AI 8.2 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N
SUSE 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Red Hat 8.2 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.5%
Top 60% exploitable
Prevalence
Medium
widely vendored in game engines and indie media tools
Social Media
4
Sightings
Data Quality
7 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

Vendor StatusVendor

SUSE

Severity: Important

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy