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.