JLSEC-2026-2316: LibRaw through 0.22.3 contains an out-of-bounds read vulnerability in LibRaw:...
LibRaw through 0.22.3 contains an out-of-bounds read vulnerability in LibRaw::pentax4shotloadraw() that allows attackers to crash applications by scanning tiffifd[] 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 LIBRAWRAWOPTIONSPENTAXPSALLFRAMES is enabled.
Affected Software
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
What conditions are required for exploitation?
An attacker must be able to provide a crafted four-frame Pentax DNG for the application to scan. The vulnerable path is reached only when LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES is enabled and the file has too few IFDs matching the raw dimensions.
Are applications using LibRaw affected by default?
The provided information identifies the vulnerable behavior only when LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES is enabled. It does not establish whether that option is enabled by default.
What can be done if an update is not immediately available?
Disable LIBRAW_RAWOPTIONS_PENTAX_PS_ALLFRAMES where possible, and avoid processing untrusted four-frame Pentax DNG files. The described impact is application denial of service through a crash.