CVE-2026-20889

LibRaw: LibRaw: Arbitrary code execution via specially crafted image 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 x3f_thumb_loader functionality of LibRaw 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 in LibRaw's x3f_thumb_loader functionality. A maliciously crafted image file can trigger an overflow that allows an attacker to execute arbitrary code within the context of the application that uses LibRaw. The flaw is classified under CWE-120 and CWE-190, indicating a vulnerability that involves improper memory handling and signed integer issues.

Affected Systems

The vulnerability affects LibRaw version 0.22.0 and earlier releases that contain the same commit. Applications that use LibRaw to process X3F images, such as photo editors, imaging tools, and other software that imports this format, are vulnerable when handling files from untrusted sources.

Risk and Exploitability

The CVSS score of 9.8 marks this issue as critical, while the EPSS score of less than 1% points to a currently low probability of exploitation. The likely attack vector is local file processing; however, if an application that incorporates LibRaw accepts uploaded images over a network, remote exploitation becomes possible. The vulnerability is not listed in the CISA KEV catalog, so no known widespread exploitation is documented.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor patch or update LibRaw to a version that includes the fix (e.g., any release newer than 0.22.0).
  • Temporarily avoid processing untrusted image files with LibRaw until the patch is applied.
  • Verify that applications using LibRaw do not accept user-supplied files from untrusted sources or implement input validation.

Generated by OpenCVE AI on April 10, 2026 at 23:09 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4704-1 libraw security update
Ubuntu USN Ubuntu USN USN-8522-1 LibRaw vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:2.3:a:libraw:libraw:0.22.0:*:*:*:*:*:*:*
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 image 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 x3f_thumb_loader functionality of LibRaw 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-190
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-190

    Integer Overflow or Wraparound

Sources

Status
PUBLISHED
Assigner
talos
Published
Updated
Jul 15, 2026, 1:20 AM
Reserved
Jan 26, 2026, 1:34 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