CVE-2020-12284

Source
https://cve.org/CVERecord?id=CVE-2020-12284
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-12284.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2020-12284
Downstream
CLEANSTART (3)
DEBIAN (1)
JLSEC (1)
MGASA (1)
UBUNTU (1)
Published
2020-04-28T06:15:10Z
Modified
2026-08-17T05:26:10Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

cbs_jpeg_split_fragment in libavcodec/cbs_jpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEG_MARKER_SOS handling because of a missing length check.

Database specific
{
    "unresolved_ranges":  [
        {
            "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":  "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:debian:debian_linux:10.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "10.0"
                },
                {
                    "last_affected":  "10.0"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "debian:debian_linux"
        }
    ]
}
References

Affected packages

Git / git.ffmpeg.org/ffmpeg.git

Affected ranges

Type
GIT
Repo
https://git.ffmpeg.org/ffmpeg.git
Events
Database specific
Show details
{
    "cpe":  [
        "cpe:2.3:a:ffmpeg:ffmpeg:4.1:*:*:*:*:*:*:*",
        "cpe:2.3:a:ffmpeg:ffmpeg:4.2.2:*:*:*:*:*:*:*"
    ],
    "extracted_events":  [
        {
            "introduced":  "4.1"
        },
        {
            "last_affected":  "4.1"
        },
        {
            "introduced":  "4.2.2"
        },
        {
            "last_affected":  "4.2.2"
        }
    ],
    "source":  "CPE_STRING"
}

Affected versions

4.*
4.1
4.2.2
n4.*
n4.1-dev
n4.2
n4.2-dev
n4.2.1
n4.2.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-12284.json"

Git / github.com/ffmpeg/ffmpeg

Affected ranges

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

Affected versions

4.*
4.1
4.2.2
n4.*
n4.1
n4.1-dev
n4.1.1
n4.1.2
n4.1.3
n4.1.4
n4.1.5
n4.2
n4.2-dev
n4.2.1
n4.2.2
n4.3-dev

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-12284.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "295269910854795076654787475383993439121",
            "length":  3246
        },
        "id":  "CVE-2020-12284-05b42b91",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/ffmpeg/ffmpeg/commit/1812352d767ccf5431aa440123e2e260a4db2726",
        "target":  {
            "file":  "libavcodec/cbs_jpeg.c",
            "function":  "cbs_jpeg_split_fragment"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "95195660024913394212304132289173808057",
                "312525091208015857353260134168748076611",
                "298190530965200286121570828407286037464"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2020-12284-4194c84e",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/ffmpeg/ffmpeg/commit/1812352d767ccf5431aa440123e2e260a4db2726",
        "target":  {
            "file":  "libavcodec/cbs_jpeg.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "95195660024913394212304132289173808057",
                "312525091208015857353260134168748076611",
                "298190530965200286121570828407286037464"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2020-12284-8f9639c6",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/ffmpeg/ffmpeg/commit/a3a3730b5456ca00587455004d40c047f7b20a99",
        "target":  {
            "file":  "libavcodec/cbs_jpeg.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "95840289875798690280122319277904648598",
            "length":  3284
        },
        "id":  "CVE-2020-12284-e760d172",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/ffmpeg/ffmpeg/commit/a3a3730b5456ca00587455004d40c047f7b20a99",
        "target":  {
            "file":  "libavcodec/cbs_jpeg.c",
            "function":  "cbs_jpeg_split_fragment"
        }
    }
]
vanir_signatures_modified
"2026-08-17T05:26:10Z"