CVE-2024-31582: Buffer Overflow

Published Apr 17, 2024
·
Updated

FFmpeg version n6.1 was discovered to contain a heap buffer overflow vulnerability in the drawblockrectangle function of libavfilter/vfcodecview.c. This vulnerability allows attackers to cause undefined behavior or a Denial of Service (DoS) via crafted input.

Affected Software

12 affected componentsFixes available
ubuntu/ffmpeg<7:6.0-6ubuntu1.1
7:6.0-6ubuntu1.1
ubuntu/ffmpeg<7:6.1.1-3ubuntu5+
7:6.1.1-3ubuntu5+
FFmpeg FFmpeg>=6.1<7.0
Fedoraproject Fedora=38
Fedoraproject Fedora=39
Fedoraproject Fedora=40
debian/ffmpeg<7:5.1.7-0+deb12u1
7:5.1.7-0+deb12u1
debian/ffmpeg<7:7.0.1-3
7:7.0.1-3
debian/ffmpeg<7:7.0.1-3
7:7.0.1-3
debian/ffmpeg
7:5.1.9-0+deb12u17:7.1.5-0+deb13u17:9.0.2-4
alpine/ffmpeg>=6.1<7.1.1-r0
7.1.1-r0
alpine/ffmpeg>=6.1<7.1.1-r0
7.1.1-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 7:6.0-6ubuntu1.1
  2. Upgrade

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

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

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

    Fixed in 7:5.1.7-0+deb12u1
  4. Upgrade

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

    Fixed in 7:7.0.1-3
  5. Upgrade

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

    Fixed in 7:5.1.9-0+deb12u1Fixed in 7:7.1.5-0+deb13u1Fixed in 7:9.0.2-4
  6. Upgrade

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

    Fixed in 7.1.1-r0

Event History

Apr 17, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via OSV·12:00 AM
DescriptionSeverity
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 2, 2026
Data Sourced
via OSV·12:01 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2024-31582?

CVE-2024-31582 has been classified as a high severity vulnerability due to its potential to cause undefined behavior and Denial of Service.

2

How do I fix CVE-2024-31582?

To mitigate CVE-2024-31582, update FFmpeg to version 7:6.1.1-3ubuntu5+ or a later version, or use 7:6.0-6ubuntu1.1 for Ubuntu.

3

Which versions of FFmpeg are affected by CVE-2024-31582?

CVE-2024-31582 affects FFmpeg version n6.1 and earlier.

4

What impact does CVE-2024-31582 have on systems?

CVE-2024-31582 can lead to undefined behavior or Denial of Service when processing specially crafted inputs.

5

Is there a workaround for CVE-2024-31582?

There are no known workarounds for CVE-2024-31582; updating to a patched version is recommended.

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