CVE-2020-13904: Use After Free

Published Jun 7, 2020
·
Updated

FFmpeg 2.8 and 4.2.3 has a use-after-free via a crafted EXTINF duration in an m3u8 file because parseplaylist in libavformat/hls.c frees a pointer, and later that pointer is accessed in avprobeinputformat3 in libavformat/format.c.

Affected Software

31 affected componentsFixes available
FFmpeg FFmpeg=2.8
FFmpeg FFmpeg=4.2.3
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=20.04
Debian Debian Linux=9.0
Debian Debian Linux=10.0
debian/ffmpeg
7:4.3.7-0+deb11u17:4.3.9-0+deb11u27:5.1.8-0+deb12u17:7.1.3-0+deb13u17:8.0.1-37:8.1-3
alpine/ffmpeg<4.1.6-r0
4.1.6-r0
alpine/ffmpeg<4.2.4-r0
4.2.4-r0
alpine/ffmpeg<4.3-r0
4.3-r0
alpine/ffmpeg<4.3-r0
4.3-r0
alpine/ffmpeg<4.3-r0
4.3-r0
alpine/ffmpeg<4.3-r0
4.3-r0
alpine/ffmpeg<4.3-r0
4.3-r0
alpine/ffmpeg<4.3-r0
4.3-r0
alpine/ffmpeg<4.3-r0
4.3-r0
alpine/ffmpeg<4.3-r0
4.3-r0
alpine/ffmpeg<4.3-r0
4.3-r0
alpine/ffmpeg<4.3-r0
4.3-r0
alpine/ffmpeg<4.3-r0
4.3-r0
alpine/ffmpeg<4.3-r0
4.3-r0
alpine/ffmpeg<4.3-r0
4.3-r0
alpine/ffmpeg<4.0.6-r0
4.0.6-r0
alpine/ffmpeg4<4.3-r0
4.3-r0
alpine/ffmpeg4<4.3-r0
4.3-r0
alpine/ffmpeg4<4.3-r0
4.3-r0
alpine/ffmpeg4<4.3-r0
4.3-r0
alpine/ffmpeg4<4.3-r0
4.3-r0
alpine/ffmpeg4<4.3-r0
4.3-r0
alpine/ffmpeg4<4.3-r0
4.3-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 7:4.3.7-0+deb11u1Fixed in 7:4.3.9-0+deb11u2Fixed in 7:5.1.8-0+deb12u1Fixed in 7:7.1.3-0+deb13u1Fixed in 7:8.0.1-3Fixed in 7:8.1-3
  2. Upgrade

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

    Fixed in 4.1.6-r0
  3. Upgrade

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

    Fixed in 4.2.4-r0
  4. Upgrade

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

    Fixed in 4.3-r0
  5. Upgrade

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

    Fixed in 4.0.6-r0
  6. Upgrade

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

    Fixed in 4.3-r0

Event History

Jun 7, 2020
CVE Published
via MITRE·06:07 PM
Data Sourced
via MITRE·06:07 PM
Description
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·07:15 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2020-13904?

CVE-2020-13904 is a vulnerability in FFmpeg 2.8 and 4.2.3 that allows for a use-after-free attack via a crafted EXTINF duration in an m3u8 file.

2

How severe is CVE-2020-13904?

CVE-2020-13904 has a severity score of 5.5, which is considered medium.

3

Which software versions are affected by CVE-2020-13904?

FFmpeg versions 2.8 and 4.2.3 are affected by CVE-2020-13904.

4

How can I fix CVE-2020-13904?

To fix CVE-2020-13904, update to FFmpeg version 4.2.4-1ubuntu0.1 or later.

5

Where can I find more information about CVE-2020-13904?

More information about CVE-2020-13904 can be found at the following references: [Link 1](https://patchwork.ffmpeg.org/project/ffmpeg/patch/20200529033905.41926-1-lq@chinaffmpeg.org/), [Link 2](https://trac.ffmpeg.org/ticket/8673), [Link 3](https://www.debian.org/security/2020/dsa-4722).

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