{"answers":{"affected":"1 open source package ship an affected version, including ffmpeg/ffmpeg. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-135722 in the wild and no public exploit code.","exposure":"An affected version is only exploitable if your software calls peak_init_writer or wav_write_packet. Many projects that include it are not exposed.","fix":"Upgrade ffmpeg/ffmpeg to 9.1 or later.","what":"CVE-2026-135722 is a high-severity memory corruption vulnerability in FFmpeg, published on 24 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-135722 and fix it if it is affected.\n\nWhat it is: CVE-2026-135722 is a high-severity memory corruption vulnerability in FFmpeg, published on 24 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-135722 in the wild and no public exploit code.\nExposure: An affected version is only exploitable if your software calls peak_init_writer or wav_write_packet. Many projects that include it are not exposed.\n\nAffected packages and fixed versions:\n- ffmpeg/ffmpeg (GitHub): affected all versions; fixed in 9.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n   If an affected version is present, also search the code for calls to peak_init_writer or wav_write_packet and report whether any exist.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-135722/ (Markdown: https://insights.sbomify.com/CVE-2026-135722/index.md)","id":"CVE-2026-135722","markdown":"https://insights.sbomify.com/CVE-2026-135722/index.md","name":"CVE-2026-135722","record":{"aliases":["DEBIAN-CVE-2026-135722","ECHO-e151-6bab-9dc6","GHSA-6g37-r68h-8wh2","UBUNTU-CVE-2026-135722"],"analysis":{"component_type":"library","exploitable_when_present":false,"fix_type":"upgrade","impacts":["denial_of_service","code_execution"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"multimedia library","requires_auth":"none","requires_specific_call":true,"summary":"Crafted audio with zero channels can overflow heap memory in FFmpeg's WAV encoder, crashing or possibly executing code; FFmpeg users should care.","user_interaction":"required","vuln_class":"memory_corruption","vulnerable_functions":["peak_init_writer","wav_write_packet"]},"analysis_generated_by":"sbomify/insights-2b-fp8","assigner":"VulnCheck","component":null,"cpe":[{"criteria":[{"cpe":"cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*","source":"nvd","version_end_excluding":"9.1"}],"n_criteria":1,"name":"FFmpeg","product":"ffmpeg","vendor":"ffmpeg"}],"cvss":{"score":8.5,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"description":"FFmpeg before 9.1 contains a heap-based buffer overflow vulnerability in peak_init_writer() and wav_write_packet() in libavformat/wavenc.c that allows attackers to corrupt heap memory by supplying audio with zero channels. Attackers can provide a crafted PCM stream declaring no channels for WAV output with peak envelope enabled, causing out-of-bounds writes past peak_maxpos and peak_maxneg arrays, crashes, and potential code execution.","ecosystems":["GitHub"],"exploits":{"exploitdb":0,"first_seen":"2026-11-24","github_poc":2,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-11-24T13:50:00Z","kind":"github_poc","ref":"https://github.com/googlesky/CVE-2026-135722","stars":0,"title":"FFmpeg \u003c9.1: wavenc peak_init_writer() accepts zero channels, sizing the peak buffer to zero — wav_write_packet overflows the heap. Verbatim guard from 0b1c279^ vs fix with ASan: heap WRITE overflow on vuln, ERANGE on fixed"},{"date":"2026-11-24T16:01:33Z","kind":"github_poc","ref":"https://github.com/cveForge/CVE-2026-135722","stars":0,"title":"PoC for CVE-2026-135722 — FFmpeg wav_write_packet Heap Overflow (CVSS 7.8)"}],"tier":"poc_unverified"},"has_fix":false,"headline":"FFmpeg before 9.1 Heap Buffer Overflow via WAV Muxer Peak Envelope Writer","id":"CVE-2026-135722","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"GitHub","product":"ffmpeg:ffmpeg","products":["ffmpeg:ffmpeg"],"type":"memory_corruption","year":"2026"},"main_cpe":null,"main_fixed":["9.1"],"main_package":"ffmpeg/ffmpeg","n_packages":1,"n_references":5,"n_vendor_status":1,"next":{"headline":"FFmpeg before 9.1 Double Free in IMF CPL Parser fill_marker()","id":"CVE-2026-135723"},"nickname":null,"packages":[{"ecosystem":"GitHub","fixed":["9.1"],"introduced":["0"],"last_affected":[],"name_kind":null,"package":"ffmpeg/ffmpeg","purl":"pkg:github/ffmpeg/ffmpeg","purl_source":"cna","scope":"upstream","source":"CVE-2026-135722"}],"prev":{"headline":"FFmpeg before 9.1 Infinite Loop via ff_rtp_send_vc2hq() in rtpenc_vc2hq.c","id":"CVE-2026-135721"},"products":["FFmpeg"],"published":"2026-11-24","related":[{"cvss_score":10,"headline":"Memory corruption in ffmpeg:ffmpeg","id":"CVE-2013-0864","kev_date_added":null,"published":"2013-11-23"},{"cvss_score":10,"headline":"Memory corruption in ffmpeg:ffmpeg","id":"CVE-2013-0872","kev_date_added":null,"published":"2013-11-23"},{"cvss_score":10,"headline":"Memory corruption in ffmpeg:ffmpeg","id":"CVE-2013-0873","kev_date_added":null,"published":"2013-11-23"},{"cvss_score":10,"headline":"Null dereference in ffmpeg:ffmpeg","id":"CVE-2013-4265","kev_date_added":null,"published":"2013-11-23"},{"cvss_score":10,"headline":"Other in ffmpeg:ffmpeg","id":"CVE-2011-3937","kev_date_added":null,"published":"2013-01-05"},{"cvss_score":10,"headline":"Other in ffmpeg:ffmpeg","id":"CVE-2012-2772","kev_date_added":null,"published":"2012-09-10"},{"cvss_score":10,"headline":"Memory corruption in ffmpeg:ffmpeg","id":"CVE-2012-2775","kev_date_added":null,"published":"2012-09-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","text_fixes":[],"updated":"2026-11-28","vendor_status":[{"n_packages":1,"name":"Upstream","packages":[{"fixed":["9.1"],"name":"ffmpeg:ffmpeg","sources":["NVD"],"status":"fixed"}],"release":null,"scope":"upstream","status":"fixed","statuses":{"fixed":1},"vendor":null}],"vendors":["FFmpeg"]},"summary":"Crafted audio with zero channels can overflow heap memory in FFmpeg's WAV encoder, crashing or possibly executing code; FFmpeg users should care.","url":"https://insights.sbomify.com/CVE-2026-135722/"}