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

Published Feb 23, 2025
·
Updated

A vulnerability, which was classified as critical, was found in FFmpeg up to 7.1. This affects the function ffaacsearchfortns of the file libavcodec/aacenctns.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 Software

11 affected componentsFixes available
FFmpeg FFmpeg<7.1
FFmpeg FFmpeg<=7.1
alpine/ffmpeg<7.1.1-r0
7.1.1-r0
alpine/ffmpeg<7.1.1-r0
7.1.1-r0
debian/ffmpeg
7:4.3.9-0+deb11u27:5.1.8-0+deb12u17:7.1.2-0+deb13u17:7.1.2-1
ubuntu/ffmpeg<7:2.8.17-0ubuntu0.1+esm11
7:2.8.17-0ubuntu0.1+esm11
ubuntu/ffmpeg<7:3.4.11-0ubuntu0.1+esm9
7:3.4.11-0ubuntu0.1+esm9
ubuntu/ffmpeg<7:4.2.7-0ubuntu0.1+esm9
7:4.2.7-0ubuntu0.1+esm9
ubuntu/ffmpeg<7:4.4.2-0ubuntu0.22.04.1+esm8
7:4.4.2-0ubuntu0.22.04.1+esm8
ubuntu/ffmpeg<7:6.1.1-3ubuntu5+esm4
7:6.1.1-3ubuntu5+esm4
ubuntu/ffmpeg<7:7.1.1-1ubuntu4
7:7.1.1-1ubuntu4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade alpine/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7.1.1-r0
  2. Upgrade

    Upgrade debian/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:4.3.9-0+deb11u2Fixed in 7:5.1.8-0+deb12u1Fixed in 7:7.1.2-0+deb13u1Fixed in 7:7.1.2-1
  3. Upgrade

    Upgrade ubuntu/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:2.8.17-0ubuntu0.1+esm11
  4. Upgrade

    Upgrade ubuntu/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:3.4.11-0ubuntu0.1+esm9
  5. Upgrade

    Upgrade ubuntu/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:4.2.7-0ubuntu0.1+esm9
  6. Upgrade

    Upgrade ubuntu/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:4.4.2-0ubuntu0.22.04.1+esm8
  7. Upgrade

    Upgrade ubuntu/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:6.1.1-3ubuntu5+esm4
  8. Upgrade

    Upgrade ubuntu/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:7.1.1-1ubuntu4

Event History

Feb 23, 2025
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeakness
Jun 3, 2025
Data Sourced
via NVD·06:04 PM
Affected Software
Updated
via NVD·06:04 PM
SeverityWeakness
Event
via NVD·06:04 PM
Nov 24, 2026
Data Sourced
via OSV·02:54 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-1594?

CVE-2025-1594 is classified as critical due to the potential for a stack-based buffer overflow.

2

How do I fix CVE-2025-1594?

To mitigate CVE-2025-1594, upgrade FFmpeg to a version greater than 7.1.

3

What component is affected by CVE-2025-1594?

CVE-2025-1594 affects the AAC Encoder component in FFmpeg.

4

What is the exploitation impact of CVE-2025-1594?

Exploitation of CVE-2025-1594 can lead to arbitrary code execution due to stack-based buffer overflow.

5

Which versions of FFmpeg are vulnerable to CVE-2025-1594?

FFmpeg versions up to and including 7.1 are vulnerable to CVE-2025-1594.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203