Home › CVE › Vulnerabilities
CVE-2026-125255 — FFmpeg
One of 121 FFmpeg vulnerabilities published together by NVD.
VulnerabilitiesResearch article
FFmpeg through 9.0.2: use-after-free in MJPEG decoder (libavcodec/mjpegdec.c) reachable via hardware-accelerated decoding
| CVE | CVE-2026-125255 |
|---|---|
| Vendor and product | FFmpeg |
| Published | November 12, 2026 07:20 UTC |
| Research cut-off | November 12, 2026 07:12 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-11-10); CISA KEV catalog; FIRST EPSS (2026-11-10) |
Executive summary
CVE-2026-125255 is a use-after-free weakness (CWE-416) in the MJPEG decoder of FFmpeg's libavcodec/mjpegdec.c, described as affecting FFmpeg through 9.0.2 [1]. The record gives CVSS 4.0 5.8 MEDIUM with vector CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X and CVSS 3.1 5.3 MEDIUM with vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H, both scored by a secondary scorer rather than NVD [1]. The record states that a crafted MJPEG stream that sends a start-of-frame marker without a preceding start-of-image marker can lead to a freed buffer being read, which may crash the application or leak heap contents, and that the path reaches hardware-accelerated decoders such as NVDEC [1]. The record's status is Awaiting Analysis, so NVD has not yet completed its review, and the reviewed sources publish no fixed version [1]. CISA's Known Exploited Vulnerabilities catalog did not list the CVE as of 2026-11-12, which does not show that it has not been exploited [2]. FIRST's EPSS model estimates a 0.0012 (0.12%) probability of exploitation activity in the next 30 days, which is a statistical estimate and not evidence of exploitation [3]. The most important immediate action is to inventory FFmpeg builds at or below 9.0.2, identify any that use hardware-accelerated MJPEG decoding or decode untrusted MJPEG input, and restrict or disable that path until a vendor or distribution fix is confirmed [1].
Key points
- Use-after-free (CWE-416) in FFmpeg's libavcodec/mjpegdec.c, affecting FFmpeg through 9.0.2 per the record [1].
- Secondary CVSS scores: 5.8 MEDIUM (CVSS 4.0) and 5.3 MEDIUM (CVSS 3.1); both scored by a secondary scorer, with local attack vector [1].
- The record describes crashes or heap disclosure, reached via a stream with start-of-frame marker lacking start-of-image marker, passing to hardware decoders such as NVDEC [1].
- Not listed in CISA KEV as of 2026-11-12; EPSS 0.0012 (percentile 0.0174) as a statistical estimate, not evidence of exploitation [2, 3].
- No fixed version or vendor advisory is in the pack; the record is Awaiting Analysis [1].
Vulnerability identification
| Field | Value |
|---|---|
| CVE ID | CVE-2026-125255 [1] |
| Vendor / product | FFmpeg project, FFmpeg [1] |
| Component | libavcodec/mjpegdec.c, MJPEG decoding path, with hardware-accelerated decoders such as NVDEC named in the record [1] |
| Affected platform | Not established by the reviewed sources beyond the product versions; the record names no operating system or distribution [1] |
| Published | 2026-11-09T20:18:11 [1] |
| Last modified | 2026-11-10T21:46:41 [1] |
| Record status | Awaiting Analysis [1] |
| CWE | CWE-416 (Use After Free) [1] |
| CVSS 4.0 | 5.8 MEDIUM, CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X, scored by disclosure@vulncheck.com (Secondary) [1] |
| CVSS 3.1 | 5.3 MEDIUM, CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H, scored by disclosure@vulncheck.com (Secondary) [1] |
| Related identifiers | The record lists a commit, a pull request, a tagged release reference and a VulnCheck advisory; none is identified in the record as a fix [1] |
| KEV status | Not listed as of 2026-11-12 [2] |
| EPSS | 0.0012 (0.12%), percentile 0.0174, dated 2026-11-10 [3] |
No NVD CPE configurations or NVD-assigned CVSS scores are included in the reviewed record, so the scores above are secondary assessments [1]. CWE-416 describes the weakness: the program keeps using a memory reference after the memory it points to has been released, so reads or writes can touch memory that now belongs to something else or has been reused [Analyst assessment, classification from S1].
Technical background
FFmpeg is an open-source multimedia framework whose libavcodec library contains the codecs used to decode and encode audio and video [Analyst assessment; the product name is from S1]. Motion JPEG (MJPEG) is a format in which each video frame is stored as an independent JPEG image; a decoder therefore parses a sequence of JPEG markers for each frame [Analyst assessment]. In JPEG, a start-of-image (SOI) marker opens an image and a start-of-frame (SOF) marker introduces the frame header with its dimensions and component data; a well-formed stream places SOI before SOF [Analyst assessment; the record refers to these markers in S1].
Hardware-accelerated decoding offloads part or all of the decode work to a GPU or dedicated decode block; the record names NVDEC, NVIDIA's hardware video decoder, as an example of a decoder that receives the affected buffer [1]. The trust boundary in this case lies between untrusted file or stream bytes, which the decoder parses, and the decoder's internal buffer state and the hardware decoder it hands data to [Analyst assessment]. Whether a given FFmpeg build or deployment enables this hardware path by default is Not established by the reviewed sources.
Vulnerability description
The CVE record describes a use-after-free condition in libavcodec/mjpegdec.c, in which an attacker-supplied MJPEG stream containing a SOF marker without a preceding SOI marker can cause the decoder to read a buffer that has already been released [1]. The record ties this to the function it names as ffmjpegdecodesof, and says the stale buffer reference is then given to hardware-accelerated decoders such as NVDEC [1].
The security property affected is memory safety: a freed allocation is accessed again, which can result in an application crash or disclosure of heap contents, according to the record [1]. The record does not describe code execution, and the reviewed sources do not demonstrate any such outcome; this article therefore does not treat code execution as established [Unknown]. Confidentiality impact is described as possible leakage of heap memory; the CVSS 3.1 vector assigns low confidentiality impact and high availability impact, which is consistent with a crash or limited read [1]. Integrity impact is scored as none under both vectors [1].
For the condition to matter, an affected FFmpeg version must decode attacker-supplied MJPEG input in a way that reaches the vulnerable path [1]. The record does not state whether the hardware-accelerated path is required, although it names hardware decoders as the consumer of the stale pointer [1]. The reviewed sources do not establish whether the software-only decode path is also affected.
Root cause analysis
The record states the mechanism at the level of the function and the symptom: a SOF marker processed without a preceding SOI leads to a stale buffer pointer being used [1]. The underlying code change, the object lifetime rules that were violated and the exact release point are not disclosed in the reviewed sources [Unknown]. The record's listed commit and pull request may contain the change, but the pack does not state their content [1].
Analyst assessment: a decoder that accepts markers out of order may reach frame-setup logic before the state required for a valid frame has been initialised or may retain a buffer reference from a previous frame after releasing it. Existing controls that would normally prevent this include validation of marker order during parsing, reference counting or clearing of pointers when buffers are released, and explicit state reset when a new image starts. The reviewed sources do not confirm which of these checks is missing or bypassed [Analyst assessment].
Technical mechanics
The following numbered flow is conceptual and is based on the record's description [1]. It is not a verified trace of the code.
- The decoder receives an MJPEG byte stream from a file, stream or application input [Illustrative].
- The parser reads markers in order. A correctly formed image begins with SOI and then provides SOF [Analyst assessment].
- A SOF marker arrives without a preceding SOI, so the frame-setup path runs without the state that a valid image start would have created [1].
- The frame-setup path uses a buffer reference that is no longer valid, which the record calls a stale pointer [1].
- The stale reference is passed to a hardware-accelerated decoder, such as NVDEC, which may read or act on memory that has been freed [1].
- The outcome named in the record is an application crash or disclosure of heap memory [1].
The control that should have prevented the failure is validation of marker sequence and buffer lifetime before the reference is used or passed on [Analyst assessment].
Attack surface and exploitation prerequisites
| Prerequisite | Evidence status |
|---|---|
| Network access | Not the attack vector in the CVSS 3.1 vector, which uses AV:L [1] |
| Adjacent network access | Not indicated by either vector, which uses AV:L [1] |
| Local access | Indicated by AV:L in both vectors, scored by a secondary scorer [1] |
| Physical access | Not indicated by the vectors or the record [1] |
| Authentication | PR:N in both vectors, meaning no privileges required [1] |
| User interaction | Conflicting: UI:R in CVSS 3.1 requires user interaction; UI:P in CVSS 4.0 indicates a requirement for user participation [1] |
| Attack complexity | AC:H in both vectors [1] |
| Attack requirements | AT:P in CVSS 4.0 indicates a deployment condition [1] |
| Required configuration | The hardware-accelerated decoder path is named in the record; default enablement is Not established by the reviewed sources [1] |
| Attacker-supplied input | Crafted MJPEG stream, per the record [1] |
The vectors and the record do not agree on how an attacker would reach the decoder. The record describes crafted MJPEG streams, which an application may accept from files or network sources, but the scored attack vector is local [1]. The reviewed sources do not explain this difference. Whether a remote or application-level input path, such as a media-handling service that decodes uploaded or streamed video, reaches the vulnerable code is Unknown and should be confirmed through analysis of the affected deployment.
The CVSS prerequisites should not be read as the whole exploitability picture. The attack complexity and attack requirements values reflect the scorer's view, not a tested exploit [1].
Exploitation scenarios and attack lifecycle
Illustrative scenario one: a user or automated process opens a local MJPEG file in an application built on an affected FFmpeg library, with hardware decoding enabled. The file triggers the out-of-order marker condition, which may crash the process. This matches the record's stated crash outcome and is not confirmed by any source in the pack [1].
Illustrative scenario two: a service that transcodes untrusted video streams uses an affected FFmpeg build with hardware acceleration. An attacker submits a crafted stream to trigger a crash or heap disclosure, causing denial of service for the service [Illustrative]. The record supports the possibility of crash and disclosure but does not describe such a service [1].
No source in the pack documents an attack chain beyond the record's description, and no exploitation in the wild is reported [2, 3]. Post-exploitation outcomes beyond crash or disclosure are not established by the reviewed sources [Unknown].
Defensive opportunities include restricting which inputs reach the decoder, disabling the hardware path where it is not needed, running decoding in an isolated process so that a crash does not affect other services, and logging decoder crashes for review.
Impact analysis
| Area | Technically demonstrated by sources | Plausible consequence, not demonstrated |
|---|---|---|
| Confidentiality | Possible heap content leakage per the record; scored as low under CVSS 3.1 C:L and CVSS 4.0 VC:L [1] | Exposure of data held in process memory of a service that decodes untrusted media [Analyst assessment] |
| Integrity | Scored as none under I:N and VI:N [1] | Not established by the reviewed sources |
| Availability | Crash of the application, scored as high under A:H and VA:H [1] | Repeated crashes causing service interruption for media-processing services [Analyst assessment] |
| Authentication | Not addressed by the record; PR:N indicates no privileges needed for the scored attack [1] | Not established by the reviewed sources |
| Authorization and privilege boundaries | SC:N and SI:N, SA:N in CVSS 4.0 indicate no subsequent-system impact scored [1] | Not established by the reviewed sources |
| Data and privacy | Heap leakage named in the record [1] | Whether processed media content is exposed depends on what is in process memory and is Not established by the reviewed sources |
| Business operations | Not established by the reviewed sources | Downtime for media pipelines that rely on the affected FFmpeg build [Analyst assessment] |
| Regulatory or contractual | Not established by the reviewed sources | Not established by the reviewed sources |
Affected products and versions
| Vendor | Product or component | Affected versions | Platform | Fixed version | Source and qualification |
|---|---|---|---|---|---|
| FFmpeg project | FFmpeg, libavcodec MJPEG decoder | Through 9.0.2, stated as affected at or below 9.0.2 [1] | Not established by the reviewed sources | Not published in the reviewed sources | CVE record published by the vendor as CNA [1] |
| Distributions and downstream builds | Packaged FFmpeg and libraries | Not established by the reviewed sources | Not established by the reviewed sources | Not established by the reviewed sources | No distribution advisory is in the pack [1] |
The record gives a range of affected versions as at or below 9.0.2, with no lower bound [1]. The reviewed sources do not state whether earlier releases are affected or unaffected, so a complete range is not established. Versions above 9.0.2 are not addressed by the record, which does not state that they are fixed [1]. Known exclusions are Not established by the reviewed sources.
Exploitation and threat intelligence status
Confirmed exploitation in the wild: Not established by the reviewed sources. The CVE is not listed in the CISA Known Exploited Vulnerabilities catalog as of 2026-11-12 [2]. The catalog's absence is not evidence that exploitation has not occurred [2].
EPSS: the estimated probability of exploitation activity in the next 30 days is 0.0012, percentile 0.0174, dated 2026-11-10 [3]. This is a statistical model output and not a measurement of observed attacks [3].
Public proof of concept: the record lists a VulnCheck advisory among its references, which indicates a third-party write-up exists, but the pack does not confirm its content or whether it contains exploit code [1]. Threat actors, campaigns and sectors: Not established by the reviewed sources. Credible reporting of exploitation: Not established by the reviewed sources.
Indicators of compromise
The reviewed sources provide no file hashes, file names, domains, IP addresses, URLs, process names, command lines, log events or network patterns for this CVE [1, 2, 3]. Not established by the reviewed sources. Any indicator that a later source provides should be validated against the environment before it is used for blocking, because indicators go stale.
As a detection starting point that does not depend on an indicator, decoder crashes in FFmpeg-based processes and abnormal termination of media-processing services are worth reviewing, since the record names application crashes as an outcome [1]. Those events are not specific to this CVE and need correlation with the input source.
Detection and exposure assessment
Step 1, inventory: identify every host, container image, application bundle and vendored library that includes FFmpeg libraries, including libavcodec, and record the version [Analyst assessment]. Software that bundles FFmpeg statically or as a private build may not appear in operating system package lists.
Step 2, version check: on a system where the ffmpeg command-line tool is installed, run ffmpeg -version from a shell and compare the reported version with the affected range of at or below 9.0.2 [1]. A version match indicates that the affected range applies, and a version above 9.0.2 is not proof of a fix if a distribution has backported changes. The version output alone is not proof of exploitability.
Step 3, hardware path check: run ffmpeg -hwaccels on the same host to list the hardware acceleration methods the build supports [Analyst assessment]. A build that lists NVDEC-related acceleration is relevant to the record's named path, but the presence of a method does not show that it is used by a given application [1].
Step 4, application review: for each application that links to an affected build, determine whether it decodes MJPEG input and whether that input can come from untrusted sources, such as uploads, network streams or user-selected files [Analyst assessment].
Step 5, logs and telemetry: review application and system logs for decoder crashes or abnormal exits in media-processing processes over the period since 2026-11-09, the publication date of the record [1]. Log sources and event formats are specific to each platform and are not given in the pack.
Limitations: the scanner coverage of FFmpeg statically linked into applications is Not established by the reviewed sources. Authenticated scanning should be used where it supports library-level detection.
Immediate mitigation
- Disable hardware-accelerated MJPEG decoding in affected applications where it is not required. Protects against the hardware path named in the record [1]. Limitation: the record does not say whether the software path is safe, so this reduces but may not remove exposure. Side effect: higher CPU use or reduced throughput. Verification: confirm that the application's decode configuration no longer selects a hardware method, and that test decodes still succeed. Source status: follows from the record's description of the hardware path, not from a vendor instruction.
- Stop decoding untrusted MJPEG input in affected processes until the build is confirmed fixed, or move that decoding into an isolated worker process or container with restricted privileges. Protects against crash or disclosure affecting other services [Analyst assessment]. Limitation: isolation does not remove the memory corruption flaw. Side effect: queued work or delayed media processing. Verification: confirm the process boundary and that the worker cannot reach other service credentials or data. Source status: analyst recommendation.
- Restrict the sources that can supply MJPEG files or streams to trusted users and systems, using application-level allow lists or input filters. Protects against attacker-controlled input reaching the decoder [Analyst assessment]. Limitation: a filter cannot inspect marker order without a parser, so it is a coarse control. Verification: test that untrusted submissions are rejected at the ingress point.
- Increase monitoring for decoder crashes and restart loops in media services, with alerts routed to the service owner. Protects against undetected crash activity [1]. Limitation: does not prevent exploitation. Verification: confirm the alert fires in a test.
Permanent remediation
Vendor-confirmed fix: Not established by the reviewed sources. The pack lists no fixed version, no vendor security advisory and no release note that identifies a fix for this CVE [1]. The listed commit and pull request may correspond to a change, but the record does not identify them as fixes [1].
Recommended remediation, pending vendor confirmation: upgrade to an FFmpeg release that the FFmpeg project or your distribution states contains the fix for CVE-2026-125255. The version to use must be confirmed from the vendor advisory or the distribution advisory, which the reviewed sources do not provide [Unknown].
Before upgrading: inventory dependent applications that load libavcodec, since a library upgrade may change behaviour in applications that depend on specific decoder outputs [Analyst assessment]. Take a backup or snapshot of the service configuration. Schedule a maintenance window for media services. Keep the prior build available for rollback. A restart of dependent services is required after a library change, but whether the reviewed sources document a specific reload procedure is Not established by the reviewed sources.
Configuration after updating: confirm that the hardware decoding setting is restored only where needed and remains restricted to trusted inputs [Analyst assessment].
Hardening that is not vendor-confirmed: keep MJPEG decoding in an isolated worker, as above, even after the fix, to limit the effect of future decoder faults [Analyst assessment].
Workarounds and compensating controls
The mitigations in the immediate mitigation section are workarounds. They reduce exposure but are not equivalent to a permanent fix [Analyst assessment]. Disabling the hardware path does not establish that the software path is unaffected, because the record does not separate the two [1]. Input restriction depends on the trust placed in each source and cannot detect a malformed marker sequence by itself [Analyst assessment]. Isolation limits impact but leaves the flaw in place [Analyst assessment]. Residual risk remains until a vendor-confirmed fixed build is deployed and verified.
Validation and verification
- Confirm the installed FFmpeg version or build on every inventoried host and container, using ffmpeg -version or the package manager of the platform, and record the result [Analyst assessment].
- Confirm that the version is a build the vendor or distribution has identified as fixed, using the vendor advisory, since the reviewed sources give no fixed version [1].
- Confirm the decode configuration of each application, including whether hardware acceleration is selected, and record the setting [Analyst assessment].
- Confirm that the untrusted input path has been removed or isolated, by testing that a submission from an untrusted source is rejected or processed only in the isolated worker [Analyst assessment].
- Run an authenticated vulnerability scan with a plugin or rule that reports the installed FFmpeg library version, and compare results with the inventory. Scanner coverage of the affected build is Not established by the reviewed sources.
- Review service logs for decoder crashes after the change, and confirm service health over a defined observation period [Analyst assessment].
- Record the evidence, owner, date and any exceptions. Do not treat a single check as proof that the system is secure.
Incident response
If decoder crashes or unexpected memory-related events are seen in a media service that processes untrusted MJPEG input, treat the event as a possible incident until its cause is established [Analyst assessment].
Triage and scope: identify the affected service, the FFmpeg build version and the input sources for the period of concern [Analyst assessment]. Containment: isolate the affected host or disable the service's decode path while preserving the running state where it is safe to do so. Evidence preservation: copy the application logs, the input files or stream captures that triggered the crash, and the build configuration before any restart or rebuild, following the organization's incident response plan. Avoid actions that erase process memory or logs.
Credential and secret rotation is warranted if evidence shows that the decoder process held credentials or secrets when it crashed, since the record names heap disclosure as a possible outcome [1]. Eradication and patching follow once a fixed build is confirmed. Recovery and monitoring: restore service on the fixed build and monitor for recurrence. Notification and reporting obligations depend on the organization's jurisdiction and contracts and are Not established by the reviewed sources. Lessons learned: record how the input reached the decoder and whether the isolation boundary held.
Security hardening and prevention
Secure development and code review (defence-in-depth, not stated in the sources): require review of parser state transitions in media decoders, and add tests that feed out-of-order marker sequences such as a start-of-frame marker without a preceding start-of-image marker to the decoder in continuous integration [Analyst assessment, based on S1].
Input validation: reject or handle malformed marker sequences explicitly before buffer use, and clear buffer references when a buffer is released [Analyst assessment].
Least privilege and isolation: run media decoding in a separate, low-privilege process with no access to unrelated secrets, and restrict its network and file access [Analyst assessment].
Secure configuration: enable hardware decoding only where measured throughput needs it and only for trusted inputs [Analyst assessment].
Patch and vulnerability management: track the FFmpeg project and distribution advisories for this CVE and add the library to the software inventory with its version [Analyst assessment].
Logging and monitoring: alert on decoder process crashes in media services [Analyst assessment].
Security testing: include fuzz testing of the MJPEG decoder with malformed marker sequences in the test plan for FFmpeg builds maintained internally [Analyst assessment].
Risk assessment
Technical severity: the secondary CVSS scores are 5.8 MEDIUM under CVSS 4.0 and 5.3 MEDIUM under CVSS 3.1 [1]. These scores are not an organization-specific risk rating.
Exposure and asset criticality: depend on whether the organization runs affected FFmpeg builds with hardware MJPEG decoding on services that accept untrusted media [Analyst assessment]. Not established by the reviewed sources for any given environment.
Prerequisites and attacker opportunity: the vectors indicate no privileges and local access, with complexity and user interaction factors that differ between versions [1]. The record's description of crafted input suggests that an attacker needs a path to supply the input.
Evidence of exploitation: none in the reviewed sources. Not listed in KEV as of 2026-11-12 [2]. EPSS is 0.0012 with percentile 0.0174 [3].
Potential business impact: service crashes and possible heap disclosure in affected media processing [1]. Scale of business impact is Not established by the reviewed sources.
Existing controls and residual risk: unknown for each environment; residual risk remains until a verified fix is deployed [Analyst assessment].
Recommended remediation priority, organization-specific and based on the assumptions above: prioritise systems that decode untrusted MJPEG input with hardware acceleration, because the record names both the input and the hardware path [1]. Lower-priority systems are those with no MJPEG decoding or only trusted local files, pending vendor confirmation of the fix. Assumptions: the record's description is accurate, the secondary scores are reasonable, and the vendor's fix is not yet identified.
Conclusion
The core flaw is a use-after-free in FFmpeg's MJPEG decoder that the record ties to an out-of-order start-of-frame marker and a stale buffer reference passed to hardware decoders [1]. Platform and fixed-version details are not established by the reviewed sources. Security, operations and media-platform owners should act first by inventorying FFmpeg builds at or below 9.0.2 and restricting hardware MJPEG decoding of untrusted input [1]. The permanent fix is an FFmpeg or distribution release confirmed by the vendor advisory, which the pack does not provide [Unknown]. The evidence needed to close the issue is the vendor or distribution fix identification, a complete affected version range, the root cause from the code change, validation evidence from the deployed build, and a completed NVD analysis that confirms the CVSS and CWE assessment [1].
Remediation checklist
- Inventory every host, container and application bundle that includes FFmpeg libraries and record the version reported by ffmpeg -version, flagging anything at or below 9.0.2 [1].
- Identify which affected applications decode MJPEG input from untrusted sources, such as uploads or network streams [1].
- Disable hardware-accelerated MJPEG decoding in those applications where it is not required, then confirm via the application's decode configuration that no hardware method is selected [1].
- Move untrusted MJPEG decoding into an isolated, low-privilege worker process or container until a fixed build is confirmed [Analyst assessment].
- Restrict input sources that can supply MJPEG files or streams to trusted users and systems, and test that untrusted submissions are rejected [Analyst assessment].
- Monitor media-processing services for decoder crashes and restart loops, and route alerts to service owners [1].
- Track the FFmpeg project and your distribution's security advisories for a fixed version of CVE-2026-125255, since none is published in the reviewed sources [1].
- Upgrade to the fixed FFmpeg or distribution build once confirmed, after backing up configuration and testing dependent applications in a maintenance window [Analyst assessment].
- After upgrading, re-run ffmpeg -version and the authenticated scanner check, and review service logs for crashes over a defined period [Analyst assessment].
- Record evidence, owner, date and exceptions for each system, and close the item only after verification on the deployed build [Analyst assessment].
Evidence gaps
- Fixed version or vendor/distribution advisory identifying the fix; the record lists a commit and pull request but does not identify them as fixes [1].
- Complete affected version range; the record gives only at or below 9.0.2 with no lower bound [1].
- Root cause from the code change, including the object lifetime violated and the exact release point; not disclosed in the reviewed sources [1].
- Reason for the difference between the local attack vector in the vectors and the remote-style input described in the record; confirmation needed from NVD analysis or the vendor [1].
- Whether the software decode path is affected in addition to the hardware path named in the record [1].
- NVD analysis, CPE configurations and NVD-assigned CVSS scores; the record is Awaiting Analysis and its scores are secondary [1].
- Content of the VulnCheck advisory listed in the record, to confirm whether a proof of concept or exploit details exist [1].
- Credible reporting or confirmed exploitation in the wild; none in the reviewed sources [2, 3].
- Indicators of compromise; none are given in the pack [1, 2, 3].
- Distribution-specific backports or packaged versions; not established by the reviewed sources [1].
References
- CVE-2026-125255 record. NIST National Vulnerability Database (NVD), 2026-11-10. https://nvd.nist.gov/vuln/detail/CVE-2026-125255. Accessed 2026-11-12.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-12. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-12.
- EPSS score for CVE-2026-125255. FIRST, 2026-11-10. https://api.first.org/data/v1/epss?cve=CVE-2026-125255. Accessed 2026-11-12.
Summary
FFmpeg through 9.0.2 contains a use after free vulnerability in libavcodec/mjpegdec.c that allows attackers to trigger freed buffer reads by sending a SOF marker without a preceding SOI. Attackers can supply crafted MJPEG streams causing ff_mjpeg_decode_sof() to pass a stale raw_image_buffer pointer to hwaccel decoders like NVDEC, crashing applications or leaking heap contents.
Severity breakdown
Medium · 5.8
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, low on confidentiality, none on integrity
- Impact on other systems
- none
Weakness
- CWE-416: Use After Free
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| FFmpeg | ≤ 9.0.2 | — |
References by type
Patches and fixed releases
Other references
Affected
- FFmpeg
Frequently asked questions
What is CVE-2026-125255?
CVE-2026-125255 is a use-after-free weakness (CWE-416) in the MJPEG decoder of FFmpeg's libavcodec/mjpegdec.c, described as affecting FFmpeg through 9.0.2. Weakness type: Use After Free (CWE-416).
How severe is CVE-2026-125255?
CVE-2026-125255 has a CVSS 4.0 base score of 5.8 (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-125255 being exploited?
Not as far as is known: CVE-2026-125255 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026. EPSS estimates a 0.1% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-125255?
FFmpeg ≤ 9.0.2.
How do I fix CVE-2026-125255?
Inventory every host, container and application bundle that includes FFmpeg libraries and record the version reported by ffmpeg -version, flagging anything at or below 9.0.2. Identify which affected applications decode MJPEG input from untrusted sources, such as uploads or network streams. Disable hardware-accelerated MJPEG decoding in those applications where it is not required, then confirm via the application's decode configuration that no hardware method is selected.