{"id":"CVE-2026-125222","summary":"FFmpeg through 9.0.2 Heap Buffer Overflow via hap_parse_frame_header()","details":"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.","modified":"2026-11-15T07:04:18.892645478Z","published":"2026-11-09T19:11:35.913Z","database_specific":{"cwe_ids":["CWE-190"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125222.json","cna_assigner":"VulnCheck"},"references":[{"type":"WEB","url":"https://code.ffmpeg.org/FFmpeg/FFmpeg"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/125xxx/CVE-2026-125222.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125222"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-via-hap-parse-frame-header"},{"type":"REPORT","url":"https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25702"},{"type":"FIX","url":"https://github.com/FFmpeg/FFmpeg/commit/62c308e0416bb701447817fe6f0bff074d206215"},{"type":"PACKAGE","url":"https://github.com/FFmpeg/FFmpeg"},{"type":"ARTICLE","url":"https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/hapdec.c#L215"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ffmpeg/ffmpeg","events":[{"introduced":"0"},{"fixed":"62c308e0416bb701447817fe6f0bff074d206215"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"last_affected":"9.0.2"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"fixed":"62c308e0416bb701447817fe6f0bff074d206215"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["n9.1-dev","n8.2-dev","n8.1-dev","n7.2-dev","n7.1-dev","n6.2-dev","n6.1-dev","n5.2-dev","n5.1-dev","n4.5-dev","n4.4-dev","n4.3-dev","n4.2-dev","n4.1-dev","n3.5-dev","n3.4-dev","n3.3-dev","n3.2-dev","n3.1-dev","n2.9-dev","n2.8-dev","n2.7-dev","n2.6-dev","n2.5-dev","n2.4-dev","n2.3-dev","n2.2-dev","n2.0","n2.1-dev","n1.3-dev","n1.2-dev","n1.1-dev","n0.12-dev","n0.11-dev","n0.8","N"],"database_specific":{"vanir_signatures_modified":"2026-11-15T07:04:18Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-125222.json","vanir_signatures":[{"digest":{"function_hash":"324604161265288039490615368542998831342","length":2376},"id":"CVE-2026-125222-029ee0d8","signature_type":"Function","signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/62c308e0416bb701447817fe6f0bff074d206215","target":{"file":"libavcodec/hapdec.c","function":"hap_parse_frame_header"},"deprecated":false},{"signature_version":"v1","source":"https://github.com/ffmpeg/ffmpeg/commit/62c308e0416bb701447817fe6f0bff074d206215","target":{"file":"libavcodec/hapdec.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["285148472084757820517681095195918658636","4658609381411951591833824313677497407","69843058187308822610085122380560615689","97876018029299664345813899650635272960","326202291905620659118545393064851793630","191493449563411098803305270735530496946","82773544755686229306924564379524094232","43823228210849181876788817471101022168","191554121831070933676300455466039641666","190899507665369559759508231706257316002","288896432555651419591562739388832152088","141880290796066680175279442846685197196","28672449023467364967064532676937749734","183844862148101741651754763827652262515","71180251508342932004532228706518674129","242919125354610941271742138064391758503","254350471846143892462299062991324531932","321982336592623703586768949069013870681","298556790480869369011910269412965214069","2092362361875710360173925720876201796","116436067690681194096478160214019882185"]},"id":"CVE-2026-125222-922d35d7","signature_type":"Line"}]}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}