Home › CVE › Vulnerabilities
CVE-2026-125072 — FFmpeg
One of 121 FFmpeg vulnerabilities published together by NVD.
VulnerabilitiesAnalysis
CVE-2026-125072: FFmpeg NULL pointer dereference in mp_decode_frame() can crash processes
FFmpeg through version 9.0.2 has a medium-severity (CVSS 5.7) NULL pointer dereference in the MP3 audio decoding path that can crash an application using the libavcodec API. The provided source does not describe a fix or any active exploitation.
Key points
- FFmpeg through 9.0.2 has a NULL pointer dereference in mp_decode_frame() in the MPEG audio decoder.
- The trigger is an oversized packet sent to the mp3adu decoder via the libavcodec API.
- NVD rates the flaw MEDIUM (CVSS 5.7); the reported impact is a process crash.
- The source does not report exploitation in the wild or a fixed version.
What's affected
The flaw affects FFmpeg through version 9.0.2, according to the National Vulnerability Database (NVD) entry for CVE-2026-125072. The defect is in the function mp_decode_frame() in libavcodec/mpegaudiodec_template.c, the code that handles MPEG audio decoding.
The source does not list specific fixed versions or confirm which build configurations are affected beyond the version range.
What the bug is
The decoder initializes a bit reader with init_get_bits(). That call can fail, but the code does not check for the failure after a signed integer overflow has already occurred. The result is that processing continues with a NULL buffer, and the program reads through it.
NVD says an attacker can reach this by passing an oversized packet to the mp3adu decoder through the libavcodec API. The reported impact is a crash of the process. The source does not describe code execution, data disclosure, or any other outcome.
How serious is it
NVD rates the issue MEDIUM with a CVSS score of 5.7. The main consequence is denial of service: an application that decodes attacker-supplied audio data could terminate. Because the trigger is an API-level packet, software that passes untrusted media into FFmpeg's decoders carries the most exposure. Standalone command-line use of FFmpeg on trusted files is less likely to be at risk.
Exploitation status
The source does not state whether this vulnerability is being exploited in the wild, and it does not mention a public proof of concept. Treat that as unknown rather than as confirmed absence.
What to do
No patch or vendor advisory is referenced in the source. Until one is available and confirmed, administrators should inventory where FFmpeg libraries are deployed, particularly in services that decode uploaded or third-party audio. Check your vendor or distribution for updated builds, and track the FFmpeg project's releases. Where feasible, isolate decoding tasks in sandboxed or restarted worker processes so a crash does not take down larger services.
Recommended actions
- Inventory systems and applications that link against libavcodec or run FFmpeg on untrusted input.
- Watch your vendor or distribution and the FFmpeg project for a patched release, and update when one is available.
- Run decoding of untrusted audio in isolated, auto-restarting worker processes to contain crashes.
- Monitor for unexpected crashes in media-processing services as an indicator of attempted triggering.
Summary
FFmpeg through 9.0.2 contains a NULL pointer dereference vulnerability in mp_decode_frame() in libavcodec/mpegaudiodec_template.c because init_get_bits() failure is ignored after a signed integer overflow. Attackers can pass an oversized packet to the mp3adu decoder through the libavcodec API, causing reads through a NULL buffer that crash the process.
Severity breakdown
Medium · 5.7
An attacker without an account can exploit this with local access if a user views or visits something, but only under specific conditions.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- high (only works under specific conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- yes, a user must view or visit something
- Impact
- high on availability, none on confidentiality and integrity
- Impact on other systems
- none
Weakness
- CWE-252: Unchecked Return Value
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| FFmpeg | ≤ 9.0.2 | — |
References by type
Patches and fixed releases
- code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25696
- github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/mpegaudiodec_template.c
- github.com/FFmpeg/FFmpeg/commit/0b007e0634de5b4424b9993c95a6c1c50de0115b
Other references
Affected
- FFmpeg
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-125072?
FFmpeg through version 9.0.2 has a medium-severity (CVSS 5.7) NULL pointer dereference in the MP3 audio decoding path that can crash an application using the libavcodec API. The provided source does not describe a fix or any active exploitation. Weakness type: Unchecked Return Value (CWE-252).
How severe is CVE-2026-125072?
CVE-2026-125072 has a CVSS 4.0 base score of 5.7 (medium), from the CNA (vulncheck.com). An attacker without an account can exploit this with local access if a user views or visits something, but only under specific conditions.
Is CVE-2026-125072 being exploited?
Not as far as is known: CVE-2026-125072 is not in CISA's Known Exploited Vulnerabilities catalog as of November 30, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-125072?
FFmpeg ≤ 9.0.2.
How do I fix CVE-2026-125072?
Inventory systems and applications that link against libavcodec or run FFmpeg on untrusted input. Watch your vendor or distribution and the FFmpeg project for a patched release, and update when one is available. Run decoding of untrusted audio in isolated, auto-restarting worker processes to contain crashes.