Home › CVE › Vulnerabilities
CVE-2026-125182 — FFmpeg
One of 121 FFmpeg vulnerabilities published together by NVD.
VulnerabilitiesResearch article
FFmpeg Cook decoder out-of-bounds read via unchecked jssubbandstart in cookdecodeinit (CVE-2026-125182)
| CVE | CVE-2026-125182 |
|---|---|
| Vendor and product | FFmpeg |
| Published | November 12, 2026 07:12 UTC |
| Research cut-off | November 12, 2026 05:56 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/24763, github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/cook.c.
Executive summary
CVE-2026-125182 is a CWE-125 out-of-bounds read in FFmpeg's Cook decoder, where cookdecodeinit() does not check jssubbandstart against subbands, so jointdecode() can read past decodebuffer0 [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, 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, which differ in severity and must both be considered [1]. The record states that FFmpeg through 9.0.2 is affected, and that a crafted RealMedia file could leak memory contents into decoded audio, which it says could help defeat ASLR; this attack outcome is stated in the record and is not demonstrated in the reviewed sources [1]. No fixed version is published in the reviewed sources, and the NVD record is still Awaiting Analysis [1]. The CVE is not listed in the CISA KEV catalog as of 2026-11-12, which does not show that it has not been exploited [2], and the FIRST EPSS estimate is 0.0013 (percentile 0.0252) [3]. The most important immediate action is to inventory FFmpeg builds at or below 9.0.2 that decode untrusted RealMedia input and to restrict that input path until a vendor-confirmed fixed build is verified.
Key points
- CVE-2026-125182 is a CWE-125 out-of-bounds read in FFmpeg's Cook decoder: cookdecodeinit() does not check jssubbandstart against subbands [1].
- Scored CVSS 4.0 4.8 MEDIUM (AV:L, UI:P) and CVSS 3.1 3.3 LOW (AV:L, UI:R); the two scores differ and neither describes organizational risk [1].
- The record lists FFmpeg through 9.0.2 as affected; no fixed version or vendor advisory is in the pack, and the NVD record is Awaiting Analysis [1].
- Not in CISA KEV as of 2026-11-12, which is not proof of no exploitation [2]; EPSS 0.0013 with percentile 0.0252 [3].
- The record states a crafted RealMedia file could leak memory into decoded audio and could help defeat ASLR; this is not demonstrated in the reviewed sources [1].
- Immediate actions: inventory FFmpeg builds at or below 9.0.2, restrict untrusted RealMedia input, and isolate decoding until a verified fix is deployed [S1, analyst assessment].
Vulnerability identification
| Field | Value | Source |
|---|---|---|
| CVE ID | CVE-2026-125182 | [1] |
| Vendor (CVE Numbering Authority) | FFmpeg | [1] |
| Product and component | FFmpeg, Cook audio decoder in libavcodec (the record's reference points to libavcodec/cook.c) | [1] |
| Affected platform | Not established by the reviewed sources; the record names no operating system or deployment type | [1] |
| Published | 2026-11-09T19:16:53 | [1] |
| Last modified | 2026-11-10T21:46:30 | [1] |
| Record status | Awaiting Analysis (NVD analysis not yet complete at the research cut-off) | [1] |
| CWE | CWE-125 (Out-of-bounds Read) | [1] |
| 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; scorer identified in the record as VulnCheck (Secondary) | [1] |
| 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; scorer identified in the record as VulnCheck (Primary) | [1] |
| CISA KEV status | Not listed as of 2026-11-12 | [2] |
| EPSS | 0.0013 (0.13%) probability of exploitation activity in 30 days; percentile 0.0252; dated 2026-11-10 | [3] |
| Related references | FFmpeg pull request 24763; commit 7145d13201c9f9c5253f40295714faa4f4ada1a0; a VulnCheck advisory for this issue; the record lists these with no NVD tags, and their content is not included in the pack | [1] |
The two CVSS versions give different severities (Medium under 4.0, Low under 3.1). The record does not explain the difference beyond the metrics themselves, and NVD has not yet published its own analysis [1]. The CWE classification is CWE-125, which describes software that reads memory outside the boundaries of the intended buffer or object.
Technical background
The Cook decoder is FFmpeg's decoder for the Cook audio format, which the record associates with RealMedia files [1]. FFmpeg's libavcodec library performs the decoding, and an application (for example a player, transcoder or conversion service) hands it compressed packets that were extracted from a container by a demuxer [1]. Terms used in this article:
- Decoder: code that converts compressed audio data into raw samples.
- Container: the file format wrapping the compressed audio, here RealMedia [1].
- Extradata: codec-specific configuration bytes carried in the container header and passed to the decoder before decoding begins [1].
- Subband: a frequency partition of the audio signal used by the codec. The record refers to a subband count (subbands) and a joint-stereo subband start index (jssubbandstart) [1]. The relationship between the two is analyst interpretation based on the field names.
- Decode buffer: memory allocated by the decoder to hold intermediate values during decoding; the record names decodebuffer0 as the buffer that reads can extend past [1].
- Out-of-bounds read: a read from memory outside the bounds of the object the code intended to access.
- ASLR (Address Space Layout Randomization): a memory protection that randomizes where code and data are placed, making fixed addresses harder to predict.
Trust boundary: the RealMedia file and its header fields are untrusted input once they come from outside the organization or from an unauthenticated user. The decoder parses those header values in the same process that handles them, so a value it fails to validate can influence memory accesses in that process [1]. Normal operation expects jssubbandstart to lie within the range defined by subbands; the record states that this expectation is not enforced at initialization [1].
Vulnerability description
The violated property is memory safety: the decoder reads memory it should not access, which affects confidentiality of process memory [1]. The flawed functions are cookdecodeinit(), which initializes decoding from header data, and jointdecode(), which uses the stored index during decoding [1].
An attacker who can supply a crafted RealMedia file can cause reads past decodebuffer0, and the record states that the values read can be placed into decoded audio output, leaking pointers and decoder state [1]. The record says this could help defeat ASLR. The reviewed sources do not demonstrate the leak, its reliability, or any follow-on use.
Conditions that make the flaw matter: an affected FFmpeg build (through 9.0.2) must decode a crafted Cook-coded RealMedia file [1]. The reviewed sources do not establish whether default builds include the Cook decoder, or whether specific applications route untrusted files to it.
What the vulnerability does not establish, based on the evidence: the sources describe a read and an information leak. They do not describe a write, a crash primitive, code execution, or a privilege change. Both vectors score integrity and availability impact as none [1]. Confidentiality impact is scored Low [1].
Root cause analysis
Confirmed: the record states that cookdecodeinit() does not check jssubbandstart against subbands [1].
Analyst assessment: the flaw is a missing range validation at the boundary between header parsing and later per-frame decoding. An index derived from file data is trusted when it is later used to address the decode buffer, so a value beyond the expected range produces a read outside the buffer. Existing controls may not catch it because a read can land in mapped memory without a crash, and because normal test files will not contain out-of-range values unless the test corpus specifically includes malformed Cook headers.
Not established by the reviewed sources: the exact check added by the referenced commit and pull request, the buffer sizing logic, and whether other Cook code paths share the same weakness. Settling this requires reviewing the commit and pull request content and the affected source at the referenced tag.
Technical mechanics
- An application opens a RealMedia file and passes it to FFmpeg's demuxer [1].
- The demuxer supplies the Cook extradata from the header to the decoder [1].
- cookdecodeinit() reads the parameters, including jssubbandstart, and does not compare jssubbandstart with subbands [1]. This is the validation failure.
- The decoder allocates working buffers. Buffer sizing is not described in the reviewed sources (Not established).
- For each audio frame, jointdecode() uses the stored index to address the decode buffer. When the index exceeds the expected range, the access falls past decodebuffer0 [1].
- Decoded samples are written to the output. The record states that bytes read beyond the buffer can appear in that output [1].
- The control that should have prevented this is a bounds check on jssubbandstart during initialization, before any frame is decoded [S1, analyst assessment for the placement of the control].
Illustrative flow (not a reproduction of the vulnerable code):
[crafted RealMedia file]
|
v
[demuxer] --extradata--> cookdecodeinit()
| jssubbandstart stored, NOT checked against subbands
v
jointdecode() per frame
| index used to address decodebuffer0
v
read beyond decodebuffer0 (out-of-bounds read)
|
v
read bytes may appear in decoded audio output
Preconditions and environment: an affected FFmpeg version and a process that decodes Cook audio. Memory layout and what is adjacent to the buffer depend on the build and runtime, which the sources do not describe.
Attack surface and exploitation prerequisites
| Prerequisite | Assessment | Source |
|---|---|---|
| Network access | Not stated in the record; the vectors indicate a local attack vector (AV:L) | [1] |
| Adjacent network | Not indicated by either vector | [1] |
| Local access | Indicated by AV:L in both vectors; the attack is delivered through file input, so a local or file-delivery path is required | [1] |
| Physical access | Not established | Not established by the reviewed sources |
| Authentication | None required (PR:N in both vectors) | [1] |
| Privilege level | No privileges required per the vectors | [1] |
| User interaction | CVSS 4.0 UI:P (passive); CVSS 3.1 UI:R (required). The two scorings disagree on how much user action is needed | [1] |
| Required configuration | The Cook decoder must be present and used. Whether it is enabled in default builds is not established | Not established by the reviewed sources |
| Attacker position | Ability to supply a crafted RealMedia file to a decoding process. Delivery channels (email, upload, streaming) are not described | [1] |
| Dependencies and limits | Requires an affected version (through 9.0.2). Exploit reliability and the usefulness of leaked data are not established | [1] |
The vector values are a scorer's judgment and are not proof that the attack is practical. The reviewed sources contain no exploit demonstration.
Exploitation scenarios and attack lifecycle
Illustrative scenario: a service that converts user-uploaded media uses an affected FFmpeg build. An external user uploads a crafted RealMedia file. The service decodes it, the out-of-bounds read occurs, and bytes from process memory appear in the converted audio that the user downloads. This chain is not documented by any source; it follows from the record's description and is labelled Illustrative.
Illustrative scenario: a user is tricked into opening a crafted file in a desktop player built on an affected FFmpeg library. This corresponds to the UI:P or UI:R scoring, and the delivery method is not established.
For each scenario, the defensive points are: blocking or quarantining RealMedia input from untrusted sources before decoding; running decoders in a restricted sandbox so that leaked memory is limited to that process; and monitoring for decoder errors and unexpected crashes in media-processing services.
The record itself states the attack goal of leaking pointers to help defeat ASLR [1]. No source documents a completed attack chain, a chained second vulnerability, or a post-exploitation outcome.
Impact analysis
| Area | Technically demonstrated (per sources) | Plausible downstream (analyst assessment, not demonstrated) |
|---|---|---|
| Confidentiality | Read of memory beyond the decode buffer; the record states leaks into decoded audio [1]; CVSS 3.1 C:L and CVSS 4.0 VC:L [1] | Disclosure of data held in the same process, such as other buffers or secrets, if present in memory |
| Integrity | Scored none (I:N, VI:N) [1] | Not established; no write is described |
| Availability | Scored none (A:N, VA:N) [1]; no crash described | A crash on malformed input is possible but not documented in the sources |
| Authentication | Not affected per vectors; PR:N [1] | Leaked pointers could assist a later memory-corruption attack; the record says so but no chain is documented [1] |
| Authorization and privilege boundaries | Not established | If decoding runs in a more privileged process than the file source, leaked data could cross a boundary; depends on deployment |
| Data and privacy | Not established | If decoded output containing leaked memory is shared with other users, personal data could be exposed; depends on what is in process memory |
| Business operations | Not established | Not assessed beyond the points above |
| Regulatory or contractual | Not established | Depends on the data processed by affected services and on the organization's obligations |
Affected products and versions
| Vendor | Product or component | Affected versions | Platform or deployment | Fixed version | Source and qualification |
|---|---|---|---|---|---|
| FFmpeg | libavcodec Cook decoder | Through 9.0.2 (affected: 9.0.2 and earlier per the CVE record); lower bound not published | Not established | Not established by the reviewed sources | [1]; CNA-published range, no vendor advisory in pack, NVD analysis pending |
The published range has only an upper bound. The reviewed sources do not give a lower bound, so the earliest affected version is Not established by the reviewed sources. The sources contain no statement about downstream distribution builds that may include backported fixes; their status is Not established. No configuration exclusions are stated in the sources.
Exploitation and threat intelligence status
- Confirmed exploitation in the wild: Not established by the reviewed sources.
- CISA KEV: not listed as of 2026-11-12 [2]. The source notes that absence from the catalog is not evidence that the CVE has not been exploited.
- EPSS: 0.0013 (0.13%) estimated probability of exploitation activity in the next 30 days, percentile 0.0252, dated 2026-11-10 [3]. The source describes this as a statistical estimate, not evidence of exploitation.
- Public proof of concept: the record references a VulnCheck advisory [1], but the pack does not include its content, so whether it contains exploit detail is Unknown. No exploit code is included in the pack.
- Threat actors, campaigns and targeted sectors: Not established by the reviewed sources.
- Reliability: the KEV and EPSS data are dated 2026-11-12 and 2026-11-10 respectively; the NVD record was last modified 2026-11-10 [1, 2, 3].
The absence of public evidence in these sources does not prove that exploitation has not occurred.
Indicators of compromise
The reviewed sources provide no indicators of compromise: no file hashes, file names, domains, IP addresses, URLs, process names, log events or network patterns. This is Not established by the reviewed sources. Do not create blocking rules from this article. Any future indicators must come from a vendor, a distribution, or a reputable research source, and must be validated in the organization's own environment before blocking, because indicators go stale quickly.
Detection and exposure assessment
- Inventory FFmpeg and libavcodec across hosts, containers and images. On Debian-based systems, the read-only query dpkg -l with a grep for ffmpeg and libavcodec lists installed packages and their versions. Expected output: package names and version strings. Limitation: distribution version strings may not match the upstream version, and backports are Not established by the reviewed sources.
- Check the ffmpeg binary's version with the read-only command ffmpeg -version. Expected output: a version banner. Compare the reported version with the affected range through 9.0.2 [1]. Limitation: a build from a distribution may report a different version string despite fixes or differences.
- Check whether the Cook decoder is compiled in with the read-only command ffmpeg -decoders, filtered for cook. Expected output: a decoder list entry for the Cook codec if present. Limitation: presence does not prove exploitability, and the sources do not establish whether default builds include it.
- Identify services that decode untrusted RealMedia or other media from users, mail or external feeds, because these are the realistic exposure points under the file-delivery vector [S1, analyst assessment].
- Review application logs for decode errors, crashes or unexpected restarts of media-processing services. The sources provide no specific log events or event IDs; the detection signal is Not established.
- Run authenticated vulnerability scanning where the scanner covers FFmpeg packages. Scanner coverage for this CVE is Not established by the reviewed sources.
A version match is not proof of exploitability. Verify exposure by combining the version, the decoder presence and the data path.
Immediate mitigation
- Restrict untrusted RealMedia input. Configure mail, upload and proxy gateways to block or quarantine RealMedia-type files from untrusted sources before they reach decoding services. Protects against the file-delivery vector. Limitations: file type filters can be evaded and do not cover all delivery paths. Side effects: legitimate RealMedia content will not be processed. Verify: test the gateway policy with a benign sample file and confirm the policy log records the action. Source: analyst recommendation following from the file-based vector in [1].
- Isolate decoding. Run media decoding in a sandboxed or least-privilege process with no access to secrets or sensitive data beyond what is needed. Protects against disclosure of data outside that process. Limitations: it does not stop the read itself. Side effects: throughput and integration changes. Verify: confirm the service account and container capabilities are restricted in configuration review. Source: analyst recommendation.
- Disable the Cook decoder in affected builds where the business does not need it. For a self-built FFmpeg, the configure option to disable the decoder is the documented route; confirm the exact option name against your FFmpeg version's configure help before use. Protects against the vulnerable code path. Limitations: Cook-coded files will fail to decode. Side effects: functional impact on any Cook content. Verify: ffmpeg -decoders no longer lists the cook codec after rebuilding. Source: analyst recommendation; the configure option is not described in the reviewed sources.
- Limit where decoded output goes. For untrusted inputs, do not return decoded audio to other users or external parties until a fixed build is verified. Protects against the leak path described in [1]. Limitations: may disrupt the service. Verify: review the service's output routing configuration. Source: analyst recommendation.
- Increase monitoring of media-processing services for decode errors and crashes, and retain the input files that triggered them for investigation. Limitations: no specific signatures are available. Verify: confirm alerts fire on a benign test error in a non-production environment. Source: analyst recommendation.
Permanent remediation
Vendor-confirmed fix: not established by the reviewed sources. No fixed version or vendor advisory is included in the pack. The record references a pull request and a commit [1], but their content, and whether they are part of a released version, are not in the pack.
Recommended remediation (analyst recommendation): upgrade to an FFmpeg release or distribution package whose release notes or changelog explicitly reference CVE-2026-125182 or the referenced commit, once one is published. Confirm the fix by reviewing the changelog and by verifying the installed version after the update. Do not treat the presence of a newer version number alone as proof of the fix.
Upgrade considerations:
- Rebuild any application that statically links libavcodec, because a shared library update alone will not change it.
- Restart processes that have the old library loaded. Whether a restart is required by vendor documentation is Not established; for shared libraries it is the standard expectation.
- Take a snapshot or backup before upgrading, and keep a documented rollback path to the previous package version.
- Schedule the change within a maintenance window for production media services.
- After the update, review Cook-decoding configuration, since configuration changes that re-enable the decoder may have been made during the build.
Workarounds and compensating controls
The mitigations in the previous section reduce the number of paths that reach the decoder, and sandboxing reduces what a read can expose. Residual risk: the out-of-bounds read remains in the affected code if the decoder is enabled and a crafted file reaches it, and any memory leak it produces remains possible within the process. These controls are not equivalent to a fixed build, because they depend on correct gateway policy, correct build configuration and continued monitoring. Keep them in place until a verified fixed version is deployed and validated.
Validation and verification
- Confirm the installed FFmpeg and libavcodec package versions on every in-scope host, container and image after the update, and record the output.
- Confirm that the upgraded binary and the rebuilt applications no longer report a version through 9.0.2 and that the fix reference matches the vendor or distribution changelog.
- Confirm the Cook decoder configuration: if disabled, confirm with ffmpeg -decoders; if enabled, confirm a documented reason and the compensating sandboxing.
- Confirm that gateway quarantine rules and sandboxing remain active where they were applied as compensating controls.
- Re-run the inventory and authenticated scan, if scanner coverage exists, and compare results with the pre-change baseline.
- Review service logs and health for decode errors, restarts and crashes for a defined period after the change.
- Record evidence, owner, date and any exceptions. Use only authorized, benign test files for functional checks.
No single check establishes that a system is secure. Treat the result as a combination of version, configuration, data-path and log evidence.
Incident response
Use this section if a decoding crash, an unexpected decoder error or unexplained data in decoded output is linked to RealMedia input.
- Triage and scope: identify the services and hosts that decoded the input, the FFmpeg versions they run, and the time window.
- Containment: isolate the affected service or host from untrusted input routes, without powering off a host that may hold volatile evidence unless the incident plan requires it.
- Evidence preservation: retain the input files, application and gateway logs, service configuration and any decoded output in its original form. Do not delete or overwrite them.
- Investigation: review logs for the sequence of input handling and decoder errors. The reviewed sources provide no specific indicators, so compare against baseline behaviour.
- Credential and secret rotation: rotate only if evidence suggests that secrets resided in the affected process memory or were exposed in output. No such evidence is in the pack.
- Eradication: upgrade to a verified fixed build when available and remove any non-compliant builds.
- Recovery and monitoring: restore service with the controls in place and monitor for recurrence.
- Notification and reporting: follow the organization's incident plan and applicable legal obligations. Whether any notification is required is Not established by the reviewed sources.
- Lessons learned: record the exposure path and update gateway policies and inventory.
Security hardening and prevention
The following measures address the flaw class and are not vendor-confirmed fixes for this CVE.
- Secure development: validate every index or size derived from file input against its allowed range before using it for memory access (analyst recommendation, addressing the missing check in [1]).
- Code review and regression tests: add malformed-header test cases for header fields that control buffer indexing, and run them in continuous integration.
- Fuzzing (defence in depth): fuzz codec header parsing with sanitizers enabled in a test environment; sanitizers can detect out-of-bounds reads that do not crash the program.
- Sandboxing (defence in depth): decode untrusted media in a restricted process with minimal file-system and network access.
- Memory protections (defence in depth): keep ASLR and other platform memory protections enabled; the record states that leaked pointers could help bypass ASLR [1], so this is a limited control and not a fix.
- Attack-surface reduction: disable codecs and demuxers that the business does not use, using the build configuration.
- Logging and alerting: log media decoding failures and service crashes with the input source identifier.
- Patch management: track FFmpeg and distribution advisories and deploy verified fixes on a defined timeline.
Risk assessment
Technical severity: the NVD record provides a CVSS 4.0 score of 4.8 (Medium) and a CVSS 3.1 score of 3.3 (Low) [1]. These differ, and the 4.0 score includes user interaction as passive while 3.1 requires it. Neither score describes an organization's exposure.
Exposure: depends on whether the organization runs FFmpeg builds through 9.0.2 that decode RealMedia input from untrusted sources. This is Unknown until inventory is complete.
Exploit prerequisites and opportunity: file delivery to a decoding process is required, with user interaction or an automated decoding path. No exploit demonstration is in the pack [1].
Evidence of exploitation: none in the reviewed sources. The CVE is not in KEV as of 2026-11-12 [2], and the EPSS estimate is low [3].
Potential business impact: information disclosure of process memory into decoded output. The sources do not establish the content of that memory or its consequences.
Existing controls and residual risk: unknown per organization. Gateway filtering, sandboxing and monitoring reduce exposure; the residual risk is the leak in any environment that remains exposed.
Recommended priority (analyst assessment): prioritize inventory and gateway restriction now for services that process untrusted RealMedia; schedule the upgrade for the first verified fixed build. Assumptions: the organization uses FFmpeg in services that accept external media; the fix is not yet vendor-confirmed. This is a qualitative rating, not a numerical score, and it is not the CVSS score. Rating for organizations that do not decode untrusted RealMedia: lower, subject to inventory confirmation.
Conclusion
CVE-2026-125182 is a CWE-125 out-of-bounds read in FFmpeg's Cook decoder, caused by the absence of a check on jssubbandstart against subbands during initialization [1]. Its record describes a memory disclosure through decoded audio and scores it as Medium under CVSS 4.0 and Low under CVSS 3.1 [1]. Owners of FFmpeg deployments through 9.0.2 that decode untrusted RealMedia should act first: inventory affected builds, restrict the untrusted input path, and isolate decoding. The permanent fix is an upgrade to a verified fixed build, which the reviewed sources do not yet establish. Closing the issue requires a vendor or distribution fix reference, verified installed versions, configuration evidence, and log review for the validation period.
Remediation checklist
- Inventory every host, container and image with FFmpeg or libavcodec; record installed versions using the package manager query and ffmpeg -version, and flag builds through 9.0.2 [1].
- Identify services that decode RealMedia or other media from untrusted sources, such as upload, mail and streaming paths, and list them as priority exposure points [S1, analyst assessment].
- Configure mail, upload and proxy gateways to quarantine RealMedia-type files from untrusted sources; verify the rule with a benign sample and check the policy log [S1, analyst assessment].
- Run decoding of untrusted media in a restricted sandbox with no access to secrets; verify the service account and container capabilities in configuration review [analyst assessment].
- For self-built FFmpeg where Cook is not needed, rebuild with the Cook decoder disabled, confirming the configure option name against your version's help; verify with ffmpeg -decoders that cook is no longer listed [analyst assessment; option not described in [1]].
- Stop returning decoded output from untrusted RealMedia inputs to other users until a verified fixed build is deployed [analyst assessment].
- Monitor media-processing services for decode errors and crashes and retain the triggering input files; verify alerts with a benign test error in a non-production environment [analyst assessment].
- When a vendor or distribution fix is published, confirm it references CVE-2026-125182 or the referenced commit 7145d13201c9f9c5253f40295714faa4f4ada1a0 [1]; the fixed version is not yet established.
- After upgrading, rebuild statically linked applications, restart processes that loaded the old library, and verify the installed version on each host [analyst assessment; restart requirement not documented in the sources].
Evidence gaps
- Vendor-confirmed fixed version and vendor security advisory: the pack contains none; settle by reviewing the FFmpeg release notes or the referenced pull request and commit once a release includes them.
- Complete affected version range: only an upper bound (through 9.0.2) is published; a lower bound and distribution backport status are missing; settle with the vendor's affected-version statement and distribution advisories.
- Root-cause detail: the pack confirms the missing check but not the buffer sizing or the content of the referenced commit and pull request; settle by reviewing that content at the affected source.
- Content of the VulnCheck advisory referenced by the record, including any exploit detail; settle by reviewing that advisory directly.
- Whether the Cook decoder is enabled in default builds and in common distribution packages; settle with build configuration and package metadata.
- NVD analysis and the reconciled CVSS severity: the record is Awaiting Analysis and the 3.1 and 4.0 scores differ; settle when NVD publishes its analysis.
- Demonstrated impact: the leak into decoded audio and the ASLR claim are record statements without demonstration in the pack; settle with a vendor or reputable research analysis.
- Exploitation evidence: no confirmed exploitation or threat-actor attribution is in the pack; settle with CISA KEV updates, vendor statements and reputable threat intelligence.
- Indicators of compromise: none are provided; settle with vendor or research indicators, validated in the organization's environment.
- Platform and deployment exposure: the record names no operating system or service type; settle with vendor or distribution advisories and organizational asset data.
References
- CVE-2026-125182 record. NIST National Vulnerability Database (NVD), 2026-11-10. https://nvd.nist.gov/vuln/detail/CVE-2026-125182. 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-125182. FIRST, 2026-11-10. https://api.first.org/data/v1/epss?cve=CVE-2026-125182. Accessed 2026-11-12.
Summary
FFmpeg through 9.0.2 contains an out-of-bounds read vulnerability in the Cook decoder joint_decode() function because cook_decode_init() does not check js_subband_start against subbands. Attackers can supply a crafted RealMedia file whose extradata causes reads past decode_buffer_0, leaking pointers and decoder state into decoded audio to help defeat ASLR.
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-125: Out-of-bounds Read
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| FFmpeg | ≤ 9.0.2 | — |
References by type
Patches and fixed releases
- code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24763
- github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/cook.c
- github.com/FFmpeg/FFmpeg/commit/7145d13201c9f9c5253f40295714faa4f4ada1a0
Other references
Affected
- FFmpeg
Frequently asked questions
What is CVE-2026-125182?
CVE-2026-125182 is a CWE-125 out-of-bounds read in FFmpeg's Cook decoder, where cookdecodeinit() does not check jssubbandstart against subbands, so jointdecode() can read past decodebuffer0. Weakness type: Out-of-bounds Read (CWE-125).
How severe is CVE-2026-125182?
CVE-2026-125182 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-125182 being exploited?
Not as far as is known: CVE-2026-125182 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-125182?
FFmpeg ≤ 9.0.2.
How do I fix CVE-2026-125182?
Inventory every host, container and image with FFmpeg or libavcodec; record installed versions using the package manager query and ffmpeg -version, and flag builds through 9.0.2. Identify services that decode RealMedia or other media from untrusted sources, such as upload, mail and streaming paths, and list them as priority exposure points [S1, analyst assessment]. Configure mail, upload and proxy gateways to quarantine RealMedia-type files from untrusted sources; verify the rule with a benign sample and check the policy log [S1, analyst assessment].