Home › CVE › Vulnerabilities
CVE-2026-125240 — FFmpeg
One of 121 FFmpeg vulnerabilities published together by NVD.
VulnerabilitiesResearch article
FFmpeg through 9.0.2: resource leak in libsvtjpegxsdec JPEG XS decoder wrapper enables memory exhaustion (CVE-2026-125240)
| CVE | CVE-2026-125240 |
|---|---|
| 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-125240 describes a resource leak in the FFmpeg JPEG XS decoder wrapper (libsvtjpegxsdec.c), where decoder instances are not released when frame dimensions are rejected [1]. The NVD record carries two secondary CVSS scores by VulnCheck: CVSS 4.0 6.8 MEDIUM with vector CVSS:4.0/AV:L/AC:L/AT:N/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 5.5 MEDIUM with vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H [1]. The CNA lists FFmpeg versions 8.1 up to and including 9.0.2 as affected, while the description says 'through 9.0.2' [1]. The record reports that a crafted JPEG XS stream, for example inside MPEG-TS, can repeatedly leak resources until memory is exhausted, so the expected impact is availability loss rather than confidentiality or integrity loss [1]. The record is Awaiting Analysis and no fixed version is published in the reviewed sources [1]. The CISA KEV catalog did not list the CVE as of 2026-11-12, which does not prove that it has not been exploited [2], and the FIRST EPSS estimate is 0.0016 (percentile 0.0581) [3]. The most important immediate action is to inventory FFmpeg builds that include the SVT JPEG XS decoder and restrict untrusted streams from reaching them until a vendor-fixed release is confirmed [1].
Key points
- CVE-2026-125240 is a resource leak in the FFmpeg libsvtjpegxsdec JPEG XS decoder wrapper that leaks decoder instances when frame dimensions are rejected [1].
- The CNA lists FFmpeg 8.1 through 9.0.2 as affected; the record is Awaiting Analysis and no fixed version is published in the reviewed sources [1].
- Secondary CVSS scores are 6.8 MEDIUM (CVSS 4.0) and 5.5 MEDIUM (CVSS 3.1), with availability as the only impact dimension [1].
- The CVE is not listed in CISA KEV as of 2026-11-12, and the EPSS estimate is 0.0016; neither proves the presence or absence of exploitation [2, 3].
- Immediate action: inventory FFmpeg builds with the JPEG XS wrapper, restrict untrusted input and bound decoder memory until a vendor-fixed release is confirmed [1].
Vulnerability identification
| Field | Detail | Source |
|---|---|---|
| CVE ID | CVE-2026-125240 | [1] |
| Vendor | FFmpeg project (as the CNA-published affected product) | [1] |
| Product / component | FFmpeg; file libsvtjpegxsdec.c; function svtjpegxsdecdecode() | [1] |
| Affected platform | Not established by the reviewed sources beyond the FFmpeg library itself | [1] |
| Published | 2026-11-09T19:17:02 | [1] |
| Last modified | 2026-11-10T21:46:36 | [1] |
| Record status | Awaiting Analysis | [1] |
| CWE | CWE-401, Missing Release of Memory after Effective Lifetime | [1] |
| CVSS 4.0 | 6.8 MEDIUM; CVSS:4.0/AV:L/AC:L/AT:N/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 | 5.5 MEDIUM; CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H; scorer disclosure@vulncheck.com (Secondary) | [1] |
| EPSS | 0.0016 (0.17%), percentile 0.0581, estimate dated 2026-11-10 | [3] |
| KEV status | Not listed as of 2026-11-12 | [2] |
| Related references | A VulnCheck advisory, an FFmpeg pull request and an FFmpeg commit are listed in the record; the reviewed sources do not state whether the pull request or commit is the fix | [1] |
CWE-401 describes a weakness in which memory or another resource that was obtained is not released once it is no longer needed. Here the record applies it to decoder instances, threads and buffers that remain allocated after a rejection path [1]. Analyst assessment: the CWE fits the leak pattern, but because the weakness concerns several resource types, the impact is broader than heap memory alone.
Discrepancy: the two CVSS vectors differ in user interaction. The 4.0 vector uses UI:P (passive) and the 3.1 vector uses UI:R (required) [1]. Both are secondary scores from one scorer, and the record contains no CNA-supplied score [1]. Analyst assessment: the record does not explain the difference, so the 3.1 interaction value should not be assumed without the scorer's rationale.
Technical background
FFmpeg is an open-source multimedia framework whose libavcodec library contains codec implementations and wrappers for external codec libraries [1]. The affected file, libsvtjpegxsdec.c, is a wrapper that connects FFmpeg's decoder interface to an SVT-based JPEG XS decoder; the reviewed sources do not describe the internals of that external library [1].
JPEG XS is a compressed image format used for frames in video streams. MPEG-TS (MPEG Transport Stream) is a container format that multiplexes audio, video and data packets, and it is commonly used for broadcast and live streams. The record names MPEG-TS as one example of a container that can carry a crafted JPEG XS stream [1].
A decoder wrapper normally follows this lifecycle: it receives a stream, parses headers, sets output frame dimensions, allocates decoder instances, worker threads and buffers, decodes frames and releases resources when done. The record places the flaw in the step where frame dimensions are validated and rejected [1]. Trust boundary: the decoder treats header values in the incoming stream as untrusted input, so header validation is the control that should limit resource allocation before large allocations occur. Analyst assessment: the record does not describe the exact ordering of allocation and validation in the code.
The record refers to the routine that sets frame dimensions as ffsetdimensions() [1]. The name is reproduced as written in the record; the reviewed sources do not confirm the exact symbol name in the source tree.
Vulnerability description
Security property violated: availability. The record states that an attacker can exhaust memory by causing resources to leak repeatedly [1]. The CVSS 4.0 vector rates the vulnerable system's availability impact as High and confidentiality and integrity impact as None [1].
Component: the svtjpegxsdecdecode() function in libsvtjpegxsdec.c, when the dimension-setting step rejects the frame dimensions taken from the stream [1].
What an attacker can cause: repeated leaks of decoder instances, threads and buffers, eventually exhausting memory on the decoding host or process [1]. The record describes an attacker supplying oversized headers in a crafted JPEG XS stream [1].
Conditions for the flaw to matter: the application must invoke FFmpeg to decode a JPEG XS stream through the SVT-based wrapper, and the attacker must be able to supply input that reaches it [1]. The reviewed sources do not establish whether a single stream is enough to exhaust memory, how many repetitions are needed, or whether the impact depends on the platform or allocator.
Not established by the reviewed sources: code execution, memory disclosure, data modification, privilege escalation, or whether the flaw is reachable with the default FFmpeg build configuration.
Root cause analysis
Confirmed: the record states that decoder instances are leaked when the dimension-setting routine rejects frame dimensions [1]. The reviewed sources do not provide the patch diff or a code-level explanation of the defect.
Analyst assessment: the leak is probably an error path in which the decoder is created or partly initialized before dimensions are validated, and the rejection branch returns without releasing the instance, its threads and its buffers. This is consistent with the CWE-401 mapping [1]. This is an inference and is not confirmed by the record.
Why existing controls may fail: the failure only occurs on a rejection path, which is often less tested than the success path, so ordinary decoding tests may not exercise it. Analyst assessment: a repeated-request pattern can turn a per-call leak into sustained growth.
The reviewed sources do not state whether the fix is the referenced commit or pull request [1].
Technical mechanics
The following flow is Illustrative and is based only on the description in the record [1].
- The application passes a container, for example MPEG-TS, to FFmpeg, which demultiplexes it and identifies a JPEG XS video stream.
- The JPEG XS packets are passed to the SVT-based wrapper in libsvtjpegxsdec.c.
- The wrapper reads the stream headers, which carry frame dimensions.
- The dimension-setting routine checks the values. Oversized values are rejected [1].
- Confirmed: on rejection, the decoder instance created for this call is not released, along with its threads and buffers [1].
- The function returns an error, and the caller may continue with later packets.
- Repeated crafted packets repeat steps 3 to 6, so unreleased resources accumulate until memory is exhausted [1].
Control that should have prevented the issue: complete cleanup on every error path, and validation of header dimensions before any resource-heavy allocation. Analyst assessment: a fixed version would most likely move allocation after validation or release all allocated resources on rejection, but the reviewed sources do not confirm this.
Attack surface and exploitation prerequisites
| Prerequisite | Assessment | Source |
|---|---|---|
| Network access | Not established by the reviewed sources; the 4.0 and 3.1 vectors both use AV:L (local) | [1] |
| Adjacent-network access | Not established by the reviewed sources | [1] |
| Local access | Indicated by the AV:L value in both CVSS vectors; the record also describes a stream supplied to the decoder, which may come from a remote source, so the vector and the description should be reconciled by the scorer | [1] |
| Physical access | Not established by the reviewed sources | [1] |
| Authentication | None required (PR:N in both vectors) | [1] |
| User interaction | 4.0 vector: UI:P (passive); 3.1 vector: UI:R (required). The reviewed sources do not explain the difference | [1] |
| Required configuration | The SVT-based JPEG XS decoder wrapper must be present in the build and used for decoding; whether common distribution builds include it is not established | [1] |
| Attacker position | Able to supply a crafted JPEG XS stream to the decoding path, for example inside MPEG-TS | [1] |
| Environmental dependencies | Memory limits, process isolation and restart behaviour of the decoding service are not described by the sources | [1] |
Analyst assessment: the AV:L value in both vectors may underrate exposure for a service that decodes untrusted uploads or streams over a network, because the attacker only needs to reach the decoder with input. The vector alone does not establish how the attacker reaches the decoder, so this must be checked against each deployment.
Exploitation scenarios and attack lifecycle
No exploitation chain is documented by the reviewed sources.
Illustrative scenario 1: a media-processing service accepts uploaded transport streams, decodes them with FFmpeg and stores thumbnails. An uploader submits many streams with oversized JPEG XS headers. Each rejected decode leaves resources allocated. Memory grows until the service is degraded [1]. Defensive opportunities: validate and size-limit uploads, run decoding in a resource-limited worker, alert on steady memory growth in decoding workers, and disable JPEG XS decoding if the service does not need it.
Illustrative scenario 2: a local user or process on a shared host repeatedly feeds crafted streams to a local FFmpeg invocation, exhausting memory and affecting other workloads on the host [1]. Defensive opportunities: cgroup or systemd memory limits, per-user process limits, and monitoring of resident memory for FFmpeg processes.
The reviewed sources do not describe any attacker objective beyond resource exhaustion, and they do not establish a path to code execution or data access [1].
Impact analysis
| Area | Technically demonstrated by the sources | Plausible downstream consequence (Analyst assessment) |
|---|---|---|
| Confidentiality | None indicated (C:N in both CVSS vectors) [1] | None expected from the described flaw |
| Integrity | None indicated (I:N in the 3.1 vector; VI:N in the 4.0 vector) [1] | None expected from the described flaw |
| Availability | Memory exhaustion from repeated leaks [1] | Decoding service outage, host memory pressure affecting co-located workloads |
| Authentication and authorization | None indicated; PR:N in both vectors [1] | Not applicable to the described flaw |
| Privilege boundaries | Not established by the reviewed sources | Not established by the reviewed sources |
| Data and privacy | Not established by the reviewed sources | Not established by the reviewed sources |
| Business operations | Not established by the reviewed sources | Interrupted media processing where the decoder is in a production path |
| Regulatory or contractual | Not established by the reviewed sources | Depends on service-level commitments of the affected deployment |
Affected products and versions
| Vendor | Product / component | Affected versions | Platform | Fixed version | Source and qualification |
|---|---|---|---|---|---|
| FFmpeg | FFmpeg, libsvtjpegxsdec.c decoder wrapper | Per the CNA: 8.1 through 9.0.2 inclusive (affected ≥ 8.1, ≤ 9.0.2) | Not established; the record is generic | Not published in the reviewed sources | [1] CNA-published range; record Awaiting Analysis |
| FFmpeg | Same | Description states 'through 9.0.2' | Not established | Not published | [1] Description and CNA range differ in their lower bound |
Not established by the reviewed sources: affected versions before 8.1, whether the 9.0.2 release itself is the last vulnerable release, distribution packages or forks, and whether builds without the SVT JPEG XS decoder wrapper are exposed. The record's references include a FFmpeg pull request and a commit, but the reviewed sources do not confirm which release contains a fix [1].
Exploitation and threat intelligence status
| Item | Status | Source |
|---|---|---|
| Confirmed exploitation in the wild | Not established by the reviewed sources | [1], [2] |
| CISA KEV listing | Not listed as of 2026-11-12. The website reads the complete catalog, and the absence of a listing is not evidence that the CVE was not exploited | [2] |
| EPSS | 0.0016 (0.17%) probability of exploitation activity in the next 30 days; percentile 0.0581; a statistical estimate, not evidence of exploitation | [3] |
| Public proof of concept | Not established by the reviewed sources; the record references a VulnCheck advisory, which the pack does not describe in detail | [1] |
| Threat actors, campaigns or sectors | Not established by the reviewed sources | [1], [2], [3] |
The distinction matters: the presence of a flaw in a record is theoretical exploitability, the existence of a public proof of concept would be a separate item, and only confirmed in-the-wild activity would establish exploitation. None of these is confirmed by the reviewed sources. The absence of public evidence is not proof that exploitation has not occurred.
Indicators of compromise
Not established by the reviewed sources. No file hashes, file names, domains, IP addresses, URLs, process command lines or log events are given for this CVE. Indicators in general go stale quickly and must be validated before blocking. No indicators should be created from this article.
Detection and exposure assessment
Asset inventory: identify every host, container image and application that uses FFmpeg, including bundled copies inside other software. A version string is not sufficient on its own because the affected range and the fixed release are not fully published [1].
Read-only version and feature check (standard FFmpeg tooling; output varies by build):
- Run ffmpeg -version on each host. Expected output: a version banner and a configuration line listing enabled external libraries. Limitation: the banner shows the version, not whether the vulnerable path is reachable.
- Run ffmpeg -decoders and search the output for the JPEG XS decoder name. Prerequisite: the ffmpeg binary must be on the path. Expected output: a list of decoders, which may or may not include the SVT-based JPEG XS decoder. Limitation: the decoder list does not prove that an application uses it.
Authenticated vulnerability scanning: the reviewed sources do not identify a scanner signature for this CVE, so scanner coverage cannot be assumed.
Runtime telemetry: for services that decode untrusted streams, review resident memory growth of decoding workers over time and error counts from the decoder. Analyst assessment: sustained growth tied to decode errors would be consistent with the described mechanism, but it is not proof of exploitation.
A version or feature check identifies possible exposure only. It does not prove that the vulnerable path is reachable or exploited.
Immediate mitigation
- Inventory and scope (source-independent; required before any other step). Protects against unknown exposure. Limitation: incomplete if bundled copies are missed. Verify with the inventory list signed off by the owners.
- Restrict untrusted input to decoding paths. Stop accepting externally supplied JPEG XS streams or MPEG-TS containers carrying them where the business need does not require it. Protects against attacker-supplied streams. Side effects: some uploads will fail. Verify by testing rejected uploads in staging and confirming logs show the rejection. Analyst assessment, following from the documented input path [1].
- Disable the JPEG XS decoder where it is not needed. Where a build or configuration allows excluding the SVT-based wrapper, rebuild or reconfigure without it. Limitation: the reviewed sources do not describe the build option names, so the build documentation must be checked. Verify with ffmpeg -decoders showing no JPEG XS decoder after rebuild. Analyst assessment.
- Bound memory of decoding workers. Run FFmpeg decoding in a process with a memory limit, for example a cgroup or systemd MemoryMax setting, so that exhaustion affects only the worker. Protects against host-wide impact. Side effect: legitimate large frames may fail. Verify by checking the unit properties on the running worker. Analyst assessment, following from the described memory exhaustion mechanism [1].
- Alert on memory growth. Create an alert on sustained resident-memory growth of decoding workers. Verify the alert fires in a test environment with a controlled workload. Analyst assessment.
Permanent remediation
Vendor-confirmed fix: not established by the reviewed sources. The record is Awaiting Analysis, the affected range is given by the CNA but no fixed release is published, and the referenced pull request and commit are not confirmed as the fix [1].
Recommended steps once a fixed release is published by the FFmpeg project: upgrade every affected FFmpeg build to the fixed release named in the vendor's advisory or release notes; rebuild or repackage any bundled copies; restart every long-running process that loaded the library, because a running process keeps the old code; and verify the installed version with ffmpeg -version. Upgrade prerequisites, dependency changes and rollback steps are not established by the reviewed sources; back up the current build and document the rollback path before the change.
To track the fix, review the referenced pull request and commit in the FFmpeg source repository, and confirm they are merged into a release before treating them as a fix. This is recommended practice and not vendor confirmation.
Workarounds and compensating controls
The measures in the Immediate mitigation section are compensating controls. They reduce exposure to untrusted input and limit the blast radius of memory exhaustion, but they do not remove the leak. Residual risk: a legitimate or permitted stream can still trigger the leak, and a restricted process can still be exhausted. A workaround is not equivalent to a permanent fix, and it should be removed or re-evaluated once a fixed release is deployed.
Validation and verification
- Confirm the installed FFmpeg version or build on each host with ffmpeg -version, against the fixed release once published. Record the output with host name and date.
- Confirm the JPEG XS decoder is absent or deliberately present with ffmpeg -decoders, and document the decision with the owner.
- Confirm that long-running decoding processes were restarted after the update and that they run the new binary or library.
- Confirm the memory limits or input restrictions are still active, by reading the unit properties and the input-validation configuration.
- Run a controlled decode test in a staging environment using only the owner's own, non-malicious sample streams, and check that memory returns to baseline after repeated decodes. Do not use crafted exploit inputs.
- Review logs and service health for decode errors and memory growth over a defined observation period.
- Re-run the authenticated scanner once its signature for the CVE is available, and record the result.
- Record the evidence, owner, date and any exceptions. Do not conclude the system is secure from one check; the combined results must support the conclusion.
Incident response
If memory exhaustion of a decoding service is observed, and the team suspects this flaw, follow the organization's incident response plan. Triage: determine whether the affected process loads the JPEG XS wrapper and whether the input came from an untrusted source. Scope: identify all hosts and workers that decoded the same input source. Containment: restrict the input path and apply memory limits, rather than deleting data. Evidence preservation: capture logs, input files that were rejected, process memory statistics and the FFmpeg version before any restart; do not delete files or reimage hosts before the evidence is preserved. Investigation: review the logs for the sources of the repeated inputs. Credential rotation: not indicated by the reviewed sources, because the record describes no credential exposure. Eradication and recovery: upgrade once a fixed release is published, then monitor memory. Notification: follow any applicable obligations as determined by legal and compliance teams; the reviewed sources establish none. Lessons learned: record whether the decode path should have been exposed to untrusted input at all.
Security hardening and prevention
Specific to this flaw: validate frame dimensions and other header values before allocating decoder instances, threads or buffers, and release every allocated resource on every error path. Add regression tests that feed rejected dimension values and check that resource counts return to baseline. These are recommendations derived from the CWE-401 mapping and the record [1], not vendor-confirmed measures.
Broader defence in depth (labelled as such): limit the decoder surface by enabling only the codecs and containers that the application needs; run media decoding in isolated, memory-limited workers; apply input size and rate limits; monitor decoder resource metrics; and keep an inventory of FFmpeg builds so that patches can be deployed quickly.
Risk assessment
Technical severity: the CNA-based and secondary scores place the issue at MEDIUM severity under both CVSS versions, with availability as the only impact dimension [1]. These scores are not a measure of organizational risk.
Exposure and asset criticality: depends on whether the deployment decodes JPEG XS streams from untrusted sources. Services that accept uploads or network streams in a production path should be treated as higher priority than local, offline use.
Prerequisites and attacker opportunity: no authentication is required according to both vectors, but the reviewed sources do not establish the reachability of the decoder for a given deployment [1].
Evidence of exploitation: none confirmed. The CVE is not in the KEV catalog as of 2026-11-12 [2], and the EPSS estimate is low [3].
Potential business impact: loss of a media-processing service and possible memory pressure on shared hosts, as described in the Impact analysis section.
Existing controls and residual risk: controls depend on each deployment. Without a fixed release, the residual risk remains for any exposed decoding path.
Recommended priority (organization-specific, not a CVSS score; assumptions: the organization runs FFmpeg with the JPEG XS wrapper in some builds and some decoding paths accept external input): first, inventory and restrict untrusted input to JPEG XS decoding; second, bound memory of decoding workers; third, track the vendor for a fixed release and deploy it promptly once published.
Conclusion
The core flaw is a resource leak in the FFmpeg JPEG XS decoder wrapper, where decoder instances and related resources are not released when frame dimensions are rejected [1]. The record reports that repeated crafted streams can exhaust memory, so the primary impact is availability [1]. Teams that operate FFmpeg with the wrapper should act first: inventory affected builds, restrict untrusted input and bound the memory of decoding workers. The permanent fix is a vendor release that corrects the leak, which the reviewed sources do not yet identify [1]. Closing the issue requires the vendor's fixed version, evidence that every affected build and restarted process runs it, a verified removal or retention decision for compensating controls, and records of validation.
Remediation checklist
- Inventory every host, container and bundled copy that runs FFmpeg and record the output of ffmpeg -version for each; the affected range is 8.1 through 9.0.2 per the CNA [1].
- Run ffmpeg -decoders on each inventoried build and record whether the JPEG XS decoder is present [1].
- Stop accepting externally supplied JPEG XS streams in decoding paths where the business need does not require them, and verify with rejected-input tests in staging [1].
- Run decoding workers under a memory limit such as a cgroup or systemd MemoryMax setting, and verify the limit on the running worker's unit properties [1].
- Alert on sustained resident-memory growth of FFmpeg decoding workers and test the alert with a controlled, non-malicious workload [1].
- Track the FFmpeg project and the NVD record for a published fixed release; the referenced pull request and commit are not confirmed as the fix [1].
- When a fixed release is published, upgrade all affected builds, rebuild bundled copies and restart long-running processes, then verify with ffmpeg -version [1].
- Re-run authenticated vulnerability scanning once a signature for the CVE exists and record the result, the owner and the date [1].
- Retain compensating controls until the fixed version is verified on every host, then review and remove exceptions [1].
Evidence gaps
- Fixed version: the reviewed sources do not publish a fixed FFmpeg release; the vendor's advisory or release notes should be checked once available [1].
- Complete affected range: the CNA gives 8.1 through 9.0.2 while the description says 'through 9.0.2'; affected versions before 8.1 are not established [1].
- Root cause at code level: the record does not describe the patch or the exact allocation and validation order; the referenced commit and pull request need review to confirm the mechanism [1].
- Conflicting CVSS attributes: the 4.0 vector uses UI:P and the 3.1 vector uses UI:R, and both use AV:L; the scorer's rationale is needed [1].
- Attack vector reconciliation: the record describes a crafted stream that may arrive over a network, but both vectors use AV:L; the deployment-level reachability must be established [1].
- Build configuration: whether common distribution builds include the SVT-based JPEG XS decoder wrapper, and the build option names to exclude it, are not established [1].
- Exploitation evidence: no confirmed in-the-wild exploitation, public proof of concept or threat actor attribution is established; the referenced VulnCheck advisory should be reviewed for details [1, 2].
- Indicators of compromise: none are given in the pack; detection relies on memory and decoder telemetry rather than indicators [1].
- Scanner coverage: no scanner signature or vendor detection tool is identified in the reviewed sources [1].
References
- CVE-2026-125240 record. NIST National Vulnerability Database (NVD), 2026-11-10. https://nvd.nist.gov/vuln/detail/CVE-2026-125240. 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-125240. FIRST, 2026-11-10. https://api.first.org/data/v1/epss?cve=CVE-2026-125240. Accessed 2026-11-12.
Summary
FFmpeg through 9.0.2 contains a resource leak vulnerability in svt_jpegxs_dec_decode() in libsvtjpegxsdec.c that leaks decoder instances when ff_set_dimensions() rejects frame dimensions. Attackers can supply a crafted JPEG XS stream, for example in MPEG-TS, with oversized headers to repeatedly leak decoder threads and buffers, exhausting memory.
Severity breakdown
Medium · 6.8
An attacker without an account can exploit this with local access if a user views or visits something.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- 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 | ≥ 8.1, ≤ 9.0.2 | — |
References by type
Patches and fixed releases
Other references
Affected
- FFmpeg
Frequently asked questions
What is CVE-2026-125240?
CVE-2026-125240 describes a resource leak in the FFmpeg JPEG XS decoder wrapper (libsvtjpegxsdec.c), where decoder instances are not released when frame dimensions are rejected. Weakness type: Missing Release of Memory after Effective Lifetime (CWE-401).
How severe is CVE-2026-125240?
CVE-2026-125240 has a CVSS 4.0 base score of 6.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.
Is CVE-2026-125240 being exploited?
Not as far as is known: CVE-2026-125240 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-125240?
FFmpeg ≥ 8.1, ≤ 9.0.2.
How do I fix CVE-2026-125240?
Inventory every host, container and bundled copy that runs FFmpeg and record the output of ffmpeg -version for each; the affected range is 8.1 through 9.0.2 per the CNA. Run ffmpeg -decoders on each inventoried build and record whether the JPEG XS decoder is present. Stop accepting externally supplied JPEG XS streams in decoding paths where the business need does not require them, and verify with rejected-input tests in staging.