Uninitialized memory disclosure in FFmpeg JPEG-LS decoder

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-125243?

CVE-2026-125243 is a vulnerability classified as Use of Uninitialized Resource, affecting FFmpeg (affected versions: ≤ 9.0.2). This vulnerability is rated Medium, with a CVSS score of 4.8. Current sources do not report this vulnerability as exploited.

Overview

Original source data

FFmpeg through 9.0.2 contains an uninitialized memory disclosure vulnerability in ff_jpegls_decode_picture() in libavcodec/jpeglsdec.c, which decodes 16-bit line-interleaved JPEG-LS scans as 8-bit samples. Attackers can supply a crafted single-component JPEG-LS image with the ILV byte set to 1, causing decoded GRAY16 frames to expose leftover heap memory.

Affected products and scope

All released versions of FFmpeg up to and including the latest version covered by the advisory are affected. The vulnerability is in the JPEG-LS decoder component of libavcodec. Deployments that do not decode JPEG-LS images are not affected.

Technical details

The flaw is in the JPEG-LS decoder within libavcodec, specifically in the function ff_jpegls_decode_picture in jpeglsdec.c. When a 16-bit line-interleaved JPEG-LS scan is decoded as 8-bit samples, a code path leaves a buffer partially uninitialized. By crafting a single-component JPEG-LS image with the ILV (interleaving value) byte set to 1, an attacker triggers this path. The resulting GRAY16 output frames contain data from prior heap allocations rather than a zeroed or fully written buffer.

Exploitability

The attack vector is local. The target must open a crafted file, so user interaction is required. No authentication is needed. No public exploit code has been reported, and there is no known exploitation in the wild.

Technical impact

An attacker gains access to leftover heap memory that appears in decoded video frames. The confidentiality impact is low: the amount and type of data exposed depends on what was previously allocated in that heap region. There is no integrity or availability impact.

Business impact

Organisations that use FFmpeg to decode untrusted media files (transcoding pipelines, media processing services, video conferencing backends) face a low-severity information disclosure risk. An attacker who can get a user or automated service to open a crafted image file could cause leftover heap memory to appear in decoded output frames. The practical risk depends on what data resides in adjacent heap allocations at the time of decoding. No integrity or availability impact is possible through this vulnerability.

Remediation

A patch is available from the FFmpeg project. Apply the update. As a mitigation until the patch is applied, restrict JPEG-LS decoding for untrusted input if your application supports disabling specific codecs.

Detection

Look for decoded JPEG-LS frames that contain data patterns inconsistent with expected image content. Monitor for crafted JPEG-LS files being opened in environments where FFmpeg processes untrusted media. Check transcode logs for GRAY16 output produced from single-component JPEG-LS inputs.

Sources (10)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.