CVE-2026-20911

LibRaw: LibRaw: Arbitrary Code Execution via specially crafted file

Published Apr 7, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
A heap-based buffer overflow vulnerability exists in the HuffTable::initval 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.

Analysis

AI-generated

Technical impact

A heap‑based buffer overflow exists within LibRaw’s HuffTable::initval routine, allowing a specially crafted image file to corrupt memory and potentially execute arbitrary code. The vulnerability is tied to two specific commits and can be triggered by providing a malicious file to LibRaw. Successful exploitation would compromise the integrity and confidentiality of any application or system that imports the file, and could lead to full system takeover if the process runs with elevated privileges.

Affected Systems

The flaw affects the LibRaw image processing library, specifically versions 0.22.0 and 0.22.1. Any system or application using these versions is potentially vulnerable until patched or upgraded.

Risk and Exploitability

The CVSS base score of 9.8 marks this as a critical vulnerability, yet the EPSS score of less than 1% indicates low current exploitation probability. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires an attacker to supply a crafted file to a LibRaw instance; therefore, the likely attack vector is a local or unauthenticated file‑processing scenario where untrusted images are processed. If an application processes images from untrusted sources, the risk is amplified, as the attacker can gain code execution within that application’s context.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade LibRaw to a version later than 0.22.1, such as 0.22.2 or newer, which contains the necessary fix.
  • If upgrading immediately is not possible, restrict or quarantine the use of LibRaw in handling untrusted image files until a patch is applied.
  • Monitor logs and security alerts for signs of exploitation attempts or anomalous behaviors in applications that import images via LibRaw.

Generated by OpenCVE AI on April 10, 2026 at 22:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:libraw:libraw:0.22.0:*:*:*:*:*:*:*
cpe:2.3:a:libraw:libraw:0.22.1:*:*:*:*:*:*:*
Type Values Removed Values Added
First Time appeared Libraw
Libraw libraw
Vendors & Products Libraw
Libraw libraw
Type Values Removed Values Added
Title LibRaw: LibRaw: Arbitrary Code Execution via specially crafted file
Weaknesses CWE-120
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
Description A heap-based buffer overflow vulnerability exists in the HuffTable::initval 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.
Weaknesses CWE-131
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses
  • CWE-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-131

    Incorrect Calculation of Buffer Size

Sources

Status
PUBLISHED
Assigner
talos
Published
Updated
Jul 15, 2026, 1:20 AM
Reserved
Jan 21, 2026, 4:22 PM
Status
Modified
Published
Apr 7, 2026, 3:17 PM
Modified
Jul 15, 2026, 2:18 AM
Severity
Important
Public date
Apr 7, 2026, 1:49 PM