Home › CVE › Vulnerabilities
CVE-2026-125204 — FFmpeg
One of 121 FFmpeg vulnerabilities published together by NVD.
VulnerabilitiesResearch article
FFmpeg heap buffer overflow in the libwebp encoder frame path (CVE-2026-125204) with no fixed version published
| CVE | CVE-2026-125204 |
|---|---|
| Vendor and product | FFmpeg |
| Published | November 12, 2026 07:21 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-125204 describes a heap-based buffer overflow (CWE-122) in FFmpeg through 9.0.2, in the libwebp encoder path that handles a frame-retrieval function, reached when the crthreshold setting is in use [1]. The NVD record carries a CVSS 4.0 base score of 7.3 HIGH with vector CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/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 a CVSS 3.1 score of 7.0 HIGH with vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H; both were scored by a secondary scorer, not by NIST or the vendor [1]. The CNA lists FFmpeg versions through 9.0.2 as affected, and the pack contains no fixed version [1]. The record is Awaiting Analysis, the CVE is not in the CISA KEV catalog as of 2026-11-12, and the FIRST EPSS estimate is 0.0014 (0.14%) for the next 30 days, so exploitation in the wild is not established by the reviewed sources [1, 2, 3]. The most important immediate action is to inventory every FFmpeg build and every application that embeds its libraries, record the exact version, and restrict processing of untrusted media with encoder settings that touch this path until a vendor-confirmed fix is identified and deployed [1].
Key points
- CVE-2026-125204 is a heap-based buffer overflow (CWE-122) in FFmpeg through 9.0.2, in the libwebp encoder path, triggered with crthreshold set and a mid-stream resolution increase [1].
- The record gives CVSS 4.0 7.3 HIGH and CVSS 3.1 7.0 HIGH, both from a secondary scorer, with the record status Awaiting Analysis [1].
- No vendor-confirmed fixed version is in the pack; the record lists a commit and a pull request whose relationship to a fix is not established [1].
- Not listed in CISA KEV as of 2026-11-12, and the EPSS estimate is 0.0014 (0.14%) [2, 3].
- Immediate action: inventory FFmpeg builds and embedded libraries, remove crthreshold from untrusted media paths, and isolate media workers [1].
Vulnerability identification
| Field | Value | Source |
|---|---|---|
| CVE ID | CVE-2026-125204 | [1] |
| Vendor / CNA | FFmpeg (affected versions published by the CVE Numbering Authority) | [1] |
| Product | FFmpeg | [1] |
| Component | Function fflibwebpgetframe() in the libwebp encoder common code; the record spells the file libwebpenccommon.c, while a listed reference path reads libavcodec/libwebpenc_common.c | [1] |
| Affected platform | Not established by the reviewed sources beyond the FFmpeg release line | [1] |
| Published | 2026-11-09T19:16:56 | [1] |
| Last modified | 2026-11-10T21:46:37 | [1] |
| Record status | Awaiting Analysis | [1] |
| CWE | CWE-122, Heap-based Buffer Overflow | [1] |
| CVSS 4.0 | 7.3 HIGH; vector CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/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 | 7.0 HIGH; vector CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H; scored by disclosure@vulncheck.com (Secondary) | [1] |
| KEV status | Not listed as of 2026-11-12 | [2] |
| EPSS | 0.0014 (0.14%), percentile 0.0363, dated 2026-11-10 | [3] |
| Related identifiers | Commit 9b99973b2bbecee0b7e1e57035b95498b42f54a6, pull request 25682 (listed as references; their relationship to a fix is not established); a VulnCheck advisory is listed as a reference | [1] |
The record lists two CVSS scores from one secondary scorer, and the pack contains no NIST-analysed or vendor-scored CVSS values, so the scores should be treated as provisional [1]. No vendor advisory for this CVE is in the pack.
Technical background
FFmpeg is an open-source multimedia framework that decodes, encodes, filters and muxes audio and video. Its libavcodec library contains codec implementations, including an encoder path that can produce WebP images through the libwebp encoder. The record places the flaw in common code shared by the libwebp encoder path, specifically a function named fflibwebpgetframe() [1].
In a video encoder, a frame buffer or reference frame is memory that holds decoded pixel data from earlier frames. Encoders often compare a new frame with a reference frame to find changed regions, a technique referred to in the record as conditional replenishment; the name of the related setting, crthreshold, is taken from the record [1]. For this to work, the code must size its buffers for the current frame dimensions and copy pixel rows into those buffers within the allocated bounds.
A trust boundary exists between the untrusted media content, which may come from a file, a network stream or a user upload, and the encoder's internal state. Any property of the media that changes the expected frame dimensions crosses that boundary and must be checked against the buffers allocated earlier in the pipeline.
Heap buffer overflow is a memory-safety weakness in which data is written beyond the end, or before the start, of a buffer allocated on the heap [1]. Its consequences depend on the surrounding program and platform, and the record describes an outcome of memory corruption and application crashes [1].
Vulnerability description
The record states that FFmpeg through 9.0.2 contains a heap buffer overflow in the fflibwebpgetframe() function, which can corrupt memory when crthreshold is set [1]. The record describes an attacker-controlled media stream whose resolution increases mid-stream. In that case, a copy operation writes pixel data beyond the bounds of a reference frame that was sized for the earlier, smaller resolution, and the record states that this can crash applications [1].
Security properties affected: memory integrity is violated by out-of-bounds writes. The record describes crashes; it does not state whether arbitrary code execution, information disclosure or privilege change is possible [1]. The pack does not establish any of those outcomes.
Conditions that must exist for the flaw to matter, as described in the record: the encoder path must be used, the crthreshold setting must be set, and the processed media must change resolution during the stream [1]. The record does not state the default value of crthreshold, which FFmpeg commands or APIs reach this path, or whether the flaw affects decoding-only use. Those points are not established by the reviewed sources.
What the vulnerability does not establish, based on the evidence: no proof of concept, crash reproduction, memory-safety analysis or exploitation chain is included in the pack, so claims of code execution or data theft would be unsupported [1, 2, 3].
Root cause analysis
Root cause status: The reviewed sources do not disclose the root cause in detail. The record describes the symptom (a copy into memory past the end of a stale reference frame after a mid-stream resolution increase) but not the code change that fixes it [1].
Analyst assessment: a plausible underlying defect is that the code allocates or reuses a reference-frame buffer using dimensions taken from an earlier frame, and does not reallocate or re-validate that buffer when the input dimensions change, so the copy length is derived from the new dimensions while the destination reflects the old ones. This is consistent with the record's wording about a stale reference frame, but the pack does not confirm it [1].
Why existing controls may fail: the record names no bounds checks. A system that relies on one-time allocation at stream start, without per-frame dimension validation, would not detect the mismatch. The CWE-122 classification in the record reflects a heap-buffer write, not a specific validation failure [1].
The commit and pull request listed in the record may contain the actual change, but the pack does not describe their contents, so the root cause cannot be confirmed from them [1].
Technical mechanics
The following numbered flow is an Illustrative reconstruction based on the record's description, not a confirmed code path.
- The application starts an FFmpeg encode path that uses the libwebp encoder and sets the crthreshold option [1].
- The encoder allocates a reference-frame buffer sized for the dimensions of the first input frame (Illustrative).
- Later in the same stream, the input resolution increases, and the new frame has larger dimensions [1].
- The fflibwebpgetframe() path copies pixel rows for the new dimensions into the reference buffer that still has the old size, because the record describes a stale reference frame [1].
- The copy writes past the end of the heap allocation, corrupting adjacent heap memory and crashing the process, as the record describes [1].
The security control that should have prevented the issue is per-frame validation that the destination buffer capacity is at least the size required by the current frame, or reallocation whenever the dimensions change (Analyst assessment). The pack does not confirm which control FFmpeg uses.
Attack surface and exploitation prerequisites
| Prerequisite | Assessment | Basis |
|---|---|---|
| Network access | Not required by the vector; AV:L indicates local attack vector in the CVSS 4.0 and 3.1 vectors | [1] |
| Adjacent network | Not indicated by the vectors | [1] |
| Local access | Indicated by AV:L in both vectors; this is taken from the vector, not from a documented exploitation path | [1] |
| Physical access | Not indicated | [1] |
| Authentication | PR:N in both vectors, meaning no privileges are indicated as required | [1] |
| User interaction | UI:P in the 4.0 vector (passive) and UI:R in the 3.1 vector (required); the two vectors disagree in wording | [1] |
| Required configuration | crthreshold set; encoder path in use | [1] |
| Attacker-supplied input | Crafted media with a mid-stream resolution increase | [1] |
| Attack complexity | AC:H in both vectors | [1] |
| Attack requirements | AT:P in the 4.0 vector | [1] |
The CVSS vectors suggest a local, high-complexity attack, but the pack does not describe how an attacker would deliver media to a local process, so the practical reachability of the flaw is not established. Vector-based prerequisites are not confirmed exploitability.
Exploitation scenarios and attack lifecycle
Scenario 1 (Illustrative): a user or automated service converts untrusted video to WebP or processes it through a pipeline that enables the affected encoder setting. A crafted file with a mid-stream resolution change causes a crash of the FFmpeg process or the host application. Defensive opportunities: restrict which inputs reach encoder settings, run conversion in isolated worker processes with restarts, and alert on repeated crashes of media-processing services.
Scenario 2 (Illustrative): an attacker uses the crash to disrupt a media service. The record supports crashing applications as an outcome, so availability impact is the best-supported consequence [1].
Scenario 3 (Illustrative, unsupported by the pack): memory corruption is turned into code execution or data disclosure. No source in the pack documents this, so it is not treated as a confirmed outcome [1, 2, 3].
No confirmed attack chain, initial access vector or post-exploitation activity is documented in the reviewed sources [1, 2, 3].
Impact analysis
| Area | Technically demonstrated by the record | Plausible downstream consequence (not confirmed) |
|---|---|---|
| Confidentiality | Not established by the reviewed sources | Leaked process memory if the corruption is read back (Unknown) |
| Integrity | Memory corruption of adjacent heap data is described [1] | Corrupted decoded or encoded output, or corrupted application state (Unknown) |
| Availability | Application crashes are described [1] | Service interruption for media pipelines and conversion jobs |
| Authentication and authorization | Not established by the reviewed sources | None identified |
| Privilege boundaries | Not established by the reviewed sources | Depends on the process privileges and sandboxing of the host application |
| Data and privacy | Not established by the reviewed sources | Depends on what media and memory the host process holds |
| Business operations | Not established by the reviewed sources | Downtime in media processing workflows |
| Regulatory or contractual | Not established by the reviewed sources | Depends on the organization and data handled |
CVSS impact metrics in both vectors are rated High for confidentiality, integrity and availability [1]. These scores are secondary assessments, and the record does not explain how confidentiality impact arises, so the scores should be read as an estimate of potential rather than a demonstrated result.
Affected products and versions
| Vendor | Product / component | Affected versions | Platform | Fixed version | Source and qualification |
|---|---|---|---|---|---|
| FFmpeg | FFmpeg, libavcodec libwebp encoder common code | Through 9.0.2 (listed by the CNA as affected at 9.0.2 or lower) | Not established by the reviewed sources | Not established by the reviewed sources | [1]; the CNA range is the only version statement in the pack |
Known exclusions: none are stated in the pack. Whether builds from distribution packages carry backported changes is not established. Whether downstream applications that embed FFmpeg libraries are affected depends on whether they enable the affected path, which is not established by the reviewed sources.
No vendor advisory, release note or fixed version is included in the pack, so the complete affected range cannot be confirmed as ending at 9.0.2 with a fixed release.
Exploitation and threat intelligence status
| Evidence | Status | Date | Source |
|---|---|---|---|
| Confirmed exploitation in the wild | Not established by the reviewed sources | Not applicable | [1, 2] |
| CISA KEV listing | Not listed | 2026-11-12 | [2] |
| EPSS probability | 0.0014 (0.14%), percentile 0.0363 | 2026-11-10 | [3] |
| Public proof of concept | Not established by the reviewed sources; a VulnCheck advisory is listed as a reference, but its content is not in the pack | Not applicable | [1] |
| Threat actors, campaigns, sectors | Not established by the reviewed sources | Not applicable | Not applicable |
The absence of KEV listing is not proof that exploitation has not occurred; the catalog states this too [2]. EPSS is a statistical estimate and not evidence of exploitation [3].
Indicators of compromise
No indicators of compromise are provided in the reviewed sources. No file hashes, file names, domains, IP addresses, process command lines or log events are established for this CVE. Indicators would go stale and must be validated before blocking. Teams should not treat the absence of indicators as evidence of safety.
Detection and exposure assessment
Step 1: inventory. Identify every host, container image and application package that includes FFmpeg, including libavcodec libraries embedded in other software. Record the vendor build, distribution package version and the source of each binary. Version information is the only verifiable starting point from the pack [1].
Step 2: version check. For a standalone FFmpeg command-line build, the standard read-only command is ffmpeg -version, run where the binary is on the PATH. Expected output includes the FFmpeg version string and the build configuration. A version at or below 9.0.2 places the build in the range the CNA lists as affected [1]. Limitations: distribution builds may backport fixes without changing the version string, and embedded libraries may not be reflected by the standalone binary version. A version check is not proof of exploitability.
Step 3: configuration check. Search encoder invocations, scripts and application configuration for the crthreshold option, and identify the libwebp encoder path in use [1]. Presence of the option is required for the record's described condition, so its absence reduces the likelihood of the described path but does not replace a version review.
Step 4: input and telemetry review. Identify pipelines that accept untrusted media and convert to WebP. Review logs for crashes or restarts of the media-processing process, and for repeated failures on specific input files. The pack provides no log event names or fields for this CVE, so the review must rely on general process-crash telemetry.
Step 5: authenticated vulnerability scanning. The pack does not identify a scanner plugin or signature for this CVE, so coverage of scanners is not established. Use vendor-supplied or distribution-supplied package data where scanner coverage is uncertain.
Immediate mitigation
- Restrict untrusted media from the affected encoder path. Stop converting untrusted media to WebP with the crthreshold option set, or route such conversions to an isolated worker. Protects against the described condition, which requires crthreshold and encoder use [1]. Limitation: the record does not state every affected entry point. Side effect: loss of conversion functionality. Verification: confirm that no job manifests or scripts set crthreshold for untrusted inputs. This step is recommended based on the record's stated condition, not a vendor instruction.
- Run media conversion in isolated processes with resource and privilege limits, and automatically restart crashed workers. Limits the consequence of memory corruption to a worker process. Limitation: this does not prevent the memory corruption itself. Verification: confirm service-manager configuration and worker isolation with a read-only review. Recommended hardening, not a vendor measure.
- Remove public upload paths that feed the affected encoder. Reduces attacker-supplied input reaching the vulnerable path [1]. Verification: confirm that web forms and APIs no longer pass uploads to the encoder.
- Increase monitoring of media-processing crashes. Provides earlier detection of exploitation attempts that cause crashes. Limitation: crashes can have many causes. Verification: confirm alert rules trigger on restarts of the media worker.
Permanent remediation
Vendor-confirmed fix: not established by the reviewed sources. The pack contains no vendor advisory, release note or fixed version for CVE-2026-125204 [1, 2, 3].
References in the record include commit 9b99973b2bbecee0b7e1e57035b95498b42f54a6 and pull request 25682 in the FFmpeg project [1]. These may relate to a fix, but the pack does not state that either is the remediation, so they must be reviewed against the FFmpeg release notes before being relied upon.
Recommended approach until a confirmed fixed version is available: maintain the mitigations above, track FFmpeg release notes and the commit history for this function, and upgrade to a release that includes the verified change once one is identified and tested in a staging environment. Upgrade prerequisites, backup requirements, maintenance-window considerations and rollback steps are not established by the pack. Restart or reload requirements after an update are not documented in the reviewed sources.
Workarounds and compensating controls
No vendor-documented workaround is included in the pack. The mitigations in the Immediate mitigation section are compensating controls that reduce exposure. They do not remove the flaw, and their residual risk includes memory corruption within a worker process and the possibility that the affected path is reached by other settings or entry points not identified in the record [1]. A compensating control is not equivalent to a permanent fix.
Validation and verification
- Record the installed FFmpeg version and the version of any embedded libavcodec library, using ffmpeg -version or the package manager for each host. Expected: a version outside the listed affected range, once a fixed release is confirmed [1].
- Confirm that the crthreshold option is not set in any job, script or service configuration that processes untrusted media, using a read-only search of configuration files.
- Confirm that untrusted media is processed only in isolated workers that restart on failure, by reviewing service-manager configuration.
- Re-run the version inventory against the vendor fixed release once it is identified; the pack does not provide that release.
- Review media-worker logs for crashes after mitigation, and confirm alerts trigger in a controlled test that uses a benign test file.
- Record evidence, owner, date and any exception. A single check does not establish that a system is secure.
Incident response
If a crash or memory-corruption symptom is observed in a media-processing service, and the input is untrusted, treat it as a possible security event pending analysis. Triage and scope: identify all hosts running the affected version and all jobs that set crthreshold. Containment: isolate or stop the affected worker pool and suspend untrusted conversions. Evidence preservation: retain the input file, process logs and any core dump, and do not overwrite or delete them. Log and endpoint investigation: examine process crash records, restarts and file access. Credential or secret rotation: only if evidence shows that the host process had access to secrets and compromise is suspected; the pack contains no such evidence. Eradication and patching: upgrade once a confirmed fix is available. Recovery and monitoring: restore services with isolation in place and monitor for recurrence. Notification and reporting obligations: depend on the organization and applicable law and are not established by the pack. Lessons learned: update the inventory and input-validation controls. Follow the organization's incident response plan.
Security hardening and prevention
Specific to this flaw: enforce a rule that encoder buffers are reallocated or re-validated whenever input dimensions change, and add regression tests with a mid-stream resolution change using benign test media. This is Analyst assessment based on the record's description, and the pack does not confirm FFmpeg's implementation.
Defence-in-depth (broader measures, labelled as such): run media conversion in sandboxed, least-privilege processes with restricted filesystem and network access; apply input validation for media containers before they reach encoders; keep an inventory of embedded multimedia libraries; use memory-safety-hardened build options where the build toolchain supports them; and include media-processing crash telemetry in logging and alerting. These are general hardening measures and are not drawn from the sources.
Risk assessment
Technical severity: the secondary CVSS 4.0 score is 7.3 HIGH and the CVSS 3.1 score is 7.0 HIGH, both with High impact metrics for confidentiality, integrity and availability [1]. These scores come from a secondary scorer and the record is Awaiting Analysis, so they may change.
Exposure and asset criticality: depends on whether FFmpeg is used to process untrusted media in the organization. Not established by the pack; the organization must determine this from its inventory.
Prerequisites and attacker opportunity: the vectors indicate local access, high complexity, no required privileges, and a specific configuration [1]. The record describes an attacker-supplied media stream, so the practical attack path for a remote user depends on whether untrusted input reaches the encoder.
Evidence of exploitation: not in KEV as of 2026-11-12 and not confirmed in the pack [2]. EPSS is low at 0.0014 with percentile 0.0363 [3].
Potential business impact: service disruption of media pipelines is the best-supported consequence [1]. Data exposure or code execution are not established.
Existing controls and residual risk: unknown, pending the organization's own inventory. Residual risk remains until a confirmed fix is deployed.
Recommended remediation priority (Analyst assessment, not a numerical score): high for organizations that run FFmpeg encoders on untrusted input with crthreshold set, because the record gives a plausible memory-corruption path and a secondary score of 7.3 HIGH [1]. Medium for organizations where FFmpeg is only used on trusted internal media, with inventory and monitoring. This rating assumes that the pack's CVSS and record information is accurate and that the organization's inputs are as described; it is not the CVSS score.
Conclusion
The core flaw is a heap buffer overflow in an FFmpeg libwebp encoder path, triggered by a mid-stream resolution increase when crthreshold is set, affecting FFmpeg through 9.0.2 [1]. Operators of FFmpeg-based media pipelines that accept untrusted input should act first: inventory affected builds, remove crthreshold from untrusted conversion paths, and isolate media workers. The permanent fix is not established by the pack; the vendor must confirm a fixed release, and the commit and pull request in the record must be verified against it [1]. Closure requires a confirmed fixed version, evidence of upgraded builds across the inventory, verified configuration changes, and continued monitoring. Exploitation status should be rechecked against KEV and vendor sources as the record is updated [2, 3].
Remediation checklist
- Inventory every host, container image and application that includes FFmpeg or libavcodec, and record the exact version from ffmpeg -version or the package manager, flagging any version through 9.0.2 [1].
- Search job definitions, scripts and service configuration for the crthreshold option and disable it for any pipeline that processes untrusted media, then verify with a read-only configuration search [1].
- Route untrusted media conversions to isolated worker processes with automatic restart, and confirm worker isolation in the service manager configuration (Recommended hardening, not a vendor measure).
- Remove public upload paths that pass files to the affected WebP encoder, and verify that web forms and APIs no longer reach the encoder [1].
- Configure alerting on crashes and restarts of media-processing workers, and verify the alert with a benign test file in a controlled environment.
- Track the FFmpeg release notes and the referenced commit and pull request, and confirm which release contains a verified fix before scheduling the upgrade [1].
- Test the upgraded FFmpeg build in staging, including a regression case with a benign mid-stream resolution change, before production deployment (Analyst assessment).
- After upgrading, re-run the version inventory on every host and container image, and record evidence, owner, date and exceptions.
- Recheck CISA KEV and EPSS for CVE-2026-125204 at each review cycle, because the record is Awaiting Analysis and its status may change [2, 3].
Evidence gaps
- Vendor-confirmed fixed version: the pack contains no FFmpeg advisory, release note or fixed release. Settle this by reviewing the FFmpeg release notes and confirming which version contains the change referenced in the record.
- Root cause: the record describes the symptom but not the code defect. Settle this by reviewing the commit and pull request listed in the record.
- Complete affected range and platform: only a CNA statement of through 9.0.2 exists, with no vendor range, distribution backports or platform detail. Settle this with the FFmpeg advisory and distribution security trackers.
- Scoring: both CVSS scores come from a secondary scorer while the record is Awaiting Analysis. Settle this when NIST analysis or the CNA publishes a score.
- Exploitation evidence: no confirmed in-the-wild exploitation, public proof of concept or threat actor reporting is in the pack. The VulnCheck advisory listed in the record is not in the pack. Settle this by reviewing that advisory and current threat intelligence.
- Indicators of compromise: none are provided. Settle this with vendor or threat intelligence guidance if published.
- Default configuration and reachable entry points: the record does not state the default crthreshold value or which FFmpeg commands and APIs reach the path. Settle this with FFmpeg documentation and a review of the code path in the fixed release.
- Exact impact: the record describes crashes; code execution or data disclosure are not established. Settle this with vendor analysis or a reproducible, authorized test in an isolated lab.
- Exact file name discrepancy: the record names libwebpenccommon.c while a reference path uses libwebpenc_common.c. Settle this by checking the source tree at the affected release.
References
- CVE-2026-125204 record. NIST National Vulnerability Database (NVD), 2026-11-10. https://nvd.nist.gov/vuln/detail/CVE-2026-125204. 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-125204. FIRST, 2026-11-10. https://api.first.org/data/v1/epss?cve=CVE-2026-125204. Accessed 2026-11-12.
Summary
FFmpeg through 9.0.2 contains a heap buffer overflow in ff_libwebp_get_frame() in libwebpenc_common.c that lets attackers corrupt memory when cr_threshold is set. Attackers can supply crafted media that increases resolution mid-stream, causing memcpy() to write pixel data past the stale reference frame and crash applications.
Severity breakdown
High · 7.3
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 confidentiality, integrity and availability
- Impact on other systems
- none
Weakness
- CWE-122: Heap-based Buffer Overflow
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-125204?
CVE-2026-125204 describes a heap-based buffer overflow (CWE-122) in FFmpeg through 9.0.2, in the libwebp encoder path that handles a frame-retrieval function, reached when the crthreshold setting is in use. Weakness type: Heap-based Buffer Overflow (CWE-122).
How severe is CVE-2026-125204?
CVE-2026-125204 has a CVSS 4.0 base score of 7.3 (high), 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-125204 being exploited?
Not as far as is known: CVE-2026-125204 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-125204?
FFmpeg ≤ 9.0.2.
How do I fix CVE-2026-125204?
Inventory every host, container image and application that includes FFmpeg or libavcodec, and record the exact version from ffmpeg -version or the package manager, flagging any version through 9.0.2. Search job definitions, scripts and service configuration for the crthreshold option and disable it for any pipeline that processes untrusted media, then verify with a read-only configuration search. Route untrusted media conversions to isolated worker processes with automatic restart, and confirm worker isolation in the service manager configuration (Recommended hardening, not a vendor measure).