Skip to main content

FFmpeg EUVDEUVD-2026-137205

| CVE-2026-137910 MEDIUM
Out-of-bounds Read (CWE-125)
2026-11-27 AISLE GHSA-3wrg-xc52-xf53
5.8
CVSS 4.0 · Vendor: AISLE
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Supply odd-byte-width image to PCX-encoding app
  2. Delivery
    Application invokes FFmpeg pcx_encode_frame on tightly packed frame
  3. Exploit
    Row padded up to even byte count
  4. Execution
    Encoder reads past end of frame buffer
  5. Impact
    Application crash or heap contents leaked into output image

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an application that calls FFmpeg's PCX encoder (libavcodec/pcxenc.c, pcx_encode_frame) AND supplies tightly packed input frames (no row padding in the source buffer) AND lets the attacker influence the image width such that the per-plane byte width is odd; the encoder computes line_bytes rounded up to an even number and RLE-encodes that many bytes, reading one byte beyond src_plane_size per row. Limiting factors that reduce real-world risk: the attack is local (AV:L), has high complexity with a specific attack requirement (AC:H/AT:P), depends on passive user/application interaction to trigger encoding (UI:P), and only matters when an application actually encodes attacker-influenced images to PCX with tightly packed buffers - it is not exploitable against a default remote network service.

Impact

This is a medium-severity, defender-friendly issue rather than an urgent priority. The CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P, score 5.8) describes a local vulnerability with high attack complexity, a specific attack requirement (AT:P), and required passive user interaction - the opposite profile of a remotely wormable flaw. Impact is bounded: low confidentiality (heap bytes leaking into the output PCX image, VC:L) plus availability loss from a crash (VA:H), with no integrity impact and no scope change. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with patch-on-regular-cycle urgency. No CISA KEV listing is present, so there is no confirmed active exploitation, and no EPSS score was supplied in the input, so probabilistic exploitation likelihood cannot be quantified here - this absence is a data gap, not evidence of low risk. No public exploit code is referenced; the only GitHub links are the fix commit and PR. The signals align rather than conflict: a hard-to-reach encoder-side bug (attacker must control image width AND the application must feed tightly packed PCX frames) with limited impact. Overall this is a genuine but low-priority memory-safety defect, not a high-CVSS-but-overstated finding.

Exploit ScenarioDerived

An attacker provides an image whose per-plane row width in bytes is odd to an application that encodes images to PCX using FFmpeg's pcxenc encoder with a tightly packed input frame. The encoder rounds the row up to an even byte count and run-length-encodes that many bytes, reading past the end of the frame buffer and either crashing the application or copying adjacent heap memory into the resulting PCX output. No public exploit identified at time of analysis; a vendor fix (commit b47e96b) is available.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 27, 2026

An out-of-bounds read in FFmpeg's PCX encoder (libavcodec/pcxenc.c, pcx_encode_frame) before version 9.1 lets the encoder read one byte past the end of the input frame buffer when an application encodes attacker-influenced images to PCX from tightly packed frames whose per-plane row width is odd. A successful trigger can crash the encoding application (high availability impact) or leak heap contents into the emitted PCX output (low confidentiality impact). The flaw is local, requires a specific prerequisite (tightly packed input frames plus attacker control over image width), and is not remotely reachable against a default network service; no public exploit code is identified in the available data, and EPSS/KEV signals were not provided.

RemediationAI

Upgrade to FFmpeg 9.1 or later, which contains the upstream fix commit b47e96b4eb50fef52cf1a9c7b0100a34cc05cce0 (pull request https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25690) correcting the source plane size handling in pcx_rle_encode so no byte beyond src_plane_size is read; distributors shipping FFmpeg libraries must rebuild dependent applications against the patched libavcodec. The commit is an upstream code fix referenced alongside the CVE; if a rebased distro backport is required, confirm with the distribution vendor that this commit is included before treating the package as fixed. Until patched builds are deployed, restrict PCX encoding to trusted or internally generated images rather than attacker-supplied content, and reject or constrain attacker-controlled image widths in the calling application - the trade-off is reduced functionality and possible rejection of legitimate odd-width PCX outputs. Where PCX output is not a business requirement, disable that encoder path entirely; this removes the exposure but breaks workflows that depend on PCX export. Applying the length check at the application layer by supplying padded (non-tightly-packed) frames mitigates the out-of-bounds read but shifts buffer handling responsibility onto the caller and must be verified for each integration.

Affected VersionsENISA

FFmpeg 0 <9.1

Affected Packages

euvd ffmpeg fix: 9.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PCX is a run-length-encoded legacy raster format, and FFmpeg's encoder in libavcodec/pcxenc.c converts a decoded AVFrame into PCX RLE data. The root cause is a length mismatch classified as CWE-125 (Out-of-Bounds Read): pcx_encode_frame derived line_bytes by rounding the per-row byte width up to an even value, then passed that padded size to pcx_rle_encode while the source frame was tightly packed (src_plane_size bytes per plane, no padding). Rows with an odd byte width therefore caused the run-length encoder to consume one byte beyond the plane, reading past the frame buffer. The upstream fix (commit b47e96b4eb50fef52cf1a9c7b0100a34cc05cce0, associated pull request 25690) separates src_plane_size from the padded line_bytes, threads the true source plane size into pcx_rle_encode, adds explicit zero-padding semantics for odd plane sizes, and factors run emission into put_run() with corrected destination-size accounting. The affected CPE is ffmpeg:ffmpeg across versions before 9.1; the referenced vulnerable code is visible at the n9.0.2 tag. The assessed vector (CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H) indicates local access, high attack complexity with a specific prerequisite, no privileges required, user interaction needed to trigger encoding, and impact limited to partial confidentiality loss and high availability loss in the encoding process.

Know when Ffmpeg gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (AISLE) PRIMARY 5.8 MEDIUM
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 5.3 MEDIUM

Local encoder-side bug needing attacker-controlled width plus tightly packed input (AV:L/AC:H) triggered via application processing (UI:R); heap leak is C:L and the crash is A:H.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:H
4.0 AV:L/AC:H/AT:P/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (AISLE).

CVSS VectorVendor: AISLE

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 27, 2026 - 14:01 EUVD
CVE Published
Nov 27, 2026 - 12:15 cve.org
MEDIUM 5.8

DescriptionCVE.org

FFmpeg before 9.1 contains an out-of-bounds read vulnerability in pcx_encode_frame() in libavcodec/pcxenc.c that rounds each row up to an even number of bytes and run-length encodes that many bytes from the input frame. Attackers who control the width of images encoded to PCX by an application that supplies tightly packed frames can make the encoder read past the end of the frame buffer, crashing the application or leaking heap contents into the output image.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Ubiquitous
FFmpeg is embedded in countless media apps, though PCX encoding is rarely exercised
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Ffmpeg

View all
CVE-2016-1897 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol

CVE-2017-9993 HIGH
7.5 Jun 28

FFmpeg before 2.8.12, 3.0.x and 3.1.x before 3.1.9, 3.2.x before 3.2.6, and 3.3.x before 3.3.2 does not properly restric

CVE-2016-1898 MEDIUM POC
5.5 Jan 15

FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco

CVE-2013-4265 CRITICAL POC
10.0 Nov 23

The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re

CVE-2020-12284 CRITICAL POC
9.8 Apr 28

cbs_jpeg_split_fragment in libavcodec/cbs_jpeg.c in FFmpeg 4.1 and 4.2.2 has a heap-based buffer overflow during JPEG_MA

CVE-2026-58049 HIGH POC
8.8 Jun 28

Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m

CVE-2026-30754 HIGH POC
8.8 Sep 08

Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap

CVE-2025-25469 HIGH POC
8.8 Feb 18

Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled

CVE-2021-38094 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker

CVE-2021-38093 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke

CVE-2021-38092 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

CVE-2021-38091 HIGH POC
8.8 Sep 20

Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy