ffmpeg — security advisory
FFmpeg 7.0 through 8.1.2, fixed in commit 4da9812, contains a heap out-of-bounds write vulnerability in the vf_quirc filter that allows an attacker to corrupt heap memory by supplying a crafted PGS/SUP subtitle file with mismatched frame dimensions. Attackers can provide a subtitle file whose second presentation has larger dimensions than its first, causing av_image_copy_plane() to copy data exceeding the initial allocation size into the undersized libquirc grayscale image buffer, resulting in heap corruption and process crash with potential for code execution.
- Products
- ffmpeg
- Affected versions
- 7:7.1.1-1ubuntu4, 7:7.1.2-1ubuntu3, 7:7.1.2-1ubuntu4, 7:7.1.3-1ubuntu1, 7:8.0.1-2ubuntu1, 7:8.0.1-3ubuntu1, 7:8.0.1-3ubuntu2, 7:8.0.1-3ubuntu2+esm1, 7:8.0.1-3ubuntu2+esm3, 7:8.0.1-3ubuntu2+esm4, 7:8.0.1-3ubuntu2+esm5, 7:8.1-3ubuntu3, 7:8.1.2-2ubuntu2
- Fixed versions
- Not specified
- CVEs
- CVE-2026-66041
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:50 UTC · Revision 1
Source evidence
FFmpeg 7.0 through 8.1.2, fixed in commit 4da9812, contains a heap out-of-bounds write vulnerability in the vf_quirc filter that allows an attacker to corrupt heap memory by supplying a crafted PGS/SUP subtitle file with mismatched frame dimensions. Attackers can provide a subtitle file whose second presentation has larger dimensions than its first, causing av_image_copy_plane() to copy data exceeding the initial allocation size into the undersized libquirc grayscale image buffer, resulting in heap corruption and process crash with potential for code execution.
osv:UBUNTU-CVE-2026-66041
ffmpeg
Fixed versions: Not specified
ffmpeg
Fixed versions: Not specified
Complete source record
{
"id": "8d8319419f5a273906b424a2f9476f82de99ffd6fb433dff55ddeaa9ae0b5262",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-66041",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-66041",
"summary": "FFmpeg 7.0 through 8.1.2, fixed in commit 4da9812, contains a heap out-of-bounds write vulnerability in the vf_quirc filter that allows an attacker to corrupt heap memory by supplying a crafted PGS/SUP subtitle file with mismatched frame dimensions. Attackers can provide a subtitle file whose second presentation has larger dimensions than its first, causing av_image_copy_plane() to copy data exceeding the initial allocation size into the undersized libquirc grayscale image buffer, resulting in heap corruption and process crash with potential for code execution.",
"evidence": "osv:UBUNTU-CVE-2026-66041",
"products": [
{
"name": {
"value": "ffmpeg",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "7:8.0.1-3ubuntu2",
"evidence": "/affected/0/versions"
},
{
"value": "7:8.1-3ubuntu3",
"evidence": "/affected/0/versions"
},
{
"value": "7:8.1.2-2ubuntu2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "ffmpeg",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "7:7.1.1-1ubuntu4",
"evidence": "/affected/1/versions"
},
{
"value": "7:7.1.2-1ubuntu3",
"evidence": "/affected/1/versions"
},
{
"value": "7:7.1.2-1ubuntu4",
"evidence": "/affected/1/versions"
},
{
"value": "7:7.1.3-1ubuntu1",
"evidence": "/affected/1/versions"
},
{
"value": "7:8.0.1-2ubuntu1",
"evidence": "/affected/1/versions"
},
{
"value": "7:8.0.1-3ubuntu1",
"evidence": "/affected/1/versions"
},
{
"value": "7:8.0.1-3ubuntu2",
"evidence": "/affected/1/versions"
},
{
"value": "7:8.0.1-3ubuntu2+esm1",
"evidence": "/affected/1/versions"
},
{
"value": "7:8.0.1-3ubuntu2+esm3",
"evidence": "/affected/1/versions"
},
{
"value": "7:8.0.1-3ubuntu2+esm4",
"evidence": "/affected/1/versions"
},
{
"value": "7:8.0.1-3ubuntu2+esm5",
"evidence": "/affected/1/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-66041",
"aliases": [
"UBUNTU-CVE-2026-66041"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
},
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ffmpeg",
"purl": "pkg:deb/ubuntu/ffmpeg?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"7:8.0.1-3ubuntu2",
"7:8.1-3ubuntu3",
"7:8.1.2-2ubuntu2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-66041.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ffmpeg",
"binary_version": "7:8.1.2-2ubuntu2"
},
{
"binary_name": "libavcodec-extra",
"binary_version": "7:8.1.2-2ubuntu2"
},
{
"binary_name": "libavcodec-extra62",
"binary_version": "7:8.1.2-2ubuntu2"
},
{
"binary_name": "libavcodec62",
"binary_version": "7:8.1.2-2ubuntu2"
},
{
"binary_name": "libavdevice62",
"binary_version": "7:8.1.2-2ubuntu2"
},
{
"binary_name": "libavfilter-extra",
"binary_version": "7:8.1.2-2ubuntu2"
},
{
"binary_name": "libavfilter-extra11",
"binary_version": "7:8.1.2-2ubuntu2"
},
{
"binary_name": "libavfilter11",
"binary_version": "7:8.1.2-2ubuntu2"
},
{
"binary_name": "libavformat-extra",
"binary_version": "7:8.1.2-2ubuntu2"
},
{
"binary_name": "libavformat-extra62",
"binary_version": "7:8.1.2-2ubuntu2"
},
{
"binary_name": "libavformat62",
"binary_version": "7:8.1.2-2ubuntu2"
},
{
"binary_name": "libavutil60",
"binary_version": "7:8.1.2-2ubuntu2"
},
{
"binary_name": "libswresample6",
"binary_version": "7:8.1.2-2ubuntu2"
},
{
"binary_name": "libswscale9",
"binary_version": "7:8.1.2-2ubuntu2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "ffmpeg",
"purl": "pkg:deb/ubuntu/ffmpeg?arch=source&distro=esm-apps%2Fresolute",
"ecosystem": "Ubuntu:Pro:26.04:LTS"
},
"versions": [
"7:7.1.1-1ubuntu4",
"7:7.1.2-1ubuntu3",
"7:7.1.2-1ubuntu4",
"7:7.1.3-1ubuntu1",
"7:8.0.1-2ubuntu1",
"7:8.0.1-3ubuntu1",
"7:8.0.1-3ubuntu2",
"7:8.0.1-3ubuntu2+esm1",
"7:8.0.1-3ubuntu2+esm3",
"7:8.0.1-3ubuntu2+esm4",
"7:8.0.1-3ubuntu2+esm5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-66041.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "ffmpeg",
"binary_version": "7:8.0.1-3ubuntu2+esm5"
},
{
"binary_name": "libavcodec-extra",
"binary_version": "7:8.0.1-3ubuntu2+esm5"
},
{
"binary_name": "libavcodec-extra62",
"binary_version": "7:8.0.1-3ubuntu2+esm5"
},
{
"binary_name": "libavcodec62",
"binary_version": "7:8.0.1-3ubuntu2+esm5"
},
{
"binary_name": "libavdevice62",
"binary_version": "7:8.0.1-3ubuntu2+esm5"
},
{
"binary_name": "libavfilter-extra",
"binary_version": "7:8.0.1-3ubuntu2+esm5"
},
{
"binary_name": "libavfilter-extra11",
"binary_version": "7:8.0.1-3ubuntu2+esm5"
},
{
"binary_name": "libavfilter11",
"binary_version": "7:8.0.1-3ubuntu2+esm5"
},
{
"binary_name": "libavformat-extra",
"binary_version": "7:8.0.1-3ubuntu2+esm5"
},
{
"binary_name": "libavformat-extra62",
"binary_version": "7:8.0.1-3ubuntu2+esm5"
},
{
"binary_name": "libavformat62",
"binary_version": "7:8.0.1-3ubuntu2+esm5"
},
{
"binary_name": "libavutil60",
"binary_version": "7:8.0.1-3ubuntu2+esm5"
},
{
"binary_name": "libswresample6",
"binary_version": "7:8.0.1-3ubuntu2+esm5"
},
{
"binary_name": "libswscale9",
"binary_version": "7:8.0.1-3ubuntu2+esm5"
}
]
}
}
],
"modified": "2026-10-17T12:59:18.461403331Z",
"provider": "osv",
"upstream": [
"CVE-2026-66041"
],
"references": [
"https://ubuntu.com/security/CVE-2026-66041",
"https://www.cve.org/CVERecord?id=CVE-2026-66041",
"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23625",
"https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/4da9812e25894fb51d62a8875cfa8eb39b5e20f5",
"https://www.vulncheck.com/advisories/ffmpeg-heap-out-of-bounds-write-via-vf-quirc-filter"
]
},
"related_cves": [
{
"value": "CVE-2026-66041",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 359611,
"published_at": "2026-07-24T20:18:00+00:00"
}