CVE-2026-5342
LibRaw: LibRaw: Out-of-bounds read via `load_flags/raw_width` argument manipulation
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · April 2, 2026
Updated · June 30, 2026
Description
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.
Statement
Moderate impact. A flaw in LibRaw allows a remote attacker to trigger an out-of-bounds read by manipulating load_flags or raw_width arguments when processing specially crafted raw image files. This can lead to application instability or a denial of service. Red Hat products utilizing LibRaw to process untrusted raw image files are affected.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
To mitigate this issue, avoid processing untrusted or maliciously crafted Nikon raw image files with applications that use LibRaw. This operational control prevents the exploitation of the out-of-bounds read vulnerability by limiting exposure to potentially harmful input.
CVSS / CWE
CVSS 3.1 · 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CWE-125 · Out-of-bounds Read