CVE-2025-59734
Ffmpeg vulnerability analysis and mitigation

Overview

A use-after-free vulnerability (CVE-2025-59734) exists in SANM decoding when processing a carefully crafted animation using subversion <2. The vulnerability was discovered on October 6, 2025, and affects FFmpeg software (Ubuntu Security).

Technical details

The vulnerability occurs when a STOR chunk is present and a subsequent FOBJ chunk is saved in ctx->storedframe. In files using subversion < 2, if a frame has an invalid size in processframeobj, it returns 0, causing decode_frame to store the raw frame buffer into ctx->storedframe while leaving ctx->hasdimensions set to false. When a subsequent FTCH chunk calls processftch, it decodes the frame again, adding top/left values and calling processframeobj, which sets dimensions and calls init_buffers, potentially reallocating and freeing the previous buffer while GetByteContext still holds a reference to the old buffer (Ubuntu Security).

Impact

When exploited, the vulnerability can lead to use-after-free read operations when using GetByteContext. While GetByteContext is only used for reading bytes, limiting direct write access, the vulnerability can potentially corrupt allocator's metadata when processftch restores original values for top/left in storedframe, writing 4 bytes to the freed data at offset 6 (Ubuntu Security).

Mitigation and workarounds

The recommended mitigation is to upgrade to FFmpeg version 8.0 or beyond (Ubuntu Security).

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-2025-59734HIGH8.7
  • FfmpegFfmpeg
  • ffmpeg
NoYesOct 06, 2025
CVE-2025-59733HIGH8.7
  • FfmpegFfmpeg
  • ffmpeg
NoYesOct 06, 2025
CVE-2025-59732HIGH8.7
  • FfmpegFfmpeg
  • ffmpeg
NoYesOct 06, 2025
CVE-2025-7700MEDIUM5.3
  • FfmpegFfmpeg
  • libavresample4_0-32bit
NoYesNov 07, 2025
CVE-2025-12343N/AN/A
  • FfmpegFfmpeg
  • ffmpeg
NoYesOct 28, 2025

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