Incorrect Calculation of Buffer Size 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-15948722
  • published9 Apr 2026
  • disclosed7 Apr 2026
  • creditUnknown

Introduced: 7 Apr 2026

NewCVE-2026-20911  (opens in a new tab)
CWE-131  (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 Incorrect Calculation of Buffer Size in the initval process of HuffTable. An attacker can achieve arbitrary code execution or cause a denial of service by supplying a specially crafted malicious file.

CVSS Base Scores

version 4.0
version 3.1