Home › CVE › Vulnerabilities
CVE-2026-125099 — FFmpeg
One of 121 FFmpeg vulnerabilities published together by NVD.
VulnerabilitiesResearch article
FFmpeg through 9.0.2: uninitialized heap memory disclosure in the GEM image decoder (CVE-2026-125099)
| CVE | CVE-2026-125099 |
|---|---|
| Vendor and product | FFmpeg |
| Published | November 12, 2026 07:20 UTC |
| Research cut-off | November 12, 2026 07:12 UTC |
| Updated | November 24, 2026 19:20 UTC |
| Sources reviewed | 3: NVD record (last modified 2026-11-10); CISA KEV catalog; FIRST EPSS (2026-11-10) |
Update — November 24, 2026
- NVD finished its analysis of this CVE. (NVD record)
- A fix is now listed: github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/gemdec.c.
Executive summary
CVE-2026-125099 is a memory disclosure flaw in FFmpeg's decoder for GEM raster images, where parts of a decoded row buffer are never initialized, so heap bytes left over from earlier use can appear in decoded output [1]. NVD's record is still Awaiting Analysis, and its only scores come from a secondary scorer: CVSS 4.0 at 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 at 3.3 LOW with vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N [1]. The record lists FFmpeg through version 9.0.2 as affected, and the pack contains no fixed version [1]. Exploitation requires that a crafted GEM image be decoded, and the scoring treats the attack as local with some user interaction [1]. The vulnerability is not in CISA's Known Exploited Vulnerabilities catalog as of 2026-11-12, and FIRST's EPSS estimate is 0.0016 (0.16%) with percentile 0.0549 [2, 3]. These are not proof of absence of exploitation. The most important immediate action is to identify FFmpeg builds at or below 9.0.2 that decode untrusted GEM files, and to stop decoding such files from untrusted sources until a vendor-confirmed fix is verified in your build.
Key points
- CVE-2026-125099 is an uninitialized memory disclosure in FFmpeg's GEM image decoder, classified as CWE-908, with the record covering FFmpeg through 9.0.2 [1].
- Scores are secondary: CVSS 4.0 at 4.8 MEDIUM and CVSS 3.1 at 3.3 LOW, both from a secondary scorer, and NVD status is Awaiting Analysis [1].
- Exploitation requires a crafted GEM image to be decoded, with the scoring assuming local access and no privileges [1].
- Not in the CISA KEV catalog as of 2026-11-12, and EPSS is 0.0016 (percentile 0.0549); neither proves absence of exploitation [2, 3].
- No fixed version is given in the pack, so the immediate action is to restrict GEM input and isolate decoding until a vendor-confirmed fix is verified [1].
Vulnerability identification
| Attribute | Value | Source |
|---|---|---|
| CVE ID | CVE-2026-125099 | [1] |
| Vendor | FFmpeg project | [1] |
| Product | FFmpeg (libavcodec decoder component) | [1] |
| Component | GEM raster image decoder, source file libavcodec/gemdec.c | [1] |
| Affected platform | Not established by the reviewed sources beyond the FFmpeg source tree and its referenced commits | [1] |
| Published | 2026-11-09T19:16:50 | [1] |
| Last modified | 2026-11-10T21:46:41 | [1] |
| Record status | Awaiting Analysis | [1] |
| CWE | CWE-908 (Use of Uninitialized Resource) | [1] |
| CVSS 4.0 | 4.8, MEDIUM; 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; scorer disclosure@vulncheck.com (Secondary) | [1] |
| CVSS 3.1 | 3.3, LOW; vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N; scorer disclosure@vulncheck.com (Secondary) | [1] |
| EPSS | 0.0016 (0.16%), percentile 0.0549, dated 2026-11-10 | [3] |
| CISA KEV | Not listed as of 2026-11-12 | [2] |
| Related identifiers | Reference to FFmpeg pull request 25715, reference to FFmpeg commit e578999fa3c5f7efac1ea70bb7c2a7682013c7c9, reference to the tagged n9.0.2 source line 258 of libavcodec/gemdec.c, and a VulnCheck advisory | [1] |
The two CVSS scores come from different CVSS versions and both were assigned by a secondary scorer rather than by NVD or the vendor [1]. The scores do not conflict in direction, since both place the issue at low to medium severity, but they describe the vulnerability differently in the user-interaction and confidentiality metrics, as explained in the Risk assessment section. The pack does not include a vendor security advisory for this CVE, so no vendor-assigned score or classification is available [1].
Technical background
FFmpeg is an open-source multimedia framework. Its libavcodec library contains the codecs that decode and encode audio and video, and each format has its own decoder module. A decoder reads a file's bytes, interprets its header and pixel data, and writes the result into a frame buffer that the rest of the application can use [1].
GEM is an older raster image format. The FFmpeg decoder for it lives in libavcodec/gemdec.c [1]. Raster decoders commonly use row buffers: a temporary array holding one scanline of pixels while the decoder expands compressed data into it. Such buffers are allocated on the heap, which is memory managed at runtime and reused across operations, so their contents from earlier work can persist until overwritten [Analyst assessment, based on the description and CWE-908 in S1].
The trust boundary is the point where untrusted file contents enter the decoder. Any input file, whether opened locally, downloaded, or passed through a service that calls FFmpeg, crosses that boundary. CWE-908 is the weakness class for code that uses a resource, such as a buffer or variable, before it has been given a defined value [1].
Vulnerability description
The record describes a memory disclosure flaw: the GEM decoder can leave part of a row buffer uninitialized and then include those bytes in decoded output, so data from the heap can be revealed [1]. The security property violated is confidentiality of process memory contents, not the integrity of the decoded image or the availability of the decoder [1].
The record states that the flaw is reached through specific GEM run-type instructions, identified in the record as SKIP and pattern opcodes [1]. The attacker supplies a crafted GEM image file. Based on the description, the attacker needs the decoder to process that file and then to obtain the resulting decoded frame or its pixel data [S1, Analyst assessment].
What the vulnerability does not establish, based on the reviewed sources: it does not describe code execution, memory corruption or writes outside a buffer, remote network reachability of a service, or privilege escalation. The sources describe disclosure, not those outcomes [1]. Whether the disclosed bytes contain secrets, keys, or other sensitive material depends on the heap state at the time of decoding, which the sources do not characterize [1].
Root cause analysis
The record and referenced commit identify the affected area as the GEM decoder [1]. The sources do not include the vendor's root cause analysis, a patch diff description, or a maintainer statement. Therefore the specific code-level cause is not confirmed by the reviewed sources.
Analyst assessment: the most plausible cause, consistent with CWE-908 and the described behaviour, is that the decoder's row-buffer handling for the skip and pattern run types does not fill every byte of the buffer before the buffer is copied to the output. This would leave earlier heap contents in the unfilled bytes. This is an inference and has not been verified against the source code or the patch in the pack.
Why existing controls may fail: the flaw does not depend on a malformed header that a parser would reject. It depends on a valid-looking run sequence that leaves some bytes unset, so ordinary format validation may not detect it. The reviewed sources do not state whether FFmpeg's build hardening or memory sanitizers would have caught it.
Technical mechanics
- The application opens a GEM image, either directly through FFmpeg or through a program that uses libavcodec [1].
- The GEM decoder reads the header and begins decoding the pixel data row by row into a heap-allocated row buffer [S1, Analyst assessment].
- When the image encodes a skip or pattern run, the decoder writes the run into the row buffer. The record indicates that some bytes in the buffer are not set in this path [1].
- The row buffer is then transferred into the decoded frame without the unset bytes being overwritten [S1, Analyst assessment].
- The frame holds bytes that were in the heap before decoding. Those bytes become visible to whoever receives or inspects the decoded frame, for example by saving the output as an image or handing it to another process [S1, Illustrative].
The security control that should have prevented this is initialization of the row buffer before any use, or zeroing of the frame region not covered by decoded data. The sources do not confirm which of these is absent [1].
GEM file (untrusted)
|
v
gemdec.c decoder
| skip / pattern run
v
heap row buffer --- some bytes not written
|
v
decoded frame --- contains prior heap bytes
|
v
consumer of decoded output
Attack surface and exploitation prerequisites
| Prerequisite | Status | Source |
|---|---|---|
| Network access | Not required by the scoring; the CVSS 4.0 and 3.1 attack vector is Local (AV:L) | [1] |
| Adjacent network access | Not established by the reviewed sources | [1] |
| Local access | Scored as required (AV:L) | [1] |
| Physical access | Not established by the reviewed sources | [1] |
| Authentication | Not required (PR:N) | [1] |
| Privileges | None (PR:N) | [1] |
| User interaction | CVSS 4.0 records passive user interaction (UI:P); CVSS 3.1 records required user interaction (UI:R) | [1] |
| Required configuration | FFmpeg built with the GEM decoder enabled, which is typical in default builds but not confirmed by the pack | [S1, Analyst assessment] |
| Attacker-reachable interface | A file-decoding path that accepts a GEM image | [S1, Analyst assessment] |
Prerequisites known only from the vector: the local attack vector and the absence of required privileges are scoring inputs, not tested facts. Whether the attacker can deliver a GEM file to a victim decoder through a web upload, email attachment, or other path depends on the application deployed, and no reviewed source documents such a deployment. The user-interaction difference between the two scores reflects different scoring assumptions, and the pack does not establish which one is more accurate for any given deployment.
Exploitation scenarios and attack lifecycle
Scenario A (Illustrative): an attacker supplies a crafted GEM image to a service that converts uploaded images using FFmpeg. The service decodes the file and returns a converted image to the attacker. If the output reveals heap bytes, the attacker obtains fragments of server memory. Starting position: an ordinary user of the upload feature. Required interaction: the service must process the file. Post-exploitation outcome: disclosure only, as the sources describe. Defensive opportunities: limit which file types the service accepts, run the converter in an isolated process with no secrets in its memory, and log decoder failures and unusual image sizes.
Scenario B (Illustrative): a user opens a crafted GEM file in a local tool built on FFmpeg. The scoring's local vector and user-interaction assumptions fit this case [1]. Defensive opportunities: restrict opening of GEM files from untrusted sources and patch local tools when a fixed build is available.
The sources do not document any attack chain, and no reviewed source reports a real-world attack using this flaw [1, 2, 3].
Impact analysis
| Area | Technically demonstrated by sources | Plausible downstream consequence (Analyst assessment) |
|---|---|---|
| Confidentiality | Disclosure of uninitialized heap contents into decoded frames; scored Low (C:L in CVSS 3.1, VC:L in CVSS 4.0) [1] | Exposure of fragments of data held in the decoding process's memory, which may include content from other operations if the process is reused |
| Integrity | No integrity impact scored (I:N, VI:N) [1] | None established |
| Availability | No availability impact scored (A:N, VA:N) [1] | None established |
| Authentication and authorization | Not established by the reviewed sources | None established |
| Privilege boundaries | Not established by the reviewed sources | Disclosed memory could help an attacker in a later stage, but no source demonstrates this |
| Data and privacy | Not established: the sources do not state what data the heap held | Depends on the processing service's data, which is unknown |
| Business operations | Not established by the reviewed sources | Limited unless the decoder handles sensitive content |
| Regulatory or contractual obligations | Not established by the reviewed sources | Organizations should review whether processing such files involves regulated data |
Affected products and versions
| Vendor | Product and component | Affected versions | Platform or deployment | Fixed version | Source and qualification |
|---|---|---|---|---|---|
| FFmpeg | libavcodec GEM decoder (libavcodec/gemdec.c) | Through 9.0.2, as stated in the CVE record | Any build including the GEM decoder; deployment type not established | Not established by the reviewed sources | [1]; the record is in Awaiting Analysis status and the vendor advisory is not in the pack |
The range is taken from the CVE record's statement of affected versions, which the record attributes to the vendor as CVE Numbering Authority [1]. The pack does not state whether any version before 9.0.2 is unaffected, and it does not state the first affected version. Distribution packages, forks, and vendor-patched builds may carry different versions or backports, and none are described in the pack. A reference points at a commit and a pull request, but the pack does not confirm that either one is the fix or that either is included in any release [1].
Exploitation and threat intelligence status
- Confirmed exploitation in the wild: not established by the reviewed sources [1, 2].
- CISA Known Exploited Vulnerabilities catalog: not listed as of 2026-11-12 [2]. The catalog listing is not evidence that the flaw has not been exploited.
- Public proof of concept: the pack contains no proof-of-concept reference. The VulnCheck advisory is listed as a reference, but the pack does not describe its content beyond the record [1].
- EPSS: 0.0016 (0.16%) probability of exploitation activity within 30 days, percentile 0.0549, as of 2026-11-10 [3]. EPSS is a statistical model estimate and does not indicate observed exploitation [3].
- Threat actors, campaigns, and sectors: not established by the reviewed sources.
The absence of public exploitation evidence in this pack is not proof that exploitation has not occurred, and the pack covers only the sources the website monitors as of the cut-off [2].
Indicators of compromise
No indicators of compromise are given by the reviewed sources: no file hashes, file names, domains, IP addresses, URLs for attack traffic, process names, log events, or network patterns are documented for this CVE. Indicators in general go stale quickly and must be validated before any blocking rule is written. No indicator is proposed here.
Detection and exposure assessment
- Asset inventory: list every host, container image, and application package that bundles FFmpeg or libavcodec, and record the version reported by each binary. Owner: platform or application team. Evidence: inventory export with version fields.
- Version check (read-only): run the installed binary with the version option, for example ffmpeg -version, and record the reported version. Prerequisite: the binary is on the path or its full path is known. Expected output: a version banner. Limitation: a version at or below 9.0.2 is a necessary condition for the vulnerable range in the record, not proof of exploitability; distribution backports can change the effective status without changing the reported version [S1, Analyst assessment].
- Build configuration check: determine whether the GEM decoder is compiled in. The sources do not provide a command for this, so the method must be confirmed against the build configuration of your FFmpeg source or package. Limitation: not established by the reviewed sources.
- Workflow exposure: identify services and users that decode GEM files from external sources. The sources do not document a deployment pattern, so this must come from your own application inventory.
- Authenticated vulnerability scanning: check whether your scanner has a plugin that covers this CVE. The pack does not name a scanner or plugin, so coverage is not established.
- Logs and telemetry: review decoder errors, conversion jobs with GEM input, and unusual output sizes in application logs for the affected services. The pack gives no log event names for this flaw, so these checks are generic and must be tuned locally.
Immediate mitigation
- Stop accepting GEM files from untrusted sources in services that use FFmpeg. Protects against the crafted-input path described in the record [1]. Limitation: does not fix existing installations for trusted files. Side effects: users who need GEM support will lose it. Verification: test an upload of a GEM file through the service and confirm it is rejected at the file-type check. Source: follows from the decoding path described in S1; the sources do not prescribe this measure.
- Isolate FFmpeg decoding in a separate process or container with no secrets, credentials, or unrelated customer data in memory or on its filesystem. Protects against disclosure of sensitive heap contents, which is the impact the record describes [1]. Limitation: does not prevent the disclosure itself. Verification: confirm the decoding worker's environment contains no secrets. Source: Analyst assessment.
- If the build system supports disabling individual decoders, build without the GEM decoder. Protects against the code path entirely. Limitation: the exact configure option name for this decoder is not established by the reviewed sources and must be verified in your source tree. Side effects: GEM files will no longer decode. Verification: confirm the decoder is absent from the built binary's decoder list. Source: Analyst assessment; not confirmed by the pack.
- Increase logging for decoder jobs that process image files, so that conversions of GEM input can be reviewed. Limitation: logs do not prevent disclosure. Verification: confirm that a test job creates the expected log entry. Source: Analyst assessment.
Permanent remediation
Vendor-confirmed fix: not established by the reviewed sources. The CVE record references a commit and a pull request in the FFmpeg repository, and a source file at the n9.0.2 tag, but the pack does not state that any of them is the fix, and it gives no fixed version number [1].
Recommended action: when the FFmpeg project publishes a release or advisory that names this CVE as fixed, upgrade affected builds to that release, or apply the vendor-supplied patch to your source tree. Before upgrading, confirm whether the build is a distribution package, in which case apply the distribution's update, since backported fixes may not change the upstream version number. Back up the current binary or package, schedule the change in a maintenance window, and keep the previous version available for rollback. After updating, rebuild any container images or statically linked applications that bundle libavcodec, because updating a system package does not update a copy embedded in another artifact.
Restart or reload requirements: not established by the reviewed sources. Restart every process that loads libavcodec after the update, because a running process keeps the old library in memory.
Workarounds and compensating controls
The mitigations listed above reduce exposure but are not equivalent to a fix. Blocking GEM files does not remove the flaw from the library, and isolation does not prevent the decoder from reading heap contents it has produced. The residual risk is that any unpatched build still contains the flaw for any file that reaches it through an allowed path [Analyst assessment]. These controls should remain in place until a vendor-confirmed fixed build is verified.
Validation and verification
- Record the installed FFmpeg version or package build for each affected asset, and confirm it is above 9.0.2 or carries a distribution update that names this CVE. Owner: asset owner. Evidence: version output and package change record.
- Confirm that every container image and statically linked binary that bundles libavcodec was rebuilt from patched sources. Evidence: image digest and build log.
- Confirm the mitigation applied: the file-type rule rejects test GEM uploads, or the GEM decoder is absent from the build, as applicable. Evidence: test result recorded with date.
- Run the authenticated scanner, if coverage exists, and treat a clean result as one input, not as proof of security.
- Review decoder logs for the post-fix period to confirm the expected processing behaviour and no unexpected errors.
- Record the owner, date, exceptions, and the compensating controls that remain in place. Do not declare the issue closed on a single check.
Incident response
If exploitation is suspected: no source documents exploitation, so an incident response should begin only on an actual indicator from your own telemetry.
- Triage and scope: identify which services decoded GEM files from untrusted sources, and over what time window, using application logs and upload records. Preserve these records before any cleanup.
- Containment: stop the affected service's GEM handling, and isolate the host or container if memory disclosure to another party is suspected.
- Evidence preservation: capture the affected binary, its version output, and the logs. Do not delete temporary files or restart processes before the evidence is recorded, unless containment requires it.
- Credential or secret rotation: rotate any secret that was resident in the decoding process's memory during the window, if your investigation cannot rule out exposure. The sources do not establish that any secret was exposed.
- Eradication and patching: apply the vendor fix when available and verify it as described above.
- Recovery and monitoring: restore normal decoding only after validation, and monitor decoder logs for the following weeks.
- Notification and reporting: follow your legal and contractual obligations if personal or regulated data may have been included in decoded output. The reviewed sources do not establish whether any such data was affected.
- Lessons learned: review why the file-type path accepted GEM input and whether the decoder ran with unnecessary access.
Security hardening and prevention
The following measures are relevant to this flaw class and are not vendor-specified:
- Secure development (defence in depth, Analyst assessment): require explicit initialization of all heap buffers before use, and add regression tests that decode GEM files with skip and pattern runs and check that the output contains no unexpected bytes. Owner: FFmpeg contributors or the team that builds the library.
- Input allowlisting: for applications, accept only the image formats the business requires, and reject others at the upload boundary.
- Least privilege and isolation: run decoders as unprivileged processes with no secrets in their environment.
- Patch management: track FFmpeg releases and distribution advisories, and record the version of every bundled copy of libavcodec.
- Logging and monitoring: log decoder failures and conversion jobs with their input types.
- Testing: include the GEM decoder in fuzzing or sanitizer runs that detect uninitialized memory reads, where the project's tooling supports it. Whether FFmpeg's current test suite covers this path is not established by the reviewed sources.
Risk assessment
Technical severity: the record describes a confidentiality-only disclosure with low scored impact, and the two CVSS scores are 4.8 MEDIUM (CVSS 4.0) and 3.3 LOW (CVSS 3.1), both assigned by a secondary scorer [1]. Exposure and asset criticality depend on whether your organization runs FFmpeg against untrusted GEM files, which the reviewed sources cannot determine. Exploit prerequisites: the scoring assumes local access with no privileges and some user interaction, so the exposure depends on how files reach the decoder [1]. Evidence of exploitation: none in the reviewed sources; the CISA KEV catalog does not list the CVE, and EPSS is 0.0016 [2, 3]. Potential business impact: limited to whatever data the decoding process holds in memory, which is not established [1]. Existing controls and residual risk: until a fixed build is verified, residual risk remains for any unpatched build.
Recommended priority (Analyst assessment, not a CVSS score): prioritize services that decode GEM files from external users or from data sources you do not control, and address those before local tools used with trusted files. The organization's own rating must state its assumptions, including the file sources and the data held in the decoding process, and it is not the CVSS score.
Conclusion
CVE-2026-125099 is a confidentiality flaw in FFmpeg's GEM image decoder, in which uninitialized row-buffer bytes can appear in decoded output, classified as CWE-908 [1]. The record covers FFmpeg through 9.0.2, the vendor fix is not established, and no exploitation evidence appears in the reviewed sources [1, 2, 3]. Operators running FFmpeg builds at or below 9.0.2 that process GEM files should act first, by restricting GEM input from untrusted sources and isolating the decoder. The permanent fix is a vendor-confirmed FFmpeg release or distribution update that is verified in each deployed artifact. Closing the issue requires the vendor advisory or release note that names the fixed version, the verified installed version in every asset, a validated mitigation record, and evidence that bundled copies were rebuilt.
Remediation checklist
- Inventory every host, container and package that bundles FFmpeg or libavcodec, and record the version reported by each binary with the version option, for example ffmpeg -version; flag versions through 9.0.2 [1].
- Stop accepting GEM image files from untrusted sources in services that use FFmpeg, and verify by uploading a test GEM file and confirming rejection at the file-type check [1].
- Run FFmpeg decoding for untrusted inputs in a separate unprivileged process or container with no secrets in its environment, and verify the worker's environment contains none [1].
- Where your build system supports disabling individual decoders, build without the GEM decoder after confirming the exact option name in your source tree, and verify the decoder is absent from the built binary [1].
- Obtain the FFmpeg release note or vendor advisory that names the fixed version for CVE-2026-125099; the pack does not give one [1].
- Upgrade affected builds to the confirmed fixed release, or apply the distribution's update, and record the installed version for each asset [1].
- Rebuild container images and statically linked binaries that embed libavcodec, then confirm their digests and build logs show patched sources [1].
- Restart every process that loads libavcodec after updating, and confirm the loaded library version with the owning team's runtime check [1].
- Review decoder logs for the affected services over the exposure window, and preserve them before any cleanup if a suspicious pattern appears [1].
- Record owner, date, exceptions and remaining compensating controls, and keep the GEM restriction until the fixed version is verified in all artifacts [1].
Evidence gaps
- Vendor advisory or release note: the pack contains none; it is needed to confirm the root cause, the fixed version and the fix commit's inclusion in a release [1].
- Complete affected version range: the record gives only through 9.0.2; the first affected version and any unaffected branches are not stated [1].
- Root cause: the record does not describe the code-level cause; the inference in this article must be checked against the patch and the gemdec.c source at the referenced tag [1].
- Scoring by NVD: the record is in Awaiting Analysis with only secondary scores; NVD analysis and an authoritative CVSS score are needed [1].
- Exploitation evidence: none in the pack; CISA KEV and a threat intelligence review, with dates, are needed to confirm or rule out exploitation in the wild [2, 3].
- Public proof of concept: the pack does not describe the referenced VulnCheck advisory's content; its technical details must be reviewed to determine whether any public exploit exists [1].
- Indicators of compromise: none are given; any future indicators must come from a source with dates and context and must be validated before blocking [1].
- Build configuration: the exact decoder option name and the default enablement of the GEM decoder are not established and must be verified in the source tree or package build [1].
- Data exposure: what data the decoding process typically holds, and whether it could contain secrets, is not established by the reviewed sources [1].
References
- CVE-2026-125099 record. NIST National Vulnerability Database (NVD), 2026-11-10. https://nvd.nist.gov/vuln/detail/CVE-2026-125099. 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-125099. FIRST, 2026-11-10. https://api.first.org/data/v1/epss?cve=CVE-2026-125099. Accessed 2026-11-12.
Summary
FFmpeg through 9.0.2 contains an uninitialized memory disclosure vulnerability in the GEM raster image decoder in libavcodec/gemdec.c that exposes uninitialized row-buffer bytes. Attackers can supply a crafted GEM .img image using SKIP or pattern opcodes to copy uninitialized heap memory into decoded frames, disclosing heap contents.
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 | ≤ 9.0.2 | — |
References by type
Patches and fixed releases
- github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/gemdec.c
- github.com/FFmpeg/FFmpeg/commit/e578999fa3c5f7efac1ea70bb7c2a7682013c7c9
Other references
Affected
- FFmpeg
Frequently asked questions
What is CVE-2026-125099?
CVE-2026-125099 is a memory disclosure flaw in FFmpeg's decoder for GEM raster images, where parts of a decoded row buffer are never initialized, so heap bytes left over from earlier use can appear in decoded output. Weakness type: Use of Uninitialized Resource (CWE-908).
How severe is CVE-2026-125099?
CVE-2026-125099 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-125099 being exploited?
Not as far as is known: CVE-2026-125099 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-125099?
FFmpeg ≤ 9.0.2.
How do I fix CVE-2026-125099?
Inventory every host, container and package that bundles FFmpeg or libavcodec, and record the version reported by each binary with the version option, for example ffmpeg -version; flag versions through 9.0.2. Stop accepting GEM image files from untrusted sources in services that use FFmpeg, and verify by uploading a test GEM file and confirming rejection at the file-type check. Run FFmpeg decoding for untrusted inputs in a separate unprivileged process or container with no secrets in its environment, and verify the worker's environment contains none.