{"id":"CVE-2026-125247","kind":"vulnerability","aliases":["CVE-2026-125247"],"related":[],"title":"FFmpeg: crafted DNG tile sizes leak uninitialized heap memory","description":"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.","summary":"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.","severity":"medium","cvss":4.8,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["ffmpeg","media-processing","runtime","self-hosted"],"not_affected_if":["no-dng-decoding","trusted-input-only"],"how_to_check":"- Check the installed FFmpeg version with `ffmpeg -version`; versions through `9.0.2` are listed as affected.\n- 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.","status":"open","published_at":"2026-11-09T19:17:03+00:00","first_seen_at":"2026-11-09T19:28:21+00:00","triaged_at":"2026-11-09T19:32:14+00:00","updated_at":"2026-11-09T19:32:14+00:00","category":"runtime","confidence":0.6,"triage":{"at":"2026-11-09T19:32:14Z","model":"claude-haiku-5-5","output":{"fix":"- Move to a FFmpeg release newer than `9.0.2`; the sources reviewed do not name the exact fixed version.","reach":"unknown","title":"FFmpeg: crafted DNG tile sizes leak uninitialized heap memory","impact":"low","summary":"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.","audience":"developers","category":"runtime","nicknames":[],"who_cares":["ffmpeg","media-processing","self-hosted"],"confidence":0.6,"fix_status":"available","needs_auth":"no","worst_case":"Process memory fragments leak into decoded output frames","analyst_note":"Confirm the fixed FFmpeg version and whether the DNG decoder is enabled by default, using the linked patch on github.com and the vulncheck advisory.","how_to_check":"- Check the installed FFmpeg version with `ffmpeg -version`; versions through `9.0.2` are listed as affected.\n- Find out whether DNG (raw camera image) files from untrusted sources are decoded by FFmpeg in your pipeline.","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["trusted-input-only","no-dng-decoding"],"who_is_affected":"Systems that run FFmpeg to decode DNG images from untrusted sources, such as upload, thumbnailing or media conversion services. A leak needs a crafted file to be processed, and systems that only handle trusted media are less exposed. unknown whether default builds include the DNG decoder.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"medium"},"cost_usd":0.000779,"input_tokens":4621,"output_tokens":634,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-125247':12A,15A '-2026':11A,14A '9.0.2':26B,68C 'allow':79C 'attack':80C,90C 'contain':69C 'craft':2A,41B,86C 'cve':10A,13A 'decod':34B,37B,76C 'dimens':89C 'dng':3A,33B,36B,42B,75C,87C 'expos':60B,108C 'ffmpeg':1A,16B,24B,66C 'file':43B 'frame':59B,107C 'function':39B 'heap':8A,64B,112C 'host':23B 'int':49B,97C 'integ':29B,71C 'leak':6A,82C 'loop':54B,102C 'make':51B 'max':50B,98C 'media':18B 'media-process':17B 'memori':9A,65B,84C,113C 'near':48B,96C 'never':103C 'output':58B,105C 'overflow':30B,72C 'process':19B 'run':104C 'runtim':20B 'self':22B 'self-host':21B 'set':92C 'size':5A 'skip':55B 'stale':63B,111C 'tile':4A,38B,53B,77C,88C,101C 'tilelength':47B,95C 'tilewidth':45B,93C 'uniniti':7A,61B,83C,109C 'via':85C 'vulner':73C","nicknames":[],"mitigations":[],"who_affected":"Systems that run FFmpeg to decode DNG images from untrusted sources, such as upload, thumbnailing or media conversion services. A leak needs a crafted file to be processed, and systems that only handle trusted media are less exposed. unknown whether default builds include the DNG decoder.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["ffmpeg","mediaprocessing","medium","runtime","selfhosted"],"campaign_type":null,"search_a":"'-125247':12A,15A '-2026':11A,14A 'craft':2A 'cve':10A,13A 'dng':3A 'ffmpeg':1A 'heap':8A 'leak':6A 'memori':9A 'size':5A 'tile':4A 'uniniti':7A","search_b":"'9.0.2':26B 'craft':41B 'decod':34B,37B 'dng':33B,36B,42B 'expos':60B 'ffmpeg':16B,24B 'file':43B 'frame':59B 'function':39B 'heap':64B 'host':23B 'int':49B 'integ':29B 'loop':54B 'make':51B 'max':50B 'media':18B 'media-process':17B 'memori':65B 'near':48B 'output':58B 'overflow':30B 'process':19B 'runtim':20B 'self':22B 'self-host':21B 'skip':55B 'stale':63B 'tile':38B,53B 'tilelength':47B 'tilewidth':45B 'uniniti':61B","search_c":"'9.0.2':68C 'allow':79C 'attack':80C,90C 'contain':69C 'craft':86C 'decod':76C 'dimens':89C 'dng':75C,87C 'expos':108C 'ffmpeg':66C 'frame':107C 'heap':112C 'int':97C 'integ':71C 'leak':82C 'loop':102C 'max':98C 'memori':84C,113C 'near':96C 'never':103C 'output':105C 'overflow':72C 'run':104C 'set':92C 'stale':111C 'tile':77C,88C,101C 'tilelength':95C 'tilewidth':93C 'uniniti':83C,109C 'via':85C 'vulner':73C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-09T19:17:03+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-125247","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125247","severity":null,"published_at":"2026-11-09T19:17:03+00:00","modified_at":"2026-11-09T19:17:03+00:00","first_seen_at":"2026-11-09T19:28:21+00:00","fetched_at":"2026-11-09T19:28:21+00:00","note":null}],"documents":[{"id":109384,"url":"https://github.com/FFmpeg/FFmpeg/commit/a9c070e52fecb7fb247db829130899db07953823","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":109385,"url":"https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-integer-overflow-via-dng-decode-tiles-in-libavcodec-tiff-c","title":"Third-party advisory: www.vulncheck.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.vulncheck.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}