CVE-2026-125221 FFmpeg through 9.0.2 Uncontrolled Recursion in FLAC Parser score_header()
- Exploited in the wild
- Not known
- Fix
- None listed
What is CVE-2026-125221?
CVE-2026-125221 is a medium-severity vulnerability in FFmpeg, published on 9 Nov 2026.
Official description
FFmpeg through 9.0.2 contains an uncontrolled recursion vulnerability in score_header() in libavcodec/flac_parser.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.
Weakness: CWE-674
Which versions are affected by CVE-2026-125221?
How do I fix CVE-2026-125221?
No fix has been published for CVE-2026-125221 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-125221 being exploited?
There is no known exploitation of CVE-2026-125221 in the wild and no public exploit code.
Sources
Also known as GHSA-q537-2h8q-7vfj, UBUNTU-CVE-2026-125221.