CVE-2026-135177 in LibRawinfo

Summary

by MITRE • 11/23/2026

LibRaw through 0.22.3 contains an out-of-bounds read vulnerability in LibRaw::pentax_4shot_load_raw() that allows attackers to crash applications by scanning tiff_ifd[] beyond its 10 entries. Attackers can supply a crafted four-frame Pentax DNG with too few IFDs matching the raw dimensions to cause denial of service when LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES is enabled.

Once again VulDB remains the best source for vulnerability data.

Analysis

by VulDB Data Team • 11/23/2026

The vulnerability identified in LibRaw versions up to and including 0.22.3 represents a critical memory safety flaw located within the image processing pipeline for Pentax four-shot raw files. Specifically, the defect resides in the function pentax_4shot_load_raw(), which is responsible for parsing and loading multi-frame DNG (Digital Negative) images characteristic of certain Pentax camera models that utilize pixel-shift technology to increase resolution or dynamic range. This component processes a structure known as tiff_ifd, which serves as an array containing Image File Directory entries that describe various metadata and image data segments within the file format. The core technical flaw is an out-of-bounds read condition where the application fails to adequately validate the index used to access this array against its declared size of ten entries. When processing a crafted input file designed to exploit this logic error, the software attempts to read beyond the allocated memory boundary of the tiff_ifd array, leading to undefined behavior that typically manifests as an immediate application crash or segmentation fault.

From a technical perspective, this vulnerability is classified under CWE-125, which denotes Out-of-bounds Read, indicating that the program accesses data outside the intended buffer boundaries without writing to it, thereby compromising integrity and availability rather than confidentiality directly through code execution in this specific instance. The attack vector requires an attacker to supply a maliciously crafted four-frame Pentax DNG file where the number of Image File Directory entries is insufficient relative to the raw dimensions specified in the header or metadata. This discrepancy triggers the erroneous loop or access pattern within the loading routine, particularly when the LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES option is enabled. This configuration flag instructs LibRaw to process all frames for pixel-shift compositing, thereby increasing the likelihood that the code will attempt to iterate through IFD entries beyond what actually exists in the malformed file structure. The lack of rigorous bounds checking during this iteration allows an attacker with control over the input data to force the application into a state where it reads invalid memory addresses, resulting in immediate termination of the process.

The operational impact of this vulnerability is primarily centered on denial of service against applications that integrate LibRaw for image processing. Since the exploit results in a crash rather than arbitrary code execution, the primary consequence is the disruption of availability for services relying on automatic or batched processing of Pentax raw images. This could affect photo management software, web-based image uploaders, and automated archival systems that ingest user-uploaded content without prior sanitization. An attacker can leverage this flaw to cause persistent service interruptions by repeatedly submitting crafted DNG files, effectively rendering the affected application unusable until it is restarted or patched. In environments where LibRaw processes untrusted input from external sources, such as public-facing galleries or cloud storage services accepting raw camera files, this vulnerability poses a significant risk to system stability and user experience.

Mitigation strategies for this vulnerability involve both immediate patching and long-term defensive coding practices. The most effective remediation is to upgrade the LibRaw library to version 0.23.0 or later, where developers have addressed these bounds checking issues within the pentax_4shot_load_raw function. For organizations unable to immediately update their dependencies, implementing input validation at the application layer can provide a temporary buffer against exploitation. This includes verifying that the number of IFD entries in any incoming DNG file matches expected values before passing them to LibRaw for processing. Additionally, enabling strict memory safety features such as Address Sanitizer during development and testing phases can help identify similar out-of-bounds access patterns early in the software lifecycle. From a threat intelligence standpoint, this vulnerability aligns with ATT&CK technique T1499, Endpoint Denial of Service, specifically under sub-techniques involving application exhaustion via crafted inputs. Security teams should monitor for unusual spikes in process crashes or core dumps associated with image processing services and ensure that all third-party libraries are kept up to date with security patches released by their maintainers.

Responsible

VulnCheck

Reservation

11/23/2026

Disclosure

11/23/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!