Home › CVE › Vulnerabilities
CVE-2026-125266 — FFmpeg
One of 121 FFmpeg vulnerabilities published together by NVD.
VulnerabilitiesResearch article
FFmpeg Uninitialized Stack Memory Disclosure in oldcodec23() via Crafted SANM Codec 23 Input (CVE-2026-125266)
| CVE | CVE-2026-125266 |
|---|---|
| Vendor and product | FFmpeg |
| Published | November 12, 2026 07:20 UTC |
| Research cut-off | November 12, 2026 07:12 UTC |
| Updated | November 25, 2026 15:21 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-11-10); CISA KEV catalog; FIRST EPSS (2026-11-10) |
Update — November 25, 2026
- NVD finished its analysis of this CVE. (NVD record)
- Fixes are now listed: code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25718, github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/sanm.c.
Executive summary
CVE-2026-125266 is a memory disclosure flaw in FFmpeg's oldcodec23() routine in libavcodec/sanm.c, where a stack-held resource is used without being initialized, so leftover process stack bytes can appear in decoded output [1]. The NVD record scores it CVSS 4.0 4.8 MEDIUM with vector CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/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 (secondary score by VulnCheck), and CVSS 3.1 3.3 LOW with vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N (scored by VulnCheck and labelled primary in the record) [1]. The CVE record states that FFmpeg versions from 8.0 through 9.0.2 are affected, and the description says the issue exists through 9.0.2 [1]. Exploitation requires a crafted LucasArts SMUSH/SANM file using codec 23 to be decoded locally, and the record does not establish how such a file would reach a target [1]. The record is still Awaiting Analysis, CISA's Known Exploited Vulnerabilities catalog does not list the CVE as of 2026-11-12, and the FIRST EPSS estimate is 0.0013 with percentile 0.0252, so there is no confirmed in-the-wild exploitation in the reviewed sources [1, 2, 3]. The most important immediate action is to inventory FFmpeg builds in the 8.0 to 9.0.2 range and stop decoding untrusted SANM/SMUSH input in those builds until a vendor-confirmed fix is verified [1].
Key points
- CVE-2026-125266 is a CWE-908 uninitialized memory disclosure in FFmpeg's oldcodec23() in libavcodec/sanm.c, which can place stack bytes into decoded output from a crafted codec 23 SANM/SMUSH file [1].
- The NVD record gives CVSS 4.0 4.8 MEDIUM (secondary) and CVSS 3.1 3.3 LOW (primary), both scored by VulnCheck, with the full vectors listed in the article [1].
- The CVE record gives the affected range as 8.0 through 9.0.2 and does not publish a fixed version or vendor advisory in the reviewed sources [1].
- CISA KEV does not list the CVE as of 2026-11-12, and the EPSS probability is 0.0013 with percentile 0.0252; neither is evidence that exploitation has or has not occurred [2, 3].
- The most urgent immediate action is to inventory FFmpeg builds in the affected range and stop decoding untrusted SANM/SMUSH input until a verified fix is installed [1].
Vulnerability identification
| Field | Value | Source |
|---|---|---|
| CVE ID | CVE-2026-125266 | S1 |
| Vendor / project | FFmpeg (named by the CVE Numbering Authority record) | S1 |
| Product / component | libavcodec, function oldcodec23() in libavcodec/sanm.c | S1 |
| Affected platform | Not established by the reviewed sources; no operating system or build type is listed | S1 |
| Published | 2026-11-09T20:18:13 | S1 |
| Last modified | 2026-11-10T21:46:26 | S1 |
| Record status | Awaiting Analysis | S1 |
| CWE classification | CWE-908 (Use of Uninitialized Resource) | S1 |
| CVSS 4.0 | 4.8 MEDIUM; CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/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) | S1 |
| CVSS 3.1 | 3.3 LOW; CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N; scored by disclosure@vulncheck.com (Primary) | S1 |
| Related references | Commit d42cb1925987cc27899441ce39fa7bd2647dc72e; pull request 25718 on code.ffmpeg.org; source line 799 of sanm.c at tag n9.0.2; a VulnCheck advisory. The record lists these with no NVD tags and does not say that any of them is a fix. | S1 |
| Vendor advisory or patch identifier | Not established by the reviewed sources | S1 |
The two CVSS scores come from different versions of the framework and differ mainly in how the user interaction metric is defined. The CVSS 4.0 vector marks all threat, environmental and supplemental metrics as not defined (X), so the score reflects only the base metrics [1]. Both scores are supplied by a third-party scorer rather than a vendor [1].
Technical background
FFmpeg is an open-source multimedia framework. Its libavcodec library contains decoders that convert compressed audio and video bitstreams into raw frames, and those frames are then passed to other components or written to files [1]. The record places the flaw in a decoder path in libavcodec/sanm.c. The file name and function name indicate that this code handles the SANM and SMUSH animation formats associated with LucasArts titles, and that a codec identified as 23 is routed to a legacy function named oldcodec23() [1]. Codec 23 is the only codec identifier named in the record, and the record does not describe its internal structure.
Terms used in this article:
- Uninitialized resource: a variable, buffer or memory location that is read before any defined value has been written to it. Its contents are whatever was left by earlier use of that memory [1].
- Stack: the region of memory a program uses for function-local variables and temporary buffers during a call. Stack contents are overwritten by later calls, so leftover data may come from earlier, unrelated work in the same process [Analyst assessment].
- Memory disclosure: a condition in which data that the program holds in memory is returned to a party that should not see it [1].
Trust boundary: an untrusted input file crosses into the trusted FFmpeg process at the point where the file is demuxed and its frames are passed to the decoder. The record indicates that the attacker controls the input file, so the decoder must treat all of its content as untrusted [1].
Vulnerability description
The record describes an uninitialized stack memory disclosure in oldcodec23() of libavcodec/sanm.c. Stack bytes that the code did not write are carried into decoded frames, and the record says this can expose process stack memory in the output video [1].
Security property violated: confidentiality of process memory. The record does not describe any integrity or availability effect [1].
What an attacker can cause or access: according to the record, a crafted SMUSH/SANM animation that uses codec 23 and includes a table supplied inside the file can cause data from the decoder's stack to appear in the decoded output [1]. The record does not state what kinds of data are present on that stack at the time, whether the leaked bytes can be selected or controlled by the attacker, or whether they could reveal memory addresses or secrets. These points are Unknown.
Conditions for the flaw to matter: the vulnerable code must be present (see the affected versions section), the input must reach the codec 23 path, and the decoded output must be made available to the attacker or to a party the attacker can observe. The record does not describe how output is shared in typical deployments [1].
What the vulnerability does not establish, based on the evidence: the record does not describe code execution, memory corruption that changes control flow, privilege escalation, or remote access. Its CVSS 4.0 and 3.1 vectors both record no integrity impact and no availability impact [1].
Root cause analysis
Confirmed: the record classifies the weakness as CWE-908 and places it in oldcodec23() in libavcodec/sanm.c [1].
Not disclosed by the reviewed sources: which variable, buffer or table is uninitialized, which code path skips the write, and what change in the referenced commit fixes it. The NVD record does not explain the root cause, and the reviewed sources contain no vendor analysis [1].
Analyst assessment: a buffer on the stack in the codec 23 path is used to produce output or is read back into frame data, but only part of it is written on some paths, for example when the input supplies a table that does not fill the whole buffer. The unwritten portion then carries earlier stack contents into the frame. This is a hypothesis consistent with CWE-908 and the description, not a confirmed explanation.
Why existing controls may fail: the decoder relies on the input to describe the sizes and contents of its tables. Input validation that checks format fields may not check whether every output byte is produced, and memory-safety tooling that detects reads of uninitialized memory is not always run on legacy decoder paths. These are general explanations, labelled Analyst assessment, and the reviewed sources do not confirm them for this flaw.
Technical mechanics
The following flow is Illustrative. It is built from the record's description and CWE classification, and the specific steps inside oldcodec23() are Unknown.
- An application using FFmpeg opens a media file, and the demuxer identifies it as a LucasArts SMUSH/SANM animation [1].
- The file's frame data selects codec 23, which is routed to oldcodec23() in libavcodec/sanm.c [1].
- The function reads an inline table from the file. The record indicates that this table is attacker-supplied [1].
- The function sets up a stack-allocated working area for decoding. The area is not fully written before some of its contents are used [S1, Analyst assessment].
- The unwritten bytes keep whatever values were already on the stack, which can include data from earlier calls in the same process [Analyst assessment].
- The decoder writes these bytes into the decoded frame, so the output contains process memory [1].
- The output frame is delivered to the caller, written to a file or displayed. Anyone who can read that output can see the leaked bytes [S1, Analyst assessment].
The security control that should prevent this is complete initialization of every byte the decoder emits, or an explicit bound that prevents uninitialized bytes from entering output. The reviewed sources do not state which control is missing.
Attack surface and exploitation prerequisites
| Prerequisite | Assessment | Basis |
|---|---|---|
| Network access | Not required by the vector; the attack vector is Local | S1 (CVSS vectors) |
| Adjacent-network access | Not applicable per the vector | S1 |
| Local access | Required per the vector; the attacker must be able to get the crafted file into a process that decodes it | S1 |
| Physical access | Not established | S1 |
| Authentication | None required per the vector (PR:N) | S1 |
| Privileges | None required per the vector | S1 |
| User interaction | CVSS 4.0 records passive user interaction (UI:P); CVSS 3.1 records required user interaction (UI:R). The two scores therefore differ on this prerequisite. | S1 |
| Required configuration | Decoding of SANM/SMUSH input with codec 23 must be possible in the deployed build. The record does not describe any non-default setting. | S1 |
| Attacker position | Must supply the input file. Delivery route (email, upload, shared repository, batch job) is not established by the reviewed sources. | S1 |
| Environmental dependencies | Whether the leaked bytes contain sensitive data depends on the process state, which is not described | S1, Unknown |
The vector values are derived from the scoring and do not confirm that the attack succeeds in practice. No source reviewed here demonstrates a working attack.
Exploitation scenarios and attack lifecycle
No chain of exploitation is confirmed by the reviewed sources. The following scenarios are Illustrative and are based on the prerequisites in the previous section.
Scenario A (Illustrative): a media processing service accepts user-submitted animation files and decodes them with an affected FFmpeg build to create preview videos. A user who submits a crafted codec 23 file can then download the preview and inspect the frames for leaked stack bytes. Starting position: an ordinary submitter. Required interaction: the service must decode the file. Potential outcome: disclosure of process memory fragments in preview output. Defensive opportunities: isolate the decoder in an unprivileged sandbox, restrict which file types the service decodes, and review decoded outputs from untrusted sources.
Scenario B (Illustrative): an analyst or researcher opens an untrusted SANM file in a desktop tool built on an affected FFmpeg library, and exports a video that is later shared. Starting position: a victim who opens a file from an unknown source. Potential outcome: leaked memory bytes appear in a shared export. Defensive opportunities: open untrusted media only in an isolated environment and inspect exported files before sharing them.
The record does not describe which of these scenarios, if any, occurs in practice. Post-exploitation use of leaked bytes is not established by the reviewed sources.
Impact analysis
| Area | Technically demonstrated by the record | Plausible downstream consequence (not demonstrated) |
|---|---|---|
| Confidentiality | Yes: uninitialized process stack bytes can appear in decoded output [1] | Exposure of data that happened to be in the decoder's memory; content and sensitivity are Unknown |
| Integrity | Not recorded as affected by either CVSS vector [1] | None established |
| Availability | Not recorded as affected by either CVSS vector [1] | None established |
| Authentication and authorization | Not described in the record | None established |
| Privilege boundaries | Not described; the record does not claim code execution or privilege change [1] | None established |
| Data and privacy | The record does not state which data types could appear | If personal or secret data sat in the process memory, a privacy or secrets exposure could follow; this is Unknown |
| Business operations | Not described | Depends on whether FFmpeg decodes untrusted content in the organization's workflows |
| Regulatory or contractual obligations | Not established by the reviewed sources | Depends on the data processed and the organization's obligations |
Affected products and versions
| Vendor | Product / component | Affected versions | Platform | Fixed version | Source and qualification |
|---|---|---|---|---|---|
| FFmpeg | libavcodec, oldcodec23() in libavcodec/sanm.c | 8.0 or later, through 9.0.2, per the CVE Numbering Authority record | Not established | Not established by the reviewed sources | S1: the record gives this range; the description says through 9.0.2 and does not mention a lower bound. The lower bound of 8.0 comes only from the record's version field. |
The record includes the version tag n9.0.2 in a source line reference, which indicates that the code was examined at that tag [1]. The reviewed sources do not give a complete list of distribution packages or builds, do not state whether versions before 8.0 contain the flaw, and do not state whether any version after 9.0.2 contains a fix. These are Unknown. Distributions may backport fixes into packages with different version numbers, which means the upstream version range alone may not identify exposure in a packaged build [Analyst assessment].
Configuration-specific exposure: the record does not describe any configuration that enables or disables the codec 23 path [1]. Known exclusions: none are stated.
Exploitation and threat intelligence status
| Item | Status | Source and date |
|---|---|---|
| Confirmed exploitation in the wild | Not established by the reviewed sources | S1, S2 |
| CISA KEV listing | Not listed as of 2026-11-12. This does not show that the CVE has not been exploited. | S2 |
| Public proof of concept | Not established by the reviewed sources; the record lists a VulnCheck advisory and FFmpeg code references, but the pack does not describe a public exploit | S1 |
| Threat actors, campaigns or sectors | Not established by the reviewed sources | S1, S2, S3 |
| EPSS | 0.0013 (0.13%) probability of exploitation activity in the next 30 days, percentile 0.0252, estimated 2026-11-10. EPSS is a statistical estimate and not evidence of exploitation. | S3 |
Confirmed exploitation: none reported in the reviewed sources. Credible reporting: none. Public proof of concept: not established. Theoretical exploitability: supported by the CVSS vectors, which describe a local, unauthenticated attack [1]. The absence of public evidence is not proof that exploitation has not occurred.
Indicators of compromise
No indicators of compromise are given by the reviewed sources. No file hashes, file names, domains, IP addresses, process names, command lines or log events are established for this CVE. Indicators in this area would need to be obtained from a vendor or independent analysis before use, and they go stale quickly and must be validated before any blocking decision.
Detection and exposure assessment
Asset inventory: identify every host, container image, virtual machine image and application bundle that includes FFmpeg libraries (in particular libavcodec), including copies bundled inside third-party software. Record the version of each. Flag any upstream version from 8.0 through 9.0.2 for review, and treat distribution packages as requiring a changelog check because backports may exist [S1, Analyst assessment].
Version check (standard product tooling; read-only): on a system where the ffmpeg command-line tool is installed, run ffmpeg -version from a shell. Prerequisite: the ffmpeg binary on the search path. Expected output: a banner beginning with the ffmpeg name and a version string. Limitation: this shows the version of the tool, not necessarily the version of a library bundled in another application, and a version match does not prove exploitability. Repeat with the package manager's query for libavcodec on Linux distributions, and record the package revision as well as the upstream version.
Configuration and feature checks: determine whether any service, workflow or user-facing tool decodes SANM or SMUSH files. The reviewed sources do not provide a configuration flag specific to codec 23, so the check is whether the input type can reach the decoder at all.
Authenticated vulnerability scanning: no scanner plugin is named in the reviewed sources. Confirm with the scanner vendor whether a check exists for this CVE and treat a negative result as incomplete unless the scanner has been verified against a known-affected build.
Log and telemetry review: the reviewed sources do not identify any log source or event that records this flaw being triggered. Review job logs of media conversion services for SANM or SMUSH inputs and the processing of codec 23 streams, if the service logs the codec identifier.
Immediate mitigation
The reviewed sources do not provide vendor mitigation guidance. The following measures follow from the documented description and the component's behaviour [Analyst assessment].
- Stop decoding untrusted SANM/SMUSH input in affected builds. Protects against: the described trigger. Limitation: FFmpeg's codec selection cannot be narrowed to codec 23 by the reviewed sources, so the practical control is at the input-type level. Side effects: legitimate SANM/SMUSH files will not be converted. Verification: send a known-harmless sample of an accepted type to confirm the pipeline still works, and confirm that the SANM/SMUSH input type is rejected at the intake point.
- Run the decoder in an isolated, unprivileged process or container with no access to secrets, credentials or sensitive files. Protects against: loss of sensitive data from the process memory being read through the output. Limitation: does not stop the leak itself. Side effects: performance overhead and possible configuration work. Verification: confirm the process user, mounts and environment variables inside the decoder's container or sandbox.
- Restrict who can obtain decoded output from untrusted inputs. Protects against: an external party reading leaked bytes. Limitation: does not prevent the leak. Verification: review access controls on output storage and download links.
- Increase monitoring of media conversion jobs that handle untrusted animation files, and retain their inputs and outputs for review. Protects against: undetected exploitation attempts. Limitation: the reviewed sources do not define a signature. Verification: confirm the log retention settings and that the job metadata records the input format.
Permanent remediation
Vendor-confirmed fix: none is established by the reviewed sources. The record is Awaiting Analysis, and the pack contains no FFmpeg release note or advisory describing a fix [1].
Recommended action once a fix is announced: upgrade FFmpeg to the release the FFmpeg project names as containing the fix, or to the distribution package that the distribution has marked as fixed. Do not assume that a version above 9.0.2 is fixed until the release notes or the referenced commit confirm it.
The record lists a commit and a pull request. Their content is not described in the pack, and the record does not say that either resolves the issue [1]. Review the commit's change to libavcodec/sanm.c to see whether initialization of the affected buffer was added (Analyst assessment).
Prerequisites and dependencies: not established by the reviewed sources. Backup, maintenance-window and rollback considerations are standard for any library upgrade and should follow the organization's change process. Restart or reload requirements are not documented in the reviewed sources; restart any service that loads the FFmpeg library after an upgrade so that the new code is in use.
Workarounds and compensating controls
No vendor workaround is given by the reviewed sources. The mitigations in the earlier section reduce exposure but do not correct the uninitialized memory use. Input-type rejection leaves the code in place for any path that still accepts the format. Process isolation limits what is in memory to be leaked but does not stop the leak. These controls carry residual risk until the library is patched, and they are not equivalent to a permanent fix.
Validation and verification
- Confirm the installed version or build of every FFmpeg library found in the inventory, including the package revision, using the commands in the detection section.
- Confirm the configuration: verify that the SANM/SMUSH input type is rejected at intake, or that the decoder runs in the intended isolated environment.
- Confirm that the vulnerable component is addressed: once a fixed build is installed, check the vendor release note or distribution changelog that references this CVE, and where the source is available, inspect the initialization in oldcodec23() at the fixed tag.
- Re-run an appropriate scanner check, where one exists, and treat a single result as incomplete.
- Review service logs and job health after the change to confirm that media conversions still complete as expected.
- Confirm that compensating controls remain in place for any system that cannot be upgraded.
- Record the evidence, owner, date and any exceptions in the vulnerability register. Do not record a system as secure based on a single check.
Incident response
If exploitation is suspected, for example because leaked output contains data that should not have been present, treat the event as a potential data exposure.
- Triage and scope: identify the decoder processes that handled untrusted SANM/SMUSH input, the time window, and the recipients of the output.
- Containment: stop the affected conversion path, and restrict access to the outputs in question without deleting them.
- Evidence preservation: retain the input files, decoded outputs, job logs and the FFmpeg binaries and version records. Do not overwrite or delete them.
- Log and endpoint investigation: review job and access logs for the relevant period. The reviewed sources do not provide indicators, so the investigation must be driven by the organization's own telemetry.
- Credential or secret rotation: rotate any credential or secret that was present in the decoder's process memory or the output if the evidence shows that it may have been exposed. The decision depends on what the output contains, which the reviewed sources do not establish.
- Eradication and patching: upgrade to a verified fixed build when available, and remove untrusted input paths that are not required.
- Recovery and monitoring: restore normal processing only after validation, and keep enhanced monitoring for a defined period.
- Notification and reporting: follow the organization's legal and contractual obligations. The reviewed sources do not establish any such obligation for this CVE.
- Lessons learned: record how the untrusted input reached the decoder and which controls failed.
Security hardening and prevention
The following measures are relevant to this flaw and are specific to the decoder pattern it describes.
- Secure development (Analyst assessment): require that every output buffer is fully written before it is used, and add tests that check the bytes emitted for truncated or partial tables in codec paths.
- Input validation: where the decoder accepts table or size fields from the input, validate that declared sizes match the data actually provided, and reject inputs that leave output bytes unwritten.
- Memory-safety testing: run decoders on untrusted-input corpora under a tool that detects reads of uninitialized memory, and include legacy decoder paths such as oldcodec23().
- Least privilege and isolation: run media decoders in an unprivileged sandbox with no access to secrets.
- Attack-surface reduction: disable decoding of formats that the organization does not need.
- Patch and vulnerability management: track FFmpeg releases and distribution advisories, and record the fixed version used in each asset.
- Logging and monitoring: log the input format and codec identifier for each conversion job.
- Defence in depth (broader measure): treat decoded output from untrusted sources as untrusted until it is reviewed.
Risk assessment
Technical severity: the record rates the flaw Medium under CVSS 4.0 and Low under CVSS 3.1, and records only a confidentiality effect [1]. These are the scorer's values and do not describe any particular organization's exposure.
Exposure and asset criticality: determined by whether FFmpeg decodes untrusted SANM/SMUSH input in the organization's environment. This is not established by the reviewed sources and must be determined locally.
Exploit prerequisites and attacker opportunity: the vectors describe a local attack that needs no privileges, with user interaction that the two scores describe differently [1]. The delivery route is not established.
Evidence of exploitation: none confirmed. The CVE is not in CISA's catalog as of 2026-11-12, and the EPSS estimate is low [2, 3].
Potential business impact: depends on the sensitivity of data present in decoder memory and on whether decoded output leaves a trusted boundary. The reviewed sources do not establish either point.
Existing controls and residual risk: unknown until the organization completes the inventory and the input-path review.
Recommended remediation priority (Analyst assessment, not the CVSS score): high priority for any system that decodes untrusted SANM/SMUSH input with an affected FFmpeg build, because the mitigations are cheap and the fix status is unknown; medium priority for affected builds that process only trusted media; low priority where no affected build exists. Assumptions: the organization can identify its FFmpeg builds, and the untrusted input path is the main exposure.
Conclusion
CVE-2026-125266 is a CWE-908 flaw in FFmpeg's oldcodec23() routine in libavcodec/sanm.c, in which stack memory that was not written can appear in decoded output from a crafted codec 23 SANM/SMUSH file [1]. The record gives the affected range as 8.0 through 9.0.2 and does not publish a fix [1]. Teams that operate FFmpeg should act first: inventory affected builds, restrict or isolate untrusted SANM/SMUSH decoding, and monitor for a vendor-confirmed fix. The permanent fix is the upgrade the FFmpeg project or the distribution confirms as containing the change to oldcodec23(). Closing the issue requires the record to be updated with fix information, verified installed versions in the inventory, validation evidence on each upgraded system, and documented exceptions for any system that cannot be upgraded [1, 2, 3].
Evidence gaps
See the evidence_gaps field for the full list of unresolved items.
Remediation checklist
- Inventory every host, container image and application bundle that includes FFmpeg libraries, and record the upstream version and package revision of each; flag any upstream version from 8.0 through 9.0.2 for review [1].
- Run ffmpeg -version on hosts where the ffmpeg tool is installed, and query the package manager for libavcodec on Linux systems, to confirm versions; a version match does not prove exploitability [1].
- Identify every service, workflow or user-facing tool that decodes SANM or SMUSH input, and confirm which of them reach the codec 23 path [1].
- Reject SANM/SMUSH input at the intake point for affected builds that process untrusted files, then confirm by sending a harmless accepted sample and verifying that the SANM/SMUSH type is refused [1].
- Run the decoder in an unprivileged, isolated process or container with no access to secrets or sensitive files, and verify the user, mounts and environment inside that environment [1].
- Restrict access to decoded outputs from untrusted inputs, and retain input and output files for review without deleting them [1].
- Track the FFmpeg project and distribution advisories for a fix to oldcodec23(), and record the fixed version only after it is confirmed by a source [1].
- Review the referenced commit d42cb1925987cc27899441ce39fa7bd2647dc72e and pull request 25718 to see whether they initialize the affected buffer before upgrading [S1, Analyst assessment].
- Upgrade affected FFmpeg builds to a vendor- or distribution-confirmed fixed release, restart services that load the library, and check the installed version again afterwards [1].
- Re-check the NVD record, since it is Awaiting Analysis, and update the register when the affected range, CVSS or fix information changes [1].
- Document an exception, owner and compensating control for any system that cannot be upgraded, and review it on a fixed schedule [1].
Evidence gaps
- Root cause: the record does not identify the uninitialized variable or buffer or the path that skips its initialization. Settling this requires the FFmpeg commit contents or a vendor technical analysis [1].
- Fixed version: no fixed release or vendor advisory is in the pack. Settling this requires a FFmpeg release note or distribution advisory that names the fix [1].
- Complete affected range: the record gives 8.0 through 9.0.2 but the description says only through 9.0.2, and versions before 8.0 and after 9.0.2 are not addressed. Settling this requires the vendor's version analysis [1].
- Distribution and backport status: no packaged build or backport information is given. Settling this requires distribution security trackers for each platform in use [1].
- Data exposed: the record does not state what data can appear in the leaked bytes or whether the attacker can influence them. Settling this requires a vendor or independent technical analysis [1].
- Delivery route and exploitation evidence: no source describes how a crafted file would reach a target, and none confirms exploitation or a public proof of concept. Settling this requires threat intelligence or vendor reporting [1, 2, 3].
- Indicators of compromise: none are given. Settling this requires indicators from vendor or incident-response reporting, validated before use [1, 2].
- Vendor advisory and patch identifiers: none are published in the pack. The record lists a commit and a pull request without stating their role. Settling this requires the vendor advisory [1].
- User interaction: the CVSS 4.0 and 3.1 scores differ on whether user interaction is passive or required. Settling this requires the scorer's rationale or the vendor's analysis [1].
- Scoring status: the record is Awaiting Analysis, and NVD's own analysis of the CVSS scores and CWE mapping is not yet in the record [1].
References
- CVE-2026-125266 record. NIST National Vulnerability Database (NVD), 2026-11-10. https://nvd.nist.gov/vuln/detail/CVE-2026-125266. 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-125266. FIRST, 2026-11-10. https://api.first.org/data/v1/epss?cve=CVE-2026-125266. Accessed 2026-11-12.
Summary
FFmpeg through 9.0.2 contains an uninitialized stack memory disclosure vulnerability in old_codec23() of libavcodec/sanm.c that leaks stack bytes into decoded frames. Attackers can supply a crafted LucasArts SMUSH/SANM animation using codec 23 with an inline table to expose decoder process stack memory in output video.
Severity breakdown
Medium · 4.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
- low on confidentiality, none on integrity and availability
- Impact on other systems
- none
Weakness
- CWE-908: Use of Uninitialized Resource
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| FFmpeg | ≥ 8.0, ≤ 9.0.2 | — |
References by type
Patches and fixed releases
- code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25718
- github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/sanm.c
- github.com/FFmpeg/FFmpeg/commit/d42cb1925987cc27899441ce39fa7bd2647dc72e
Other references
Affected
- FFmpeg
Frequently asked questions
What is CVE-2026-125266?
CVE-2026-125266 is a memory disclosure flaw in FFmpeg's oldcodec23() routine in libavcodec/sanm.c, where a stack-held resource is used without being initialized, so leftover process stack bytes can appear in decoded output. Weakness type: Use of Uninitialized Resource (CWE-908).
How severe is CVE-2026-125266?
CVE-2026-125266 has a CVSS 4.0 base score of 4.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-125266 being exploited?
Not as far as is known: CVE-2026-125266 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-125266?
FFmpeg ≥ 8.0, ≤ 9.0.2.
How do I fix CVE-2026-125266?
Inventory every host, container image and application bundle that includes FFmpeg libraries, and record the upstream version and package revision of each; flag any upstream version from 8.0 through 9.0.2 for review. Run ffmpeg -version on hosts where the ffmpeg tool is installed, and query the package manager for libavcodec on Linux systems, to confirm versions; a version match does not prove exploitability. Identify every service, workflow or user-facing tool that decodes SANM or SMUSH input, and confirm which of them reach the codec 23 path.