CVE-2024-31581

Source
https://cve.org/CVERecord?id=CVE-2024-31581
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31581.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-31581
Downstream
Published
2024-04-17T00:00:00Z
Modified
2026-08-17T05:26:18.975265Z
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

FFmpeg version n6.1 was discovered to contain an improper validation of array index vulnerability in libavcodec/cbsh266syntax_template.c. This vulnerability allows attackers to cause undefined behavior within the application.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31581.json",
    "cna_assigner": "mitre"
}
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
{
    "source": "CPE_STRING",
    "cpe": "cpe:2.3:a:ffmpeg:ffmpeg:6.1:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "6.1"
        },
        {
            "last_affected": "6.1"
        }
    ]
}

Affected versions

6.*
6.1
n6.*
n6.1-dev

Database specific

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

Git / github.com/ffmpeg/ffmpeg

Affected ranges

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

Affected versions

6.*
6.1
n6.*
n6.1-dev
n6.2-dev

Database specific

vanir_signatures_modified
"2026-08-17T05:26:18Z"
vanir_signatures
[
    {
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "243846168522435901475398465128611970493",
                "258198578430153156272222716017777980796",
                "305358860117251820047432404442544515541",
                "50317458278124062005499996859226711436",
                "280845785478774785338356929297197901535",
                "183022241336373039497728604178110771281",
                "117126856626383008197633066464174118708"
            ]
        },
        "signature_type": "Line",
        "source": "https://github.com/ffmpeg/ffmpeg/commit/ce0c178a408d43e71085c28a47d50dc939b60196",
        "id": "CVE-2024-31581-4e2782ed",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "file": "libavcodec/cbs_h266_syntax_template.c"
        }
    },
    {
        "digest": {
            "function_hash": "52845286316637006315757957763183738972",
            "length": 21288.0
        },
        "signature_type": "Function",
        "source": "https://github.com/ffmpeg/ffmpeg/commit/ce0c178a408d43e71085c28a47d50dc939b60196",
        "id": "CVE-2024-31581-d8d3994d",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "file": "libavcodec/cbs_h266_syntax_template.c",
            "function": "(pps)"
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31581.json"