---
id: CVE-2026-107678
title: >-
  FFmpeg through 9.0.2 contains a stack exhaustion vulnerability in
  av_encryption_init_info_free() in libavutil/encryption_info.c, which
  recursively frees AVEncryptionInitInfo linked lists built by the MOV demuxer's
  mov_read_pssh()
summary: >-
  FFmpeg through 9.0.2 contains a stack exhaustion vulnerability in
  av_encryption_init_info_free() in libavutil/encryption_info.c, which
  recursively frees AVEncryptionInitInfo linked lists built by the MOV demuxer's
  mov_read_pssh(). Attack…
severity: medium
cvss: 4.7
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H'
cwe:
  - CWE-674
vendor: FFmpeg
product: FFmpeg
affected:
  - FFmpeg <= 9.0.2
published: '2026-10-08'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T21:04:38.633'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-107678'
references:
  - url: 'https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24593'
    label: disclosure@vulncheck.com
  - url: 'https://ffmpeg.org/'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavformat/mov.c#L8070'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavutil/encryption_info.c#L219-L231
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-stack-exhaustion-via-recursive-free-of-pssh-boxes
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-08T15:35:36.075279Z'
ingestedAt: '2026-10-08T15:49:37.997Z'
---

## Overview

FFmpeg through 9.0.2 contains a stack exhaustion vulnerability in av_encryption_init_info_free() in libavutil/encryption_info.c, which recursively frees AVEncryptionInitInfo linked lists built by the MOV demuxer's mov_read_pssh(). Attackers can supply a crafted MP4 file with tens of thousands of small pssh boxes to exhaust the stack and crash the process, while also causing quadratic CPU consumption.

## Remediation

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