Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply odd-byte-width image to PCX-encoding app
-
DeliveryApplication invokes FFmpeg pcx_encode_frame on tightly packed frame
-
ExploitRow padded up to even byte count
-
ExecutionEncoder reads past end of frame buffer
-
ImpactApplication 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (AISLE).
CVSS VectorVendor: AISLE
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the concat protocol
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
FFmpeg 2.x allows remote attackers to conduct cross-origin attacks and read arbitrary files by using the subfile protoco
The av_reallocp_array function in libavutil/mem.c in FFmpeg before 2.0.1 has an unspecified impact and remote vectors re
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
Out-of-bounds heap write in FFmpeg's RASC video decoder (decode_dlta in libavcodec/rasc.c) allows attackers to corrupt m
Memory corruption in FFmpeg before 8.1 allows an attacker who can supply a crafted H.264/HEVC media file to corrupt heap
Memory exhaustion in FFmpeg git-master builds before commit d5873b can occur when a victim processes attacker-controlled
Integer Overflow vulnerability in function filter_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacker
Integer Overflow vulnerability in function filter_robert in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attacke
Integer Overflow vulnerability in function filter_prewitt in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
Integer Overflow vulnerability in function filter16_sobel in libavfilter/vf_convolution.c in Ffmpeg 4.2.1, allows attack
EUVD-2026-137205
GHSA-3wrg-xc52-xf53
NVD
CVE.org
EPSS
Exploit-DB