ZeroHour

CVE-2026-89266

mass

Heap Buffer Overflow in stb_vorbis Ogg Vorbis Decoder via Integer Truncation

CVSS 4.0
8.8 high
EPSS
Published
()
Modified
AI analysis

stb_vorbis, a widely embedded open-source Ogg Vorbis audio decoder, contains a heap buffer overflow in its start_decoder() function where the codebook multiplicands allocation size is truncated from size_t to int. An attacker can craft a malicious Ogg Vorbis file with large entries and dimensions values, and the truncation causes an undersized allocation and out-of-bounds writes when the file is decoded. Successful exploitation can crash the process or corrupt heap memory, with the CVSS 4.0 score reflecting high availability impact and low integrity impact and no confidentiality impact. Any application, game, or tool that embeds stb_vorbis version 1.22 or earlier and decodes untrusted Ogg Vorbis files is affected, which spans a very large downstream ecosystem of bundled software. No public proof-of-concept is known, the flaw is not in CISA's KEV catalog, and exploitation has not been reported in the wild.

What to do: Inventory builds for vendored copies of stb_vorbis.c/stb_vorbis.h and upgrade to a release newer than 1.22 as soon as an upstream fix is published, then rebuild and redeploy. Until patched, restrict decoding of untrusted Ogg Vorbis files, and consider sandboxing or fuzz-hardening audio decoding paths in media- and game-facing applications. Monitor for a vendor advisory and proof-of-concept code given the library's broad embed base.

Affected
nothings (stb, Sean Barrett) stb_vorbisall versions through 1.22
Estimated exposure
massmillions of downstream application installs (ubiquitous vendored single-header library) — stb_vorbis is one of the most widely vendored public-domain single-header C libraries, embedded in thousands of games, media players, and engines whose combined end-user bases number in the millions, though only installs that decode…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Weakness
CWE-787
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.