CVE-2022-2566

Source
https://cve.org/CVERecord?id=CVE-2022-2566
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-2566.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-2566
Downstream
Related
Published
2022-09-23T11:10:14.367Z
Modified
2026-07-22T02:24:36.743972Z
Severity
  • 9.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Heap-memory write in FFMPEG
Details

A heap out-of-bounds memory write exists in FFMPEG since version 5.1. The size calculation in build_open_gop_key_points() goes through all entries in the loop and adds sc->ctts_data[i].count to sc->sample_offsets_count. This can lead to an integer overflow resulting in a small allocation with av_calloc(). An attacker can cause remote code execution via a malicious mp4 file. We recommend upgrading past commit c953baa084607dd1d84c3bfcce3cf6a87c3e6e05

Database specific
{
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "introduced": "ab77b878f1205225c6de1370fb0e998dbcc8bc69"
                },
                {
                    "last_affected": "ab77b878f1205225c6de1370fb0e998dbcc8bc69"
                },
                {
                    "fixed": "c953baa084607dd1d84c3bfcce3cf6a87c3e6e05"
                }
            ],
            "source": "AFFECTED_FIELD"
        }
    ],
    "cwe_ids": [
        "CWE-122"
    ],
    "cna_assigner": "Google",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/2xxx/CVE-2022-2566.json"
}
References

Affected packages

Git / git.ffmpeg.org/ffmpeg.git

Affected ranges

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

Affected versions

5.*
5.1
n5.*
n5.1-dev
n5.2-dev

Database specific

vanir_signatures_modified
"2026-07-22T02:24:36Z"
vanir_signatures
[
    {
        "signature_type": "Line",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "229648891667041450029361493606381806304",
                "135872466468465938462320271973817091921",
                "210085637948337441042887757423541642970",
                "86198498164871402896199974580337423354",
                "121449979526773324259872295402571671113",
                "50255533385114424664651841403325448377",
                "32389276260174103705251316886652202128",
                "319058207834156408004807609848915542153",
                "150489999679500154117254249613797223827",
                "280751541028273460609967900500999004211",
                "7058286243398018117911243721609085803",
                "212616978249885233513896020834881085416",
                "309461606343329441956372708679658228926",
                "16390099522419099115180149235540250455"
            ]
        },
        "signature_version": "v1",
        "source": "https://github.com/ffmpeg/ffmpeg/commit/c953baa084607dd1d84c3bfcce3cf6a87c3e6e05",
        "id": "CVE-2022-2566-64df0c29",
        "target": {
            "file": "libavformat/mov.c"
        }
    },
    {
        "signature_type": "Function",
        "deprecated": false,
        "digest": {
            "length": 1772.0,
            "function_hash": "143989625785103494375096093135229489196"
        },
        "signature_version": "v1",
        "source": "https://github.com/ffmpeg/ffmpeg/commit/c953baa084607dd1d84c3bfcce3cf6a87c3e6e05",
        "id": "CVE-2022-2566-ffc21973",
        "target": {
            "function": "build_open_gop_key_points",
            "file": "libavformat/mov.c"
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-2566.json"