---
id: "CVE-2026-112009"
kind: "vulnerability"
aliases: ["CVE-2026-112009"]
title: "smpeg: crafted MPEG file triggers heap out-of-bounds read and crash"
severity: "medium"
cvss: 6.8
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["media-playback", "package", "sdl", "smpeg"]
not_affected_if: ["no-untrusted-mpeg-input"]
published_at: "2026-10-18T12:17:13+00:00"
first_seen_at: "2026-10-23T21:57:15+00:00"
updated_at: "2026-10-25T03:45:06+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-112009", "first_seen_at": "2026-10-23T21:57:15+00:00"}]
---

# smpeg: crafted MPEG file triggers heap out-of-bounds read and crash

smpeg, a legacy MPEG decoding library, reads past a 16384-byte heap buffer in MPEGsystem::FillBuffer() when an MPEG file has a crafted system header stream table. The sources report the crash as the practical effect when an application opens such a file through SMPEG_new, SMPEG_new_rwops or SMPEG_new_data.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check whether the project links smpeg or uses SMPEG_new, SMPEG_new_rwops or SMPEG_new_data (e.g. search the source tree for `SMPEG_new`).
- Check the smpeg version in use; the sources say versions through `2.0.0` are affected.

## Timeline

- 2026-10-23T21:57:15+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-112009

## From the sources

smpeg through 2.0.0 contains a heap out-of-bounds read vulnerability in MPEGsystem::FillBuffer() that allows attackers to read past the 16384-byte buffer by supplying a crafted system header stream table. Attackers can provide an MPEG file whose stream table bytes all set the high bit, which crashes applications opening it through SMPEG_new, SMPEG_new_rwops, or SMPEG_new_data.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
