Home › CVE › Vulnerabilities
CVE-2026-125245 — FFmpeg
One of 121 FFmpeg vulnerabilities published together by NVD.
VulnerabilitiesResearch article
FFmpeg through 9.0.2: memory leak in MJPEG hardware-acceleration SOF handling (CVE-2026-125245)
| CVE | CVE-2026-125245 |
|---|---|
| Vendor and product | FFmpeg |
| Published | November 12, 2026 08:40 UTC |
| Research cut-off | November 12, 2026 07:21 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-11-10); CISA KEV catalog; FIRST EPSS (2026-11-10) |
Executive summary
CVE-2026-125245 describes a memory leak in FFmpeg's MJPEG decoder, where a hardware-acceleration private pointer is overwritten without the earlier allocation being released [1]. The record scores it CVSS 4.0 5.7 MEDIUM with vector CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/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 4.7 MEDIUM with vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H, both scored by a secondary scorer [1]. The CVE record lists FFmpeg versions up to and including 9.0.2 as affected, and no fixed version is published in the reviewed sources [1]. The record describes an attacker supplying crafted MJPEG streams with repeated start-of-frame markers or failing frames to leak memory under VAAPI or NVDEC decoding; this is a description, not a demonstrated result, and the reviewed sources contain no proof of concept [1]. The CISA Known Exploited Vulnerabilities catalog does not list the CVE as of 2026-11-12, which is not evidence that it has not been exploited [2], and the FIRST EPSS estimate is 0.0016 (0.16%) with percentile 0.0476 [3]. The most important immediate action is to inventory FFmpeg builds at or below 9.0.2 with VAAPI or NVDEC enabled that decode untrusted MJPEG input, and to route or restrict that decoding until a vendor fix is identified and verified [1].
Key points
- CVE-2026-125245 is a memory leak in FFmpeg's MJPEG decoder: a hardware-acceleration private pointer is overwritten without being freed, per the record's description [1].
- The record scores it CVSS 4.0 5.7 MEDIUM and CVSS 3.1 4.7 MEDIUM, both from a secondary scorer, with a high availability impact and no confidentiality or integrity impact [1].
- FFmpeg versions through 9.0.2 are listed as affected by the CNA; no fixed version is published in the reviewed sources [1].
- The record ties the leak to VAAPI or NVDEC hardware decoding with repeated SOF markers or failing frames; no proof of concept or exploitation evidence is in the pack [1].
- Not listed in CISA KEV as of 2026-11-12, and EPSS is 0.0016 (0.16%), neither of which shows absence of exploitation [2][3].
- Immediate actions: inventory FFmpeg builds at or below 9.0.2 with hardware MJPEG decoding, restrict untrusted MJPEG input or use software decoding, and monitor decoding workers [1].
Vulnerability identification
The table below summarizes the identifiers and scoring from the reviewed sources. The record status is Awaiting Analysis, so NVD's own analysis, CPE configurations and scores may still change [1].
| Field | Value | Source |
|---|---|---|
| CVE ID | CVE-2026-125245 | [1] |
| Vendor (CNA-published affected versions) | FFmpeg | [1] |
| Product / component | FFmpeg, libavcodec MJPEG decoder (libavcodec/mjpegdec.c) | [1] |
| Affected platform | Not established by the reviewed sources beyond the VAAPI and NVDEC hardware decoding paths named in the record [1] | [1] |
| Published | 2026-11-09T19:17:03 | [1] |
| Last modified | 2026-11-10T21:46:41 | [1] |
| Record status | Awaiting Analysis | [1] |
| CWE | CWE-401 (Missing Release of Memory after Effective Lifetime) | [1] |
| CVSS 4.0 base score | 5.7 MEDIUM; vector CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/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; scorer disclosure@vulncheck.com (Secondary) | [1] |
| CVSS 3.1 base score | 4.7 MEDIUM; vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H; scorer disclosure@vulncheck.com (Secondary) | [1] |
| CISA KEV | Not listed as of 2026-11-12 | [2] |
| EPSS | 0.0016 (0.16%), percentile 0.0476, dated 2026-11-10 | [3] |
Scoring discrepancies: the reviewed sources contain only one set of scores, both from the same secondary scorer, so no conflicting scores are present. The CVSS 4.0 vector includes an AU:X-style environmental and threat section with all values set to X (not defined), so it reflects base metrics only [1]. Because the record lists the CVSS 3.1 and 4.0 vectors with different user-interaction values (UI:P in 4.0 and UI:R in 3.1), the two scores describe user participation in slightly different ways; the reviewed sources do not explain this difference [1].
Related identifiers: the record lists a pull request on the FFmpeg code host, the FFmpeg repository, a source-file link at the release tag for 9.0.2, a commit, and a third-party advisory from a vulnerability research firm [1]. The contents of these references were not extracted into the pack, so no advisory ID, bug ID or patch identifier beyond the CVE ID is established by the reviewed sources [1].
Technical background
FFmpeg is an open-source multimedia framework whose libavcodec library provides encoders and decoders for audio and video formats [1]. The MJPEG (Motion JPEG) decoder in libavcodec/mjpegdec.c reads a sequence of JPEG frames, each beginning with a start-of-frame (SOF) marker that declares frame dimensions and component layout [1]. This is an analyst description of the format and the affected file; the record itself identifies the file and the SOF-related handling [1].
Hardware acceleration (hwaccel) lets a decoder hand parts of the decoding work to a graphics or media processor. The record names two interfaces: VAAPI (Video Acceleration API, a Linux interface to GPU video processing) and NVDEC (NVIDIA's hardware video decoder) [1]. In these paths, the decoder keeps a private structure, referred to in the record as the hwaccel private pointer, which refers to data and buffers owned by the acceleration backend [1]. Such buffers are typically allocated on the GPU or driver side, so a leak here can retain resources that are not visible to ordinary process memory accounting. That behaviour is an analyst assessment and is not described by the record [1].
Trust boundary: the MJPEG bitstream is untrusted input when an application decodes files or streams received from users, networks or other tenants [1]. The record's attack model depends on that input reaching the decoder, so the decoder is the trust boundary of interest. Whether a network-facing service that decodes attacker-supplied media matches the record's local attack vector is not established by the reviewed sources (see Attack surface and exploitation prerequisites).
Vulnerability description
The record describes a memory-management defect in the MJPEG decoder's SOF handling, in a function written in the record as ffmjpegdecodesof() [1]. The defect is that a hwaccel private pointer is overwritten without the previously allocated object being freed, so the old allocation becomes unreachable and is never returned [1]. The record states that repeated SOF markers, or frames that fail during decoding, trigger this path [1].
Security property affected: availability and resource integrity. The record does not claim that the leak exposes data from other processes or users, although its wording refers to leaking hwaccel private data and hardware buffers [1]. The record's scores assign no confidentiality or integrity impact and a high availability impact in the CVSS 4.0 vector, and no confidentiality, integrity or high availability impact under the CVSS 3.1 vector, which is a high availability impact only [1]. The vectors therefore describe resource exhaustion or denial of service as the principal consequence, not data disclosure [1].
What an attacker can cause: repeated decoding of crafted input that retains memory or hardware buffers until the process or device runs out of resources [1]. What the vulnerability does not establish, according to the reviewed sources: code execution, privilege escalation, memory disclosure of other users' data, or a reliable denial-of-service technique. The pack contains no proof of concept, crash analysis or measured memory growth [1].
Conditions for the flaw to matter: the decoder must run with VAAPI or NVDEC hardware decoding for the affected path, and the software must process MJPEG input the attacker can influence [1]. Whether a default configuration enables these hardware paths is not established by the reviewed sources.
Root cause analysis
The record describes the mechanism as overwriting a pointer without freeing it [1]. Label: Confirmed as the CVE and NVD description, Reported as to the exact code behaviour, because the pack does not include the vendor's advisory or the code diff.
Analyst assessment: a decoder that re-enters SOF handling for a new frame, or that proceeds after a failed frame, can reassign the hwaccel pointer before releasing the previous allocation. Existing controls such as reference counting or cleanup on error paths may be bypassed when the reassignment happens in a state the cleanup code does not expect. This is an inference from the description and CWE-401, not a confirmed explanation.
CWE-401 describes the general weakness: memory is allocated and the program loses the means to release it while it is still needed for the program's purposes or is simply no longer tracked [1]. The record's CWE mapping is consistent with the description, but it does not identify the specific code path.
The record references a commit and pull request that may contain the code change, but their contents were not extracted, so the precise root cause in the code is not established by the reviewed sources [1].
Technical mechanics
The following numbered flow is an Illustrative conceptual model derived from the record's description. It is not a confirmed code trace.
- The application passes an MJPEG bitstream to FFmpeg's libavcodec decoder with a hardware-acceleration backend (VAAPI or NVDEC) active [1].
- The MJPEG decoder parses the stream and encounters a start-of-frame marker [1].
- Under the record's described condition, a repeated SOF marker or a failing frame causes the hwaccel private pointer to be assigned a new value [1].
- The previously held pointer is overwritten and no release call is made on it [1].
- The earlier backend object or buffer is no longer referenced by the decoder and is not freed, so its resources persist for the life of the process or device context [1].
- Repeated input causes accumulation; the result is growing resource use until the process or device is constrained [1].
Validation failure: the record indicates that the decoder does not perform the release step expected for the replaced pointer. The control that should prevent this is ownership tracking for hwaccel private data: either freeing the old object before reassignment or reusing it, and freeing it on every error path [S1, analyst assessment for the general control].
Authentication and authorization checks: none are described in the record as relevant, because the vulnerable step is inside media decoding after input is accepted [1].
Attack surface and exploitation prerequisites
| Dimension | Known from the reviewed sources | Source |
|---|---|---|
| Attack vector | Local (AV:L in both CVSS vectors) | [1] |
| Adjacent network | Not established by the reviewed sources | [1] |
| Network exposure | Not stated; the vector says local, but whether a network-facing service that decodes attacker input is in scope is not established | [1] |
| Attack complexity | High (AC:H in both vectors) | [1] |
| Attack requirements | Present (AT:P in the 4.0 vector); the specific attack requirement is not described | [1] |
| Privileges required | None (PR:N in both vectors) | [1] |
| User interaction | Passive user participation (UI:P in 4.0) or required (UI:R in 3.1); the scorer's intent is not explained | [1] |
| Required configuration | VAAPI or NVDEC hardware decoding enabled for the MJPEG path; default enablement not established | [1] |
| Attacker position | Must supply MJPEG input to the decoder; the delivery channel is not established | [1] |
| Physical access | Not established by the reviewed sources | [1] |
Dependencies and limitations: the attack vector and user-interaction values come from the secondary scorer's assessment and should not be treated as proof that exploitation is possible in a given deployment [1]. The pack does not establish whether a server that decodes uploaded images or video would be classed as local, which is the single most important question for exposure assessment.
Exploitation scenarios and attack lifecycle
Illustrative scenario 1: a user on a workstation with hardware-accelerated FFmpeg opens or converts a crafted MJPEG file received through email. The user interaction in the 3.1 vector (UI:R) corresponds to this kind of action [1]. Repeated decoding may leak hardware-side buffers and degrade the workstation's resources. The record does not describe this flow, so it is illustrative only.
Illustrative scenario 2: a service that transcodes user-uploaded MJPEG content with VAAPI or NVDEC enabled receives many crafted files. Resource use accumulates over time on the host and can affect other tenants of the same service. The record does not describe a service-level impact, so this is illustrative only [1].
In both scenarios, the defensive opportunities are: restricting which inputs reach the decoder, disabling hardware decoding for the MJPEG path, monitoring resident memory and GPU memory for steady growth, and isolating decoding workers so that a leak can be contained by restarting them. No exploitation chain is documented in the reviewed sources, and no post-exploitation outcome beyond resource leakage is established [1].
Impact analysis
| Area | Technically demonstrated by the sources | Plausible downstream consequence (analyst assessment) |
|---|---|---|
| Confidentiality | None established; the record's wording about leaking private data is not corroborated by a scoring confidentiality impact [1] | Unlikely from the record alone; would require evidence of cross-process data exposure |
| Integrity | None established; no integrity impact in either vector [1] | None identified from the sources |
| Availability | High availability impact in the CVSS 3.1 and 4.0 vectors [1] | Degraded decoding throughput or host resource exhaustion where decoding runs continuously |
| Authentication and authorization | Not affected per the vectors (no authentication or privilege change scored) [1] | None identified |
| Privilege boundaries | Not established | Not established |
| Data and privacy | Not established; the record mentions leaked private data, which would need evidence to assess | Possible only if leaked hardware buffers contain user data; not established |
| Business operations | Not established | Media pipelines that rely on hardware decoding may see instability; not established by the sources |
| Regulatory or contractual | Not established | Depends on the operator's obligations and whether any data exposure is shown |
Affected products and versions
| Vendor | Product / component | Affected versions | Platform / deployment | Fixed version | Source and qualification |
|---|---|---|---|---|---|
| FFmpeg | libavcodec MJPEG decoder with VAAPI or NVDEC hardware decoding | Through 9.0.2 (affected less than or equal to 9.0.2), as published by the CNA in the CVE record | Any build including this decoder path; build configuration not established | Not established by the reviewed sources | [1]; the lower bound of the affected range is not published |
The reviewed sources do not provide the NVD CPE configuration list, so the set of distributions, packages and builds that embed FFmpeg is not established. Known exclusions are not established. Because the CNA-published range ends at 9.0.2 and no fixed version is named, operators must not assume that a particular later version is fixed until the vendor or a primary source confirms it [1].
Exploitation and threat intelligence status
Confirmed exploitation in the wild: Not established by the reviewed sources. The CISA Known Exploited Vulnerabilities catalog does not list CVE-2026-125245 as of 2026-11-12, and the catalog check itself does not show that exploitation has not occurred [2].
Public proof of concept: the reviewed sources do not identify any proof-of-concept code or exploit repository [1]. The record's references include a third-party advisory, but its content was not extracted into the pack, so any PoC it may describe is not established [1].
Threat actors, campaigns and sectors: Not established by the reviewed sources.
EPSS: 0.0016 (0.16%) estimated probability of exploitation activity in the next 30 days, with percentile 0.0476, dated 2026-11-10. EPSS is a statistical model estimate and is not evidence of exploitation [3].
Evidence reliability: the NVD record is dated 2026-11-10 and is awaiting analysis [1]; the KEV check is dated 2026-11-12 [2]; the EPSS estimate is dated 2026-11-10 [3]. The absence of public evidence is not proof that exploitation has not occurred.
Indicators of compromise
Not established by the reviewed sources. The pack contains no file hashes, file names, domains, IP addresses, URLs, process names, command lines, log events or network patterns for this CVE [1, 2, 3]. No indicators are supplied here, and none should be invented. Any future indicators must be validated against the organization's own telemetry before blocking, because indicators go stale quickly.
Detection and exposure assessment
Step 1: asset inventory. Identify every host, container image and application that bundles or links FFmpeg, including vendor appliances and third-party applications. Record the FFmpeg version and whether it was built with VAAPI or NVDEC support. The reviewed sources do not provide a detection script or scanner signature for this CVE [1].
Step 2: version check (read-only). On a host where the ffmpeg binary is on the path, run the following to print the build version string:
ffmpeg -version
Prerequisites: the ffmpeg binary available to the account running the command. Expected output: a version banner beginning with the word ffmpeg and a version identifier. Limitation: the version check shows the build, not whether the MJPEG path is reachable or whether hardware decoding is enabled. A version at or below 9.0.2 is a potential exposure, not proof of exploitability [1].
Step 3: hardware-acceleration check (read-only). Run the following to list the hardware acceleration methods the build exposes:
ffmpeg -hide_banner -hwaccels
Prerequisites: the same binary. Expected output: a list of acceleration method names, which may include vaapi and cuda or nvdec depending on the build; the exact list is not established by the reviewed sources. Limitation: availability in a build does not show that an application enables it for MJPEG decoding.
Step 4: application configuration review. For each application that invokes FFmpeg, inspect how it selects a decoder and whether it passes a hardware acceleration option. The pack does not describe these application-specific settings; the reviewed sources do not identify them.
Step 5: logs and telemetry. The reviewed sources do not identify a log source or event that records this condition. Operators can monitor resident memory and GPU memory of decoding workers over time for steady growth that does not reclaim after jobs finish, which is an analyst recommendation and not a vendor detection method [1].
Scanning: the pack contains no scanner plugin reference or vendor detection guidance for this CVE. Authenticated scanning of installed packages is the practical method for finding FFmpeg on servers, but its coverage of bundled libraries must be checked [1].
Immediate mitigation
Each measure below is an analyst recommendation that follows from the record's description of the affected path; none is a vendor-supplied mitigation, because the reviewed sources include none [1].
- Restrict untrusted MJPEG input. Stop accepting or processing MJPEG content from untrusted users or networks on affected hosts, or route it to a separate worker. Protects against the record's described trigger. Limitation: other FFmpeg decoders and formats are not covered by this analysis. Side effects: some uploads will fail. Verify: confirm the upload pipeline no longer forwards MJPEG to the affected workers by reviewing its configuration and by test submissions in a staging environment.
- Disable hardware decoding for MJPEG where it is not required. Run the affected applications with software decoding for this format, which avoids the VAAPI and NVDEC paths named in the record [1]. Limitation: software decoding may increase CPU load and change output performance. Verify: confirm the decoder selected for MJPEG in the application's logs or command options, and confirm no hardware acceleration option is passed for that job.
- Isolate decoding workers. Run FFmpeg decoding in a separate container or process with memory and GPU resource limits, and restart workers on a schedule or when resource use crosses a threshold. This contains a leak but does not remove it. Verify: confirm the limits are applied with the container runtime's inspection command and that a restart resets the worker.
- Increase monitoring. Alert on sustained growth of resident memory and GPU memory in decoding workers. Verify: confirm the alert fires in a test with a controlled workload.
- Inventory and prioritize. Complete the detection steps above so that restrictions apply to all affected hosts, and document any exceptions with an owner and date.
Permanent remediation
Vendor-confirmed fix: Not established by the reviewed sources. The pack does not name a fixed FFmpeg version, a vendor advisory identifier or a patch identifier [1]. The record lists a commit and a pull request, which may relate to the fix, but their contents were not extracted, so they cannot be treated as the fix [1].
Required action when a fix is published: upgrade FFmpeg to the exact version the FFmpeg project identifies as fixing CVE-2026-125245 (not established by the reviewed sources), in every build and bundled copy found during inventory. For applications that bundle FFmpeg libraries, the vendor of each application must release its own update.
Recommended hardening, not vendor-confirmed: keep hardware decoding disabled for MJPEG until the fixed version is installed and verified, and keep the isolation and restart controls in place until validation completes.
Upgrade prerequisites and rollback: not established by the reviewed sources. Operators should take a configuration and package backup before upgrade, schedule a maintenance window for worker pools, and keep the previous package available for rollback. Whether a restart or reload is required after upgrade is not established by the reviewed sources; restarting decoding workers is the conservative assumption.
Workarounds and compensating controls
Software decoding for MJPEG, restriction of untrusted input and worker isolation are the compensating controls described above [S1, analyst assessment]. Their residual risk is that the underlying leak remains in any FFmpeg build at or below 9.0.2 that is used for other decoding paths or with other input the record does not describe.
A workaround is not equivalent to a permanent fix. Disabling hardware decoding for one format removes only the path the record names, and no source confirms that the leak is limited to MJPEG. Isolation and scheduled restarts limit damage but leave the defect in place. Keep the compensating controls until a vendor fix is applied, verified and recorded.
Validation and verification
- Confirm the installed version on every inventoried host and bundled copy by running the version command above, and record the output with the host name and date. A version above 9.0.2 is necessary but not sufficient, because the fixed version has not been established by the reviewed sources [1].
- Confirm the MJPEG decoding configuration in each affected application: no hardware acceleration option for MJPEG jobs unless the fix is verified.
- Confirm the vulnerable path is addressed by running the application's own regression tests and a controlled set of MJPEG test files from the organization's own corpus in staging, while monitoring resident and GPU memory for growth across many decodes. Do not use exploit inputs; the pack contains none.
- Re-run authenticated package scanning and review its results for bundled FFmpeg libraries.
- Review service health and logs after the change for decoding errors and worker restarts.
- Confirm that compensating controls (input restriction, isolation, monitoring) remain in place wherever the fix is not yet applied.
- Record the evidence, owner, date and any exceptions. Do not treat a single check as proof that the system is secure.
Incident response
If the organization observes sustained resource growth in decoding workers that correlates with processing of untrusted MJPEG input, treat it as a potential availability incident pending investigation. The reviewed sources do not establish that exploitation has occurred, so this is a precaution.
- Triage and scope: identify the affected hosts, the worker pools and the input sources for the period of growth. Use the inventory from detection.
- Containment: move MJPEG decoding for the affected pools to software decoding or stop them, following the organization's change process.
- Evidence preservation: capture the worker logs, system memory and GPU memory metrics, and the input files retained by the system, without deleting or altering them. Do not run destructive cleanup before evidence is collected.
- Investigation: review how the input reached the decoder and whether any user or network source sent it repeatedly.
- Credential rotation: not established as needed by the reviewed sources; rotate secrets only if the investigation finds access to them.
- Eradication and patching: apply the vendor fix when published and verify it.
- Recovery and monitoring: restore service with the mitigations kept in place and monitor memory growth for a defined period.
- Notification and reporting: follow the organization's legal and contractual obligations; the reviewed sources establish no data exposure, so no reporting trigger is established.
- Lessons learned: record the detection gap and update the inventory.
Security hardening and prevention
Specific to this flaw: enforce ownership rules for hardware decoder state in FFmpeg-based code and in any wrapper code that calls FFmpeg, so that a replaced pointer is always released or reused [analyst assessment]. Add regression tests for repeated SOF markers and for failing frames in the hardware decoding path, using the project's own test infrastructure [analyst assessment; the pack does not identify existing tests].
Application level: decode untrusted media in sandboxed, resource-limited workers, and do not give those workers access to credentials or unrelated storage [defence-in-depth, analyst assessment].
Patch management: track FFmpeg releases and the bundled copies in applications, and treat a CNA-published affected range as the starting point for version checks [analyst assessment].
Logging and monitoring: record decoder selection and per-job memory use in workers so that growth can be attributed to a job type [defence-in-depth, analyst assessment].
Risk assessment
Technical severity: the secondary scorer rates the issue MEDIUM under both CVSS versions, with high availability impact and no confidentiality or integrity impact [1]. The scores come from a secondary scorer on an Awaiting Analysis record and may change [1].
Exposure and asset criticality: depends on whether the organization runs hardware-accelerated FFmpeg decoding on untrusted MJPEG input. This is not established by the reviewed sources and must be determined from the inventory.
Exploit prerequisites and opportunity: local attack vector, high attack complexity, no privileges, and user interaction or attack requirements in the vectors [1]. Whether those conditions are met by a server that processes uploads is not established.
Evidence of exploitation: none established. The CVE is not in the KEV catalog [2], and EPSS is 0.0016 [3].
Potential business impact: degraded availability of media processing hosts or workers; no data exposure is established [1].
Existing controls and residual risk: unknown until the inventory is complete. Residual risk remains after the mitigations described above until a verified fix is applied.
Recommended remediation priority: medium, for hosts where hardware-accelerated FFmpeg decodes untrusted MJPEG input, because the record describes a resource-exhaustion path with no confirmed exploitation and a low EPSS estimate; higher priority is justified for multi-tenant or internet-facing media services, where the attacker can reach the input path. This is an organization-specific judgement based on these assumptions and is not the CVSS score. It may be raised if exploitation evidence appears.
Conclusion
CVE-2026-125245 is a memory leak in FFmpeg's MJPEG decoder that the record ties to overwriting a hardware-acceleration private pointer without releasing it, under VAAPI or NVDEC decoding [1]. The core flaw is resource retention rather than a demonstrated data disclosure or code execution [1]. Operators of FFmpeg 9.0.2 and earlier with hardware MJPEG decoding and untrusted input should act first: inventory affected builds, restrict untrusted MJPEG input or switch that decoding to software, and isolate and monitor decoding workers [S1, analyst assessment]. The permanent fix is an upgrade to the version the FFmpeg project identifies as fixed, which the reviewed sources do not name [1]. Closure requires the vendor's fixed version, its verification on every inventoried host and bundled copy, confirmation of the MJPEG configuration, a completed NVD analysis of the record, and clear evidence about whether the local attack vector applies to the organization's input path.
Remediation checklist
- Inventory every host, container image and application that bundles FFmpeg, and record the version and whether VAAPI or NVDEC is enabled; treat any version at or below 9.0.2 as in scope [1].
- Run ffmpeg -version on each host with the binary available, and record the version banner; a version at or below 9.0.2 is a potential exposure, not proof of exploitability [1].
- Run ffmpeg -hide_banner -hwaccels on each build to see which acceleration methods it exposes, then check each application for hardware acceleration options used for MJPEG [1].
- Stop accepting untrusted MJPEG input on affected hosts, or route it to a separate isolated worker pool, and verify with staging test submissions [1].
- Switch MJPEG decoding to software decoding in affected applications where hardware decoding is not required, and verify the selected decoder in application logs or job options [1].
- Apply resource limits and scheduled restarts to decoding workers in containers or processes, and verify the limits with the container runtime's inspection tooling [1].
- Alert on sustained growth in resident and GPU memory of decoding workers, and validate the alert with a controlled test workload [1].
- Obtain the FFmpeg project's fixed version for CVE-2026-125245 from its primary release or advisory channels, since the reviewed sources do not name one, and track bundled copies in applications [1].
- Upgrade to the confirmed fixed version on all inventoried hosts and bundled copies, then re-run the version check and authenticated package scanning [1].
- Re-run the application's regression tests and a controlled MJPEG corpus in staging while monitoring memory across many decodes, and record the owner, date and exceptions [1].
Evidence gaps
- Vendor advisory content and the official FFmpeg fixed version: the record names no fixed version and the reviewed sources include no vendor advisory; settle by obtaining the FFmpeg project's release notes or advisory that cites this CVE [1].
- Lower bound and complete affected range: the record publishes only a less-than-or-equal-to 9.0.2 bound; settle by the vendor publishing the full affected range [1].
- Root cause in code: the record describes the mechanism but the commit, pull request and code diff were not extracted; settle by reviewing the referenced change [1].
- Exploitation evidence and proof of concept: none in the pack, and the third-party advisory content was not extracted; settle by reviewing that advisory and the KEV and threat reporting after the cut-off [1][2].
- Indicators of compromise: none provided; settle by vendor, researcher or incident response publications that give validated indicators [1].
- Platform exposure: the NVD CPE configurations and distribution packages that embed FFmpeg are not in the pack; settle once NVD completes analysis and distributions publish advisories [1].
- Default configuration: whether VAAPI or NVDEC is enabled by default in common builds is not established; settle by the build configuration documentation of the affected builds [1].
- Attack vector applicability: whether a network-facing service decoding uploaded MJPEG counts as local under the scored AV:L metric is not established; settle through analysis by the NVD or the vendor, and a test of the organization's own input path [1].
- Scoring confirmation: both scores come from a secondary scorer on a record awaiting NVD analysis; settle by NVD's completed analysis [1].
References
- CVE-2026-125245 record. NIST National Vulnerability Database (NVD), 2026-11-10. https://nvd.nist.gov/vuln/detail/CVE-2026-125245. 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-125245. FIRST, 2026-11-10. https://api.first.org/data/v1/epss?cve=CVE-2026-125245. Accessed 2026-11-12.
Summary
FFmpeg through 9.0.2 contains a memory leak vulnerability in ff_mjpeg_decode_sof() in libavcodec/mjpegdec.c, which overwrites the hwaccel_picture_private pointer without freeing it. Attackers can supply crafted MJPEG streams with repeated SOF markers or failing frames to leak hwaccel private data and hardware buffers under VAAPI or NVDEC decoding.
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-401: Missing Release of Memory after Effective Lifetime
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-125245?
CVE-2026-125245 describes a memory leak in FFmpeg's MJPEG decoder, where a hardware-acceleration private pointer is overwritten without the earlier allocation being released. Weakness type: Missing Release of Memory after Effective Lifetime (CWE-401).
How severe is CVE-2026-125245?
CVE-2026-125245 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-125245 being exploited?
Not as far as is known: CVE-2026-125245 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-125245?
FFmpeg ≤ 9.0.2.
How do I fix CVE-2026-125245?
Inventory every host, container image and application that bundles FFmpeg, and record the version and whether VAAPI or NVDEC is enabled; treat any version at or below 9.0.2 as in scope. Run ffmpeg -version on each host with the binary available, and record the version banner; a version at or below 9.0.2 is a potential exposure, not proof of exploitability. Run ffmpeg -hidebanner -hwaccels on each build to see which acceleration methods it exposes, then check each application for hardware acceleration options used for MJPEG.