CVE-2025-1594 FFmpeg AAC Encoder aacenc_tns.c ff_aac_search_for_tns stack-based overflow

Medium 5.3 Published Updated

A stack-based buffer overflow in FFmpeg's AAC encoder allows remote attackers to execute arbitrary code or cause denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-1594?

CVE-2025-1594 is a medium-severity memory corruption vulnerability in Ffmpeg Ffmpeg, published on 23 Feb 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-121, CWE-787, CWE-119

Which versions are affected by CVE-2025-1594?

It affects 1 product.

Products include Ffmpeg Ffmpeg.

How do I fix CVE-2025-1594?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-1594 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-1594 exists.

All Ffmpeg Ffmpeg vulnerabilities

Sources

Also known as DEBIAN-CVE-2025-1594, GHSA-37pp-xmcw-vg4w, JLSEC-2025-151, UBUNTU-CVE-2025-1594, USN-7738-1.

Is CVE-2025-1594 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free