CVE-2024-31581

Source
https://cve.org/CVERecord?id=CVE-2024-31581
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-31581.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-31581
Downstream
Published
2024-04-17T00:00:00Z
Modified
2026-08-18T16:55:36Z
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/cbs_h266_syntax_template.c. This vulnerability allows attackers to cause undefined behavior within the application.

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

Affected versions

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

Database specific

source
"https://storage.googleapis.com/osv-test-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
{
    "cpe":  "cpe:2.3:a:ffmpeg:ffmpeg:6.1:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "6.1"
        },
        {
            "last_affected":  "6.1"
        }
    ],
    "source":  [
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

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

Database specific

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