Improper Validation of Array Index Affecting libraw package, versions [,0.22.1)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (17th 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-CONAN-LIBRAW-15948682
  • published9 Apr 2026
  • disclosed7 Apr 2026
  • creditUnknown

Introduced: 7 Apr 2026

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

How to fix?

Upgrade libraw to version 0.22.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Array Index in the lossless_jpeg_load_raw function. An attacker can execute arbitrary code or cause a denial of service by supplying a specially crafted file.

CVSS Base Scores

version 4.0
version 3.1