PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-125221 FFmpeg CVE debrief

A vulnerability in the score_header() function of libavcodec/flac_parser.c in FFmpeg through version 9.0.2 allows for uncontrolled recursion. This can be exploited by providing a FLAC stream with numerous small, valid-looking frame headers, leading to deep recursion that crashes the process during demuxing or parsing. The vulnerability is caused by an uncontrolled recursion in the score_header() function, which fails to limit the recursion depth when processing FLAC files. Defenders responsible for media processing systems, FFmpeg deployments, and systems that handle FLAC file decoding should assess exposure to this vulnerability.

Vendor
FFmpeg
Product
Unknown
CVSS
MEDIUM 6.8
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 media processing systems, FFmpeg deployments, and systems that handle FLAC file decoding should assess exposure to this vulnerability. This includes teams managing multimedia applications, video processing services, and any infrastructure relying on FFmpeg for FLAC decoding.

Why it matters

This vulnerability in FFmpeg's FLAC parser can lead to crashes and denial of service conditions when processing crafted FLAC files. Defenders should verify and update FFmpeg installations, especially in media processing and multimedia applications.

  • Potential crashes of media processing applications due to crafted FLAC input.
  • Denial of service (DoS) conditions caused by excessive recursion.
  • Need for verification of FFmpeg version and exposure to FLAC file processing.
  • Potential for increased resource utilization leading to performance degradation.

Technical summary

The score_header() function in libavcodec/flac_parser.c of FFmpeg through 9.0.2 does not properly limit recursion during FLAC file parsing. This allows attackers to provide crafted FLAC input that causes deep recursion, leading to a crash during demuxing or parsing. The vulnerability is due to the lack of adequate recursion depth checks in the affected function. Defenders should prioritize verifying and updating FFmpeg installations to prevent potential crashes caused by crafted FLAC input. This is particularly important for systems that handle media processing or rely on FFmpeg for decoding FLAC files.

Defensive priority

Defenders should prioritize verifying and updating FFmpeg installations to prevent potential crashes caused by crafted FLAC input. This is particularly important for systems that handle media processing or rely on FFmpeg for decoding FLAC files.

Recommended defensive actions

  • Verify and update FFmpeg installations to the latest version to prevent potential crashes caused by crafted FLAC input.
  • Implement input validation and sanitization for FLAC files to prevent exploitation of this vulnerability.
  • Monitor systems that use FFmpeg for decoding FLAC files for potential crashes or unusual behavior.
  • 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 uncontrolled recursion in the score_header() function of libavcodec/flac_parser.c. This function fails to limit the recursion depth when processing FLAC files, leading to a potential crash. The issue was reported via the GitHub Advisory Database and is tracked under CVE-2026-125221.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-125221 CVE Program record

    Publisher, destination, and source semantics verified

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

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

  • CVE-2026-125221 NVD vulnerability detail

    Publisher, destination, and source semantics verified

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

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

Supplemental references

  • FFmpeg through 9.0.2 contains an uncontrolled recursion vulnerability in score_header() in...

    Unverified legacy reference

    URL: https://github.com/advisories/GHSA-q537-2h8q-7vfj

    github_advisory_database

  • Source reference

    Unverified legacy reference

    URL: https://github.com/FFmpeg/FFmpeg/commit/972fe1ccd326538fe9a6b5d5094b7880b5443429

    Supplemental source

  • Source reference

    Unverified legacy reference

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

    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/flac_parser.c

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://www.vulncheck.com/advisories/ffmpeg-through-9.0.2-uncontrolled-recursion-in-flac-parser-score-header

    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.