Cloudanix VulnDB

CVE-2025-1594

Medium · 6.3

CVSS

6.3

EPSS

0.6%

Published

Feb 23, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in media software can let attackers crash programs or run harmful code by sending bad audio files, so updating the software removes the risk.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Remote Code Execution
Component
Library
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The flaw causes a stack-based buffer overflow in ff_aac_search_for_tns within libavcodec/aacenc_tns.c of the AAC Encoder when processing manipulated input.

Why it matters to the business

Systems handling untrusted media files risk crashes or remote code execution, potentially disrupting media workflows or allowing full system compromise; low exploit likelihood reduces immediate urgency despite public disclosure.

How an attack unfolds

An attacker supplies specially crafted AAC data to the vulnerable encoder function over a remote channel; the overflow allows control of execution flow, and publicly available exploit code may be adapted by threat actors.

How to fix it

Upgrade affected FFmpeg installations beyond version 7.1; for listed packages apply the 2.6.0 fixed release where dependencies exist.

How to confirm the fix worked

Confirm FFmpeg version is newer than 7.1 and test AAC encoding with known-good inputs; review build logs or package manifests for the applied fixes.

Typical attack path

  1. Locate services using vulnerable FFmpeg for AAC encoding
  2. Prepare malicious AAC input designed to overflow the TNS search buffer
  3. Deliver the input remotely via file upload, streaming, or transcode request
  4. Trigger overflow to execute arbitrary code or cause denial of service

How to detect it

Review application logs for abnormal AAC encoding failures or crashes around the aacenc_tns module; inspect process dumps or network captures for unexpected buffer patterns in media handling.

What your security team should do

  • Prioritize patching any FFmpeg instances used in media pipelines
  • Monitor for public exploit usage given disclosure
  • Restrict untrusted AAC input sources until upgrades complete

The record

A vulnerability, which was classified as critical, was found in FFmpeg up to 7.1. This affects the function ff_aac_search_for_tns of the file libavcodec/aacenc_tns.c of the component AAC Encoder. The manipulation leads to stack-based buffer overflow. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.

Affected packages

Ecosystem Package Introduced Fixed
Chainguard ffmpeg-6-dev 0 6.1.3-r0
Chainguard ffmpeg-6-doc 0 6.1.3-r0
Chainguard ffmpeg-6-libavcodec61 0 6.1.3-r0
Chainguard ffmpeg-6-libavdevice61 0 6.1.3-r0
Chainguard ffmpeg-6-libavfilter10 0 6.1.3-r0
Chainguard ffmpeg-6-libavformat61 0 6.1.3-r0
Chainguard ffmpeg-6-libavutil59 0 6.1.3-r0
Chainguard ffmpeg-6-libpostproc58 0 6.1.3-r0
Chainguard ffmpeg-6-libswresample5 0 6.1.3-r0
Chainguard ffmpeg-6-libswscale8 0 6.1.3-r0
Chainguard ffmpeg-6-qt-faststart 0 6.1.3-r0
Chainguard ffmpeg-6-static 0 6.1.3-r0
Chainguard ffmpeg-7 0 7.1.1-r12
Chainguard ffmpeg-7-dev 0 7.1.1-r12
Chainguard ffmpeg-7-doc 0 7.1.1-r12
Chainguard ffmpeg-7-libavcodec61 0 7.1.1-r12
Chainguard ffmpeg-7-libavdevice61 0 7.1.1-r12
Chainguard ffmpeg-7-libavfilter10 0 7.1.1-r12
Chainguard ffmpeg-7-libavformat61 0 7.1.1-r12
Chainguard ffmpeg-7-libavutil59 0 7.1.1-r12
Chainguard ffmpeg-7-libpostproc58 0 7.1.1-r12
Chainguard ffmpeg-7-libswresample5 0 7.1.1-r12
Chainguard ffmpeg-7-libswscale8 0 7.1.1-r12
Chainguard ffmpeg-7-qt-faststart 0 7.1.1-r12
Chainguard ffmpeg-7-static 0 7.1.1-r12
Debian:11 ffmpeg 0 No fix
Debian:12 ffmpeg 0 No fix
Debian:13 ffmpeg 0 No fix
Debian:14 ffmpeg 0 No fix
Wolfi ffmpeg-7 0 7.1.1-r12
Wolfi ffmpeg-7-dev 0 7.1.1-r12
Wolfi ffmpeg-7-doc 0 7.1.1-r12
Wolfi ffmpeg-7-libavcodec61 0 7.1.1-r12
Wolfi ffmpeg-7-libavdevice61 0 7.1.1-r12
Wolfi ffmpeg-7-libavfilter10 0 7.1.1-r12
Wolfi ffmpeg-7-libavformat61 0 7.1.1-r12
Wolfi ffmpeg-7-libavutil59 0 7.1.1-r12
Wolfi ffmpeg-7-libpostproc58 0 7.1.1-r12
Wolfi ffmpeg-7-libswresample5 0 7.1.1-r12
Wolfi ffmpeg-7-libswscale8 0 7.1.1-r12
Wolfi ffmpeg-7-qt-faststart 0 7.1.1-r12
Wolfi ffmpeg-7-static 0 7.1.1-r12
openSUSE:Leap 16.0 ffmpeg-7 0 7.1.4-160000.1.1
openSUSE:Tumbleweed ffmpeg-4 0 4.4.7-2.1
openSUSE:Tumbleweed ffmpeg-7 0 7.1.4-2.1
openSUSE:Tumbleweed ffmpeg-8 0 8.1.1-3.1

Related vulnerabilities