Home › CVE › Vulnerabilities
CVE-2026-125269 — FFmpeg
One of 121 FFmpeg vulnerabilities published together by NVD.
VulnerabilitiesAnalysis
CVE-2026-125269: FFmpeg double free in libavcodec SEI handling rated HIGH (CVSS 7.3)
NVD describes a double free in FFmpeg's libavcodec through version 9.0.2, rated HIGH at CVSS 7.3. The sources do not list a fixed version or say whether the flaw is being exploited.
Key points
- FFmpeg versions through 9.0.2 are listed as affected in NVD.
- The flaw is a double free in libavcodec/cbs_sei.c that leads to heap memory corruption.
- The described trigger involves h264_metadata with display_orientation=insert.
- NVD rates the issue HIGH, CVSS 7.3.
- No fixed version or evidence of exploitation is given in the sources.
What's affected
NVD lists FFmpeg through version 9.0.2 as affected. The flaw is in the file libavcodec/cbs_sei.c. The sources do not name a fixed release, so administrators should check their FFmpeg builds and their distribution's security advisories for patch status. The sources also do not say which downstream products bundle the affected code.
The flaw
According to the NVD entry, a function that deletes an SEI message leaves behind a stale reference to extension data. A later function that adds a message reuses that reference, which results in a double free. The NVD description links the issue to H.264 input processed by the h264_metadata filter with display_orientation set to insert. Beyond that configuration and the resulting heap memory corruption, the sources give no further detail.
How serious is it
NVD rates the issue HIGH with a CVSS score of 7.3. The sources do not provide the full vector, the required privileges or user interaction, or the specific confidentiality, integrity and availability impact. No vendor assessment is included.
Exploitation status
The sources do not state whether the flaw is being exploited in the wild, and they do not mention a public proof of concept or a vendor advisory.
What to do
First, identify every place FFmpeg runs, including servers, containers, transcoding pipelines and applications that embed its libraries. Second, check whether any workflow uses h264_metadata with display_orientation=insert on input that is not fully trusted. Where that option is not needed, disabling it or isolating the processing job reduces exposure until a fix is available. Finally, track FFmpeg and vendor releases for a patch, apply it promptly once published, and review crash logs from media processing jobs for unexpected terminations.
Recommended actions
- Inventory all FFmpeg installations, including bundled copies in containers and applications.
- Check whether any pipeline uses h264_metadata with display_orientation=insert on untrusted H.264 input, and disable the option where it is not required.
- Isolate media processing of untrusted content until a patched build is installed.
- Monitor vendor and FFmpeg project releases for a fix and apply it as soon as it is available.
Summary
FFmpeg through 9.0.2 contains a double free vulnerability in libavcodec/cbs_sei.c where cbs_sei_delete_message() leaves a stale extension_data reference that ff_cbs_sei_add_message() reuses. Attackers can supply a crafted H.264 stream with a display orientation SEI message followed by payload extension data, processed by h264_metadata with display_orientation=insert, to corrupt heap memory.
Severity breakdown
High · 7.3
An attacker without an account can exploit this with local access if a user views or visits something, but only under specific conditions.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- high (only works under specific conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- yes, a user must view or visit something
- Impact
- high on confidentiality, integrity and availability
- Impact on other systems
- none
Weakness
- CWE-415: Double Free
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/25020
- github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/cbs_sei.c
- github.com/FFmpeg/FFmpeg/commit/2c515eea07df719379e7f73deeeb7ccb8768433f
Other references
Affected
- FFmpeg
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-125269?
NVD describes a double free in FFmpeg's libavcodec through version 9.0.2, rated HIGH at CVSS 7.3. The sources do not list a fixed version or say whether the flaw is being exploited. Weakness type: Double Free (CWE-415).
How severe is CVE-2026-125269?
CVE-2026-125269 has a CVSS 4.0 base score of 7.3 (high), from the CNA (vulncheck.com). An attacker without an account can exploit this with local access if a user views or visits something, but only under specific conditions.
Is CVE-2026-125269 being exploited?
Not as far as is known: CVE-2026-125269 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-125269?
FFmpeg ≤ 9.0.2.
How do I fix CVE-2026-125269?
Inventory all FFmpeg installations, including bundled copies in containers and applications. Check whether any pipeline uses h264metadata with displayorientation=insert on untrusted H.264 input, and disable the option where it is not required. Isolate media processing of untrusted content until a patched build is installed.