---
id: "CVE-2026-125260"
page: "https://infrastack.ai/live/CVE-2026-125260"
kind: "vulnerability"
aliases: ["CVE-2026-125260"]
title: "FFmpeg: crafted OpenEXR encoding overflows heap memory and crashes apps"
severity: "high"
cvss: 7.3
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["ffmpeg", "media-processing", "package", "transcoding"]
not_affected_if: ["no-exr-encoding", "trusted-input-only"]
published_at: "2026-11-09T20:18:12+00:00"
first_seen_at: "2026-11-09T20:48:13+00:00"
updated_at: "2026-11-09T20:49:43+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125260", "first_seen_at": "2026-11-09T20:48:13+00:00"}]
exploit_sources: []
---

# FFmpeg: crafted OpenEXR encoding overflows heap memory and crashes apps

Link for people: https://infrastack.ai/live/CVE-2026-125260 (this .md is for agents)

FFmpeg's OpenEXR encoder in libavcodec/exrenc.c writes past a heap scanline buffer when frame height grows mid-stream with RLE compression. An attacker who supplies crafted media can corrupt heap memory and crash the application.

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

## How to check

- Check the FFmpeg version with `ffmpeg -version`; the sources say versions through 9.0.2 are affected.
- Look for services that transcode user-supplied media to OpenEXR with RLE compression, such as `-c:v exr` with RLE output.

## Fix

- Move to a FFmpeg release newer than 9.0.2; the sources do not name the fixed version.

## Timeline

- 2026-11-09T20:48:13+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-125260

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-in-exr-encoder-rle-path
- [fix] Patch: github.com https://github.com/FFmpeg/FFmpeg/commit/9b99973b2bbecee0b7e1e57035b95498b42f54a6

## From the sources

FFmpeg through 9.0.2 contains a heap buffer overflow vulnerability in libavcodec/exrenc.c that allows attackers to corrupt heap memory when encode_scanline_rle() processes frames taller than the encoder height. Attackers can supply crafted input whose resolution grows mid-stream, transcoded to OpenEXR with RLE compression, to write pointers past the scanline array and crash the application.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
