CVE-2025-1594
Ffmpeg vulnerability analysis and mitigation

Overview

A critical stack buffer overflow vulnerability was discovered in FFmpeg's AAC encoder component, specifically in the ff_aac_search_for_tns function within libavcodec/aacenc_tns.c. The vulnerability was identified in February 2025 and affects the function that handles TNS (Temporal Noise Shaping) processing during AAC encoding (FFmpeg Ticket).

Technical details

The vulnerability manifests as a stack buffer overflow when reading 4 bytes at an invalid memory address during the TNS search process. The issue occurs in the ff_aac_search_for_tns function at line 204 of libavcodec/aacenc_tns.c. The overflow happens when accessing memory beyond the bounds of a stack-allocated array, specifically at offset 40 which overflows a variable named 'en' declared at line 183 (FFmpeg Ticket).

Impact

The vulnerability could potentially lead to memory corruption and program crashes. When exploited, it allows an attacker to read beyond the bounds of allocated stack memory, which could result in information disclosure or potential code execution depending on the memory contents and system architecture (FFmpeg Ticket).

Exploitability

The vulnerability can be triggered by processing specially crafted input files through FFmpeg's AAC encoder with specific encoding parameters. A proof-of-concept (PoC) has been developed and verified using FFmpeg compiled with Address Sanitizer (ASAN), demonstrating the buffer overflow condition (FFmpeg Ticket).

Mitigation and workarounds

The issue has been reported to the FFmpeg security team and patches have been developed to address the vulnerability. Users are advised to update to the latest version once patches are publicly available. In the meantime, caution should be exercised when processing untrusted input files with AAC encoding enabled (FFmpeg Ticket).

Additional resources


SourceThis report was generated using AI

Related Ffmpeg vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-70632HIGH8.5
  • Ffmpeg logoFfmpeg
  • ffmpeg
NoYesAug 06, 2026
CVE-2026-70628HIGH8.5
  • Ffmpeg logoFfmpeg
  • ffmpeg
NoYesAug 06, 2026
CVE-2026-70631MEDIUM6.8
  • Ffmpeg logoFfmpeg
  • ffmpeg
NoYesAug 06, 2026
CVE-2026-70630MEDIUM6.8
  • Ffmpeg logoFfmpeg
  • ffmpeg
NoYesAug 06, 2026
CVE-2026-70629MEDIUM6.8
  • Ffmpeg logoFfmpeg
  • cpe:2.3:a:ffmpeg:ffmpeg
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management