{"id":"CVE-2026-125222","state":"PUBLISHED","title":"FFmpeg through 9.0.2 Heap Buffer Overflow via hap_parse_frame_header()","description":"FFmpeg through 9.0.2 contains an integer overflow vulnerability in hap_parse_frame_header() in libavcodec/hapdec.c that allows attackers to trigger a heap buffer overflow on 32-bit builds. Attackers can craft Hap video frames with Snappy length prefixes that wrap tex_size, causing decompress_chunks_thread() to write outside tex_buf and crash the application or potentially execute code.","publishedAt":"2026-11-09T19:11:35.913Z","updatedAt":"2026-11-09T19:11:35.913Z","severity":{"score":7.3,"label":"High","version":"4.0","vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck"},"assigner":"VulnCheck","products":["FFmpeg FFmpeg"],"affected":[{"vendor":"FFmpeg","product":"FFmpeg","packageURL":"pkg:github/ffmpeg/ffmpeg","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"9.0.2","versionType":"semver"}],"repo":"https://code.ffmpeg.org/FFmpeg/FFmpeg"}],"references":["https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25702","https://github.com/FFmpeg/FFmpeg/commit/62c308e0416bb701447817fe6f0bff074d206215","https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/hapdec.c#L215","https://github.com/FFmpeg/FFmpeg","https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-via-hap-parse-frame-header"],"weaknesses":["CWE-190"],"ingestedAt":"2026-11-09T19:14:06.399Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/125xxx/CVE-2026-125222.json","commit":"61d6df80db1b12b1399aa01bc455626e606d2471","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-125222","state":"PUBLISHED","datePublished":"2026-11-09T19:11:35.913Z","dateUpdated":"2026-11-09T19:11:35.913Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-11-09T18:15:19.944Z"},"containers":{"cna":{"title":"FFmpeg through 9.0.2 Heap Buffer Overflow via hap_parse_frame_header()","descriptions":[{"lang":"en","value":"FFmpeg through 9.0.2 contains an integer overflow vulnerability in hap_parse_frame_header() in libavcodec/hapdec.c that allows attackers to trigger a heap buffer overflow on 32-bit builds. Attackers can craft Hap video frames with Snappy length prefixes that wrap tex_size, causing decompress_chunks_thread() to write outside tex_buf and crash the application or potentially execute code."}],"affected":[{"vendor":"FFmpeg","product":"FFmpeg","packageURL":"pkg:github/ffmpeg/ffmpeg","defaultStatus":"unaffected","versions":[{"version":"0","status":"affected","lessThanOrEqual":"9.0.2","versionType":"semver"}],"repo":"https://code.ffmpeg.org/FFmpeg/FFmpeg"}],"references":[{"url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25702","tags":["issue-tracking"]},{"url":"https://github.com/FFmpeg/FFmpeg/commit/62c308e0416bb701447817fe6f0bff074d206215","tags":["patch"],"name":"Patch Commit"},{"url":"https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/hapdec.c#L215","tags":["technical-description"]},{"url":"https://github.com/FFmpeg/FFmpeg","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-via-hap-parse-frame-header","name":"VulnCheck Advisory: FFmpeg through 9.0.2 Heap Buffer Overflow via hap_parse_frame_header()","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","attackVector":"LOCAL","attackComplexity":"HIGH","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":7.3,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-190","lang":"en","description":"Integer Overflow or Wraparound","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-09T19:11:35.913Z"},"datePublic":"2026-11-03T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*","versionEndIncluding":"9.0.2"}]}]}],"credits":[{"lang":"en","value":"Joshua Rogers (AISLE Research)","type":"finder"},{"lang":"en","value":"Michael Niedermayer","type":"remediation developer"}],"x_generator":{"engine":"vulncheck-endgame"}}}}}