Description
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.
Published: 2026-09-11
Score: 8.8 High
EPSS: n/a
KEV: No
Impact: Heap Buffer Overflow
Action: Patch Immediately
AI Analysis

Impact

The vulnerability causes stb_vorbis to allocate memory for codebook multiplicands using an int instead of a size_t, which truncates values from the Vorbis header. This leads to out‑of‑bounds writes on the heap, resulting in memory corruption that can crash the decoder or, in some contexts, allow an attacker to hijack control flow, potentially enabling arbitrary code execution or denial of service.

Affected Systems

All published releases of the stb_vorbis audio decoding library up to and including version 1.22 are affected. The library is provided by the nothings project and is used in media players, streaming applications, and embedded devices that decode Vorbis audio streams.

Risk and Exploitability

The CVSS score of 8.8 categorises the flaw as high severity. No EPSS score is available, and it is not listed in the CISA KEV catalog. The bug is exploitable by supplying a crafted Ogg Vorbis file that contains large codebook entries and dimensions. The likely attack vector is remote delivery of a malicious audio file to a program using stb_vorbis. This can trigger out‑of‑bounds heap writes that may crash the process or, in the presence of auxiliary vulnerabilities or an untrusted execution context, lead to arbitrary code execution or denial of service.

Generated by OpenCVE AI on September 12, 2026 at 01:20 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the stb_vorbis library to a version newer than 1.22 where the allocation size truncation bug is corrected.
  • Validate the size and dimension fields of incoming Ogg Vorbis headers before forwarding them to the decoder, ensuring they do not exceed reasonable limits.
  • Run the decoding routine in a sandboxed or restricted environment to limit the impact of any memory corruption or code execution.

Generated by OpenCVE AI on September 12, 2026 at 01:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 11 Sep 2026 23:45:00 +0000

Type Values Removed Values Added
Description 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.
Title stb_vorbis through 1.22 heap buffer overflow via codebook multiplicands
First Time appeared Stb Vorbis Project
Stb Vorbis Project stb Vorbis
Weaknesses CWE-787
CPEs cpe:2.3:a:stb_vorbis_project:stb_vorbis:*:*:*:*:*:*:*:*
Vendors & Products Stb Vorbis Project
Stb Vorbis Project stb Vorbis
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H'}

cvssV4_0

{'score': 8.8, 'vector': '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'}


Subscriptions

Stb Vorbis Project Stb Vorbis
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-11T23:23:26.509Z

Reserved: 2026-09-11T10:52:56.669Z

Link: CVE-2026-89266

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-12T00:17:06.440

Modified: 2026-09-12T00:17:06.440

Link: CVE-2026-89266

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-12T01:30:06Z

Weaknesses