Improper Validation of Array Index Affecting LibRaw package, versions <0:0.21.1-2.el9_8


Severity

Recommended
high

Based on AlmaLinux security rating.

Threat Intelligence

EPSS
1.38% (72nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALMALINUX9-LIBRAW-16342222
  • published2 May 2026
  • disclosed19 May 2026

Introduced: 2 May 2026

CVE-2026-21413  (opens in a new tab)
CWE-129  (opens in a new tab)

How to fix?

Upgrade AlmaLinux:9 LibRaw to version 0:0.21.1-2.el9_8 or higher.
This issue was patched in ALSA-2026:19345.

NVD Description

Note: Versions mentioned in the description apply only to the upstream LibRaw package and not the LibRaw package as distributed by AlmaLinux. See How to fix? for AlmaLinux:9 relevant fixed versions and status.

A heap-based buffer overflow vulnerability exists in the lossless_jpeg_load_raw functionality of LibRaw Commit 0b56545 and Commit d20315b. A specially crafted malicious file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.

CVSS Base Scores

version 3.1