---
id: CVE-2026-125172
title: FFmpeg through 9.0.2 Out-of-Bounds Read via libxevd EVC NAL Length
summary: >-
  FFmpeg through 9.0.2 contains an out-of-bounds read vulnerability in
  libxevd_receive_frame() in libavcodec/libxevd.c that fails to validate NAL
  unit length prefixes against remaining packet data. Attackers can supply
  crafted EVC media wi…
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H'
cvssSource: cna
cwe:
  - CWE-125
vendor: FFmpeg
product: FFmpeg
affected:
  - FFmpeg >= 7.0 <= 9.0.2
published: '2026-11-09'
updated: '2026-11-09'
sourceUpdated: '2026-11-09T19:11:00.713Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-125172'
references:
  - url: 'https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25416'
  - url: >-
      https://github.com/FFmpeg/FFmpeg/commit/e06b3953d4253f8b56271628ba4083fde96aeadb
    label: Patch Commit
  - url: 'https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/libxevd.c#L355'
  - url: 'https://github.com/FFmpeg/FFmpeg'
  - url: >-
      https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-out-of-bounds-read-via-libxevd-evc-nal-length
    label: >-
      VulnCheck Advisory: FFmpeg through 9.0.2 Out-of-Bounds Read via libxevd
      EVC NAL Length
tags:
  - cve.org
ingestedAt: '2026-11-09T19:18:02.624Z'
---

## Overview

FFmpeg through 9.0.2 contains an out-of-bounds read vulnerability in libxevd_receive_frame() in libavcodec/libxevd.c that fails to validate NAL unit length prefixes against remaining packet data. Attackers can supply crafted EVC media with oversized 4-byte NAL length prefixes, causing libxevd to read past the packet buffer, crashing the application or exposing adjacent heap memory.

## Affected

- `FFmpeg >= 7.0 <= 9.0.2`

## Remediation

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