CVE-2026-135177

LibRaw through 0.22.3 Out-of-Bounds Read via pentax_4shot_load_raw

Published Nov 23, 2026 CVSS 4.0 · 5.7 Medium EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

LibRaw through 0.22.3 has an out‑of‑bounds read in the pentax_4shot_load_raw function that can be triggered by sending a specially crafted four‑frame Pentax DNG file with too few image file directory (IFD) entries. The function scans a tiff_ifd array beyond its 10‑entry limit when LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES is enabled, resulting in a crash of any application that loads the file. The affected code path satisfies CWE‑125: Out‑of‑bounds Read.

Affected Systems

The vulnerability resides in the LibRaw library, affecting all releases up to and including 0.22.3. Applications that embed this library for processing photographic raw files are impacted, regardless of vendor, when they enable the pentax four‑shot processing option.

Risk and Exploitability

With a CVSS score of 5.7 the flaw is considered medium severity. The EPSS score is not available and the issue is not listed in CISA’s KEV catalog. Exploitation requires the attacker to provide a malicious DNG file to a susceptible application that calls pentax_4shot_load_raw with the all‑frames option enabled. The attack vector is therefore likely a local or remote file ingestion scenario where untrusted media is processed by the vulnerable library.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to a LibRaw version where the pentax_4shot_load_raw out‑of‑bounds read is fixed.
  • If upgrading is not immediately possible, disable the LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES processing flag when handling Pentax 4‑shot DNG files.
  • Introduce input validation so that the number of IFD entries matches the expected raw dimensions before calling pentax_4shot_load_raw.

Generated by OpenCVE AI on November 23, 2026 at 15:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title LibRaw through 0.22.3 Out-of-Bounds Read via pentax_4shot_load_raw
First Time appeared Libraw
Libraw libraw
Weaknesses CWE-125
CPEs cpe:2.3:a:libraw:libraw:*:*:*:*:*:*:*:*
Vendors & Products Libraw
Libraw libraw
References
Metrics cvssV3_1

{'score': 4.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 5.7, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 23, 2026, 4:02 PM
Reserved
Nov 23, 2026, 2:20 PM
Status
Deferred
Published
Nov 23, 2026, 3:17 PM
Modified
Nov 23, 2026, 4:17 PM