CVE-2020-13904

Source
https://cve.org/CVERecord?id=CVE-2020-13904
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-13904.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2020-13904
Downstream
Related
Published
2020-06-07T19:15:09.703Z
Modified
2026-07-26T05:54:05.627465Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": "16.04"
                },
                {
                    "last_affected": "16.04"
                },
                {
                    "introduced": "18.04"
                },
                {
                    "last_affected": "18.04"
                },
                {
                    "introduced": "20.04"
                },
                {
                    "last_affected": "20.04"
                }
            ],
            "source": "CPE_STRING",
            "vendor_product": "canonical:ubuntu_linux",
            "cpes": [
                "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*"
            ]
        },
        {
            "extracted_events": [
                {
                    "introduced": "9.0"
                },
                {
                    "last_affected": "9.0"
                },
                {
                    "introduced": "10.0"
                },
                {
                    "last_affected": "10.0"
                }
            ],
            "source": "CPE_STRING",
            "vendor_product": "debian:debian_linux",
            "cpes": [
                "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ]
        },
        {
            "extracted_events": [
                {
                    "introduced": "2.8"
                },
                {
                    "last_affected": "2.8"
                }
            ],
            "source": "CPE_STRING",
            "vendor_product": "ffmpeg:ffmpeg",
            "cpes": [
                "cpe:2.3:a:ffmpeg:ffmpeg:2.8:*:*:*:*:*:*:*"
            ]
        }
    ]
}
References

Affected packages

Git / github.com/ffmpeg/ffmpeg

Affected ranges

Type
GIT
Repo
https://github.com/ffmpeg/ffmpeg
Events
Database specific
{
    "extracted_events": [
        {
            "introduced": "2.8"
        },
        {
            "last_affected": "2.8"
        },
        {
            "introduced": "4.2.3"
        },
        {
            "last_affected": "4.2.3"
        }
    ],
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ],
    "cpe": [
        "cpe:2.3:a:ffmpeg:ffmpeg:2.8:*:*:*:*:*:*:*",
        "cpe:2.3:a:ffmpeg:ffmpeg:4.2.3:*:*:*:*:*:*:*"
    ]
}

Affected versions

2.*
2.8
4.*
4.2.3
n2.*
n2.8
n2.8-dev
n2.8.1
n2.8.10
n2.8.11
n2.8.12
n2.8.13
n2.8.14
n2.8.15
n2.8.16
n2.8.2
n2.8.3
n2.8.4
n2.8.5
n2.8.6
n2.8.7
n2.8.8
n2.8.9
n2.9-dev
n3.*
n3.1-dev
n3.2-dev
n3.3-dev
n3.4-dev
n3.5-dev
n4.*
n4.1-dev
n4.2
n4.2-dev
n4.2.1
n4.2.2
n4.2.3

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-13904.json"
vanir_signatures_modified
"2026-07-26T05:54:05Z"
vanir_signatures
[
    {
        "digest": {
            "line_hashes": [
                "158144811077034995109933837677768601857",
                "281751093908803107971940014393508807726",
                "240764462031438200492845385032705040109",
                "15703913043383878175200160282698241320",
                "138080608107875226115977774548120949879",
                "259048102838479733394805058517030239279",
                "17084527969274049166290416022132557131",
                "269990059958938381327368365588722984632"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2020-13904-2b8821e2",
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://github.com/ffmpeg/ffmpeg/commit/6959358683c7533f586c07a766acc5fe9544d8b2",
        "signature_type": "Line",
        "target": {
            "file": "libavformat/hls.c"
        }
    },
    {
        "digest": {
            "function_hash": "45061495392761575669141487341416533816",
            "length": 4983.0
        },
        "id": "CVE-2020-13904-f5815e55",
        "deprecated": false,
        "signature_version": "v1",
        "source": "https://github.com/ffmpeg/ffmpeg/commit/6959358683c7533f586c07a766acc5fe9544d8b2",
        "signature_type": "Function",
        "target": {
            "function": "parse_playlist",
            "file": "libavformat/hls.c"
        }
    }
]