---
id: CVE-2026-125264
title: FFmpeg through 9.0.2 CPU Exhaustion via JPEG XL Parser TOC Count
summary: >-
  FFmpeg through 9.0.2 contains an uncontrolled resource consumption
  vulnerability in parse_frame_header() in libavcodec/jpegxl_parser.c that fails
  to validate TOC entry counts against remaining input. Attackers can supply a
  crafted JPEG X…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-606
vendor: FFmpeg
product: FFmpeg
affected:
  - FFmpeg <= 9.0.2
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-11-09T20:54:30.873322Z'
published: '2026-11-09'
updated: '2026-11-09'
sourceUpdated: '2026-11-09T20:56:48.182Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-125264'
references:
  - url: 'https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25569'
  - url: >-
      https://github.com/FFmpeg/FFmpeg/commit/bc896c613ec0d4ad0108d62fbdda0196f69e7121
    label: Patch Commit
  - url: >-
      https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/jpegxl_parser.c#L1343
  - url: 'https://github.com/FFmpeg/FFmpeg'
  - url: >-
      https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-cpu-exhaustion-via-jpeg-xl-parser-toc-count
    label: >-
      VulnCheck Advisory: FFmpeg through 9.0.2 CPU Exhaustion via JPEG XL Parser
      TOC Count
tags:
  - cve.org
ingestedAt: '2026-11-09T20:27:27.077Z'
---

## Overview

FFmpeg through 9.0.2 contains an uncontrolled resource consumption vulnerability in parse_frame_header() in libavcodec/jpegxl_parser.c that fails to validate TOC entry counts against remaining input. Attackers can supply a crafted JPEG XL frame header with a permuted TOC and huge toc_count, making the parser loop excessively and exhaust CPU.

## Affected

- `FFmpeg <= 9.0.2`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
