All reports
Medium

LibRaw: LibRaw: Out-of-bounds read via `load_flags/raw_width` argument manipulation

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-5342

Probability of exploitation in the next 30 days: 0.78%

FIRST EPSS · 2026-11-20

Description

A flaw has been found in LibRaw up to 0.22.0. This affects the function LibRaw::nikon_load_padded_packed_raw of the file src/decoders/decoders_libraw.cpp of the component TIFF/NEF. Executing a manipulation of the argument load_flags/raw_width can lead to out-of-bounds read. It is possible to launch the attack remotely. The exploit has been published and may be used. Upgrading to version 0.22.1 mitigates this issue. This patch is called b8397cd45657b84e88bd1202528d1764265f185c. It is advisable to upgrade the affected component.

A flaw was found in LibRaw. A remote attacker could exploit this vulnerability by manipulating the load_flags or raw_width arguments within the LibRaw::nikon_load_padded_packed_raw function. This manipulation can lead to an out-of-bounds read, potentially causing application instability or a denial of service.