CVE-2026-135740 FFmpeg before 9.1 Heap Out-of-Bounds Write via readeia608 Filter Histogram

Published Updated

Crafted video processed by FFmpeg's readeia608 filter can corrupt heap memory, crashing or possibly executing code.

CVSS score

High

8.5/10

CVSS 4.0 · Scored by VulnCheck Breakdown
Exploited in the wild
Not known
Not in CISA's KEV catalogue
Exploit code
Proof of concept
2 on GitHub, unverified
Fix
Available
9.1
Attack path
Local or same network
No login, a user must click or open something

What is CVE-2026-135740?

CVE-2026-135740 is a high-severity memory corruption vulnerability in FFmpeg, published on 24 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

FFmpeg before 9.1 contains a heap out-of-bounds write vulnerability in libavfilter/vf_readeia608.c because build_histogram() does not clamp high bit depth luma samples to the nominal maximum. Attackers can supply crafted 9, 10, 12 or 14 bit gray or YUV video to corrupt heap memory, causing crashes or possibly code execution.

Weakness: CWE-787

How severe is CVE-2026-135740?

CVE-2026-135740 scores 8.5 out of 10 under CVSS 4.0, which is high severity. It was scored by VulnCheck.

Attack vector
Local
Attack complexity
Low
Attack requirements
None
Privileges required
None
User interaction
Passive
Confidentiality
High
Integrity
High
Availability
High

CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Which versions are affected by CVE-2026-135740?

1 open source package ship an affected version, including ffmpeg/ffmpeg. It affects 1 product.

An affected version is only exploitable if your software calls build_histogram. Many projects that include it are not exposed.

PackageAffectedFixed in
ffmpeg/ffmpeg GitHub
pkg:github/ffmpeg/ffmpeg
All versions9.1
Status by vendor 1
WhoReleaseStatusPackages
Upstreamfixedffmpeg:ffmpeg (9.1)

Products include FFmpeg.

CPE match criteria 1
CPE 2.3Versions
cpe:2.3:a:ffmpeg:ffmpeg:*:*:*:*:*:*:*:*before 9.1

How do I fix CVE-2026-135740?

Upgrade ffmpeg/ffmpeg to 9.1 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2026-135740 being exploited?

There is no known exploitation of CVE-2026-135740 in the wild and no public exploit code.

Public exploit code: 2 proofs of concept on GitHub.

All FFmpeg vulnerabilities

Sources

Also known as DEBIAN-CVE-2026-135740, ECHO-9f53-0a1d-f947, GHSA-mrgq-3vwh-575j, UBUNTU-CVE-2026-135740.

Is CVE-2026-135740 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free