JLSEC-2026-2222: FFmpeg before 9.1 contains an out-of-bounds read vulnerability in pcx_encode_frame() in...
FFmpeg before 9.1 contains an out-of-bounds read vulnerability in pcxencodeframe() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/FFMPEG_jllto a version that resolves this vulnerability.Fixed in 9.1.0+0 - Upgrade
Upgrade
julia/FFMPEG_nogpl_jllto a version that resolves this vulnerability.Fixed in 9.1.0+0
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which applications are realistically exposed to this issue?
Applications using an affected FFmpeg build are exposed when they encode attacker-controlled images to PCX and supply tightly packed input frames. The vulnerable behavior is in the PCX encoder, so FFmpeg use that does not produce PCX output is not described as affected.
What must an attacker control to trigger the vulnerability?
The attacker needs to control the width of an image being encoded to PCX. Exploitation also depends on the application passing a tightly packed frame to the encoder.
What is the potential impact of successful exploitation?
The encoder can read beyond the end of the frame buffer. This can crash the application or disclose heap contents in the generated PCX image.
Is user interaction required?
The provided severity vector indicates user interaction is required. The description does not specify the particular user action needed in an affected application.