PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-125213 FFmpeg CVE debrief

A heap buffer overflow vulnerability exists in FFmpeg through version 9.0.2 in the PSD decoder within libavcodec/psd.c. This vulnerability allows attackers to corrupt heap memory on 32-bit builds by providing a crafted PSD image with dimensions and channel counts whose product exceeds 4 GB. This causes the av_malloc allocation size to be truncated, allowing decode_rle() to write attacker-controlled data past the buffer, potentially leading to crashes or code execution.

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-14
Advisory published
2026-11-09
Advisory updated
2026-11-14

Who should care

Defenders responsible for 32-bit deployments of FFmpeg, particularly those handling image processing or exposed to untrusted image sources, should assess exposure and potential impacts.

Why it matters

This vulnerability allows attackers to corrupt heap memory on 32-bit builds of FFmpeg through 9.0.2 by supplying crafted PSD images. Defenders should prioritize verifying exposure in 32-bit deployments and assessing potential impacts.

  • Potential for system crashes due to buffer overflow
  • Possible code execution on 32-bit builds
  • Need for verification of exposure in 32-bit deployments
  • Priority for patching or mitigating vulnerable systems

Technical summary

The vulnerability exists in libavcodec/psd.c of FFmpeg through 9.0.2. By supplying a crafted PSD image with large dimensions and channel counts, attackers can cause a heap buffer overflow on 32-bit builds. This occurs because the product of dimensions and channel counts can exceed 4 GB, truncating the allocation size and allowing decode_rle() to write past the buffer. The issue is specific to 32-bit builds, where memory allocation limitations can be exploited. Defenders should focus on verifying exposure in 32-bit deployments and assessing potential impacts.

Defensive priority

Defenders should prioritize verifying exposure in 32-bit deployments and assess the feasibility of code execution impacts.

Recommended defensive actions

  • Verify 32-bit deployments of FFmpeg for exposure
  • Assess the feasibility of code execution impacts
  • Monitor for crafted PSD images
  • Consider compensating controls for unpatched systems
  • Review vendor guidance for patching or mitigating vulnerable systems
  • Track exceptions and retest remediated assets
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review

Evidence notes

The vulnerability is confirmed in FFmpeg version 9.0.2. Official sources include the CVE Program and NVD. Additional details are provided by GitHub Advisory Database and supplemental sources. Evidence is limited to public CVE details and NVD assessments. Defenders should verify 32-bit deployments and assess potential impacts with limited public information.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-125213 CVE Program record

    Publisher, destination, and source semantics verified

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

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

  • CVE-2026-125213 NVD vulnerability detail

    Publisher, destination, and source semantics verified

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

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

Supplemental references

  • FFmpeg through 9.0.2 contains a heap buffer overflow vulnerability in the PSD decoder in...

    Unverified legacy reference

    URL: https://github.com/advisories/GHSA-px55-qvvr-j3r4

    github_advisory_database

  • Source reference

    Unverified legacy reference

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

    Supplemental source

  • Source reference

    Unverified legacy reference

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

    Supplemental source

  • Source reference

    Unverified legacy reference

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

    Supplemental source

  • Source reference

    Unverified legacy reference

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

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-heap-buffer-overflow-via-psd-decoder-rle-path

    Supplemental source

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.