CVE-2026-125221: FFmpeg through 9.0.2 Uncontrolled Recursion in FLAC Parser score_header()
FFmpeg through 9.0.2 contains an uncontrolled recursion vulnerability in scoreheader() in libavcodec/flacparser.c that allows attackers to exhaust the thread stack via crafted FLAC input. Attackers can supply a FLAC stream packed with many small valid-looking frame headers, forcing deep recursion that crashes the process during demuxing or parsing.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
alpine/ffmpegto a version that resolves this vulnerability.Fixed in 8.1.4-r0 - Upgrade
Upgrade
debian/ffmpegto a version that resolves this vulnerability.Fixed in 7:7.1.6-0+deb13u1
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using FFmpeg through 9.0.2 that demux or parse attacker-supplied FLAC streams are exposed. The practical impact is a process crash from thread-stack exhaustion.
What must an attacker do to trigger the crash?
The attacker must provide a crafted FLAC stream containing many small, valid-looking frame headers. Exploitation requires the affected application to process that input, reflected by the required user interaction in the supplied severity vector.
Is confidentiality or data integrity affected?
The provided severity vector indicates no confidentiality or integrity impact. The stated impact is availability loss because parsing can exhaust the thread stack and crash the process.