---
id: "CVE-2026-125247"
page: "https://infrastack.ai/live/CVE-2026-125247"
kind: "vulnerability"
aliases: ["CVE-2026-125247"]
title: "FFmpeg: crafted DNG tile sizes leak uninitialized heap memory"
severity: "medium"
cvss: 4.8
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["ffmpeg", "media-processing", "runtime", "self-hosted"]
not_affected_if: ["no-dng-decoding", "trusted-input-only"]
published_at: "2026-11-09T19:17:03+00:00"
first_seen_at: "2026-11-09T19:28:21+00:00"
updated_at: "2026-11-09T19:32:14+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-125247", "first_seen_at": "2026-11-09T19:28:21+00:00"}]
exploit_sources: []
---

# FFmpeg: crafted DNG tile sizes leak uninitialized heap memory

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

FFmpeg through 9.0.2 has an integer overflow in the DNG decoder's dng_decode_tiles() function. A crafted DNG file with TileWidth or TileLength near INT_MAX makes the tile loop skip, so the output frame exposes uninitialized or stale heap memory.

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

## How to check

- Check the installed FFmpeg version with `ffmpeg -version`; versions through `9.0.2` are listed as affected.
- Find out whether DNG (raw camera image) files from untrusted sources are decoded by FFmpeg in your pipeline.

## Fix

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

## Timeline

- 2026-11-09T19:28:21+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-125247

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-integer-overflow-via-dng-decode-tiles-in-libavcodec-tiff-c
- [fix] Patch: github.com https://github.com/FFmpeg/FFmpeg/commit/a9c070e52fecb7fb247db829130899db07953823

## From the sources

FFmpeg through 9.0.2 contains an integer overflow vulnerability in dng_decode_tiles() that allows attackers to leak uninitialized memory via crafted DNG tile dimensions. Attackers can set TileWidth or TileLength near INT_MAX so the tile loop never runs, outputting a frame exposing uninitialized or stale heap memory.

---

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