PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-125227 FFmpeg CVE debrief

A heap buffer overflow vulnerability exists in FFmpeg through version 9.0.2, caused by an integer overflow in the `cbs_jpeg_write_scan()` function in `libavcodec/cbs_jpeg.c`. This vulnerability can be exploited by supplying a crafted MJPEG/JPEG stream with a scan of 512 MiB or more, processed by CBS bitstream filters like `filter_units`, which can corrupt the heap or crash the application.

Vendor
FFmpeg
Product
Unknown
CVSS
HIGH 7.3
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-09
Original CVE updated
2026-11-10
Advisory published
2026-11-09
Advisory updated
2026-11-10

Who should care

Defenders responsible for FFmpeg installations, especially in environments where FFmpeg is used to process untrusted input, should assess exposure and prioritize patching or mitigating this vulnerability.

Why it matters

This vulnerability can be exploited to corrupt the heap or crash the application, potentially leading to remote code execution. Defenders should prioritize patching or mitigating this vulnerability, especially in environments where FFmpeg is used to process untrusted input.

  • Potential heap corruption or application crash
  • Possible remote code execution
  • Required patching or mitigation to prevent exploitation
  • Need for monitoring and incident response planning

Technical summary

The vulnerability is caused by an integer overflow in the `cbs_jpeg_write_scan()` function in `libavcodec/cbs_jpeg.c`, which can lead to a heap buffer overflow on 32-bit builds. This vulnerability can be exploited by supplying a crafted MJPEG/JPEG stream with a scan of 512 MiB or more, processed by CBS bitstream filters like `filter_units`, which can corrupt the heap or crash the application. Defenders should prioritize patching or mitigating this vulnerability, especially in environments where FFmpeg is used to process untrusted input.

Defensive priority

Defenders should prioritize patching or mitigating this vulnerability, especially in environments where FFmpeg is used to process untrusted input.

Recommended defensive actions

  • Patch FFmpeg to version 9.0.3 or later
  • Restrict access to FFmpeg to trusted input only
  • Monitor FFmpeg for suspicious activity
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The vulnerability is caused by an integer overflow in the `cbs_jpeg_write_scan()` function, which can lead to a heap buffer overflow on 32-bit builds. The vulnerability can be exploited by supplying a crafted MJPEG/JPEG stream.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-125227 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-125227

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-125227 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-125227

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • FFmpeg through 9.0.2 Heap Buffer Overflow via cbs_jpeg_write_scan Integer Overflow

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/125xxx/CVE-2026-125227.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25232

    Supplemental source - issue-tracking

  • Source reference

    Unverified legacy reference

    URL: https://github.com/FFmpeg/FFmpeg/commit/b89ce54d93bf644433dfa9fbc34f19c22237691a

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/cbs_jpeg.c

    Supplemental source - technical-description

  • Source reference

    Unverified legacy reference

    URL: https://github.com/FFmpeg/FFmpeg

    Supplemental source - product

  • Source reference

    Unverified legacy reference

    URL: https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-via-cbs-jpeg-write-scan-integer-overflow

    Supplemental source - third-party-advisory

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.