FFmpeg versions 2.1 through 8.1.2 contains a heap buffer overflow vulnerability in the VobSub subtitle demuxer that allows attackers to corrupt adjacent heap memory by supplying a malicious .sub/.idx subtitle file declaring more distinct stream IDs than the fixed-size array bounds in libavformat/mpeg.c. Attackers can craft a subtitle file with excessive distinct stream IDs to trigger unbounded writes beyond the vobsub->q[] array boundary via ffsubtitlesqueue_insert(), potentially achieving arbitrary code execution in any application using FFmpeg's VobSub demuxer.
{
"cwe_ids": [
"CWE-122"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/64xxx/CVE-2026-64830.json",
"unresolved_ranges": [
{
"source": "AFFECTED_FIELD",
"extracted_events": [
{
"introduced": "2.1"
},
{
"last_affected": "8.1.2"
},
{
"introduced": "dbd495f066a85ba96b17433f4306582aa37c3951"
},
{
"last_affected": "dbd495f066a85ba96b17433f4306582aa37c3951"
}
]
},
{
"source": "CPE_FIELD",
"extracted_events": [
{
"introduced": "2.1"
},
{
"last_affected": "8.1.2"
}
]
},
{
"source": "DESCRIPTION",
"extracted_events": [
{
"introduced": "2.1"
},
{
"fixed": "8.1.2"
}
]
}
]
}