Skip to main content

Libraw CVE-2026-24660

| EUVDEUVD-2026-19628 HIGH
Integer Overflow or Wraparound (CWE-190)
2026-04-07 talos GHSA-6mmg-qj2r-7jcf
8.1
CVSS 3.1 · Vendor: talos
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker crafts malicious image file
  2. Delivery
    LibRaw parses x3f_load_huffman function
  3. Exploit
    Heap buffer overflow triggered
  4. Execution
    Memory corruption occurs
  5. Impact
    Arbitrary code execution achieved

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Attacker must provide a specially crafted malicious file (likely X3F image format) to a victim or application using LibRaw Commit d20315b or earlier. The x3f_load_huffman function must process the file. No authentication required; victim interaction depends on deployment context (manual file opening vs. automated processing).

Impact

Real-world risk assessment reveals moderate-to-high concern despite the 8.1 CVSS score. The CVSS vector shows network attack vector (AV:N) with no privileges required (PR:N) and no user interaction (UI:N), enabling fully remote exploitation through malicious file delivery via web downloads, email attachments, or automated image processing pipelines. However, high attack complexity (AC:H) suggests exploitation requires precise manipulation of Huffman table structures and heap layout, increasing development difficulty. The integer overflow leading to heap corruption provides full impact (C:H/I:H/A:H), potentially enabling arbitrary code execution in the context of applications processing images. Cisco Talos disclosure indicates professional security research attention. Without EPSS scores or KEV status, exploitation probability remains theoretical, but the remote attack surface and high impact warrant prioritization for environments processing untrusted image files. Applications using LibRaw in automated workflows (content management systems, photo galleries, document converters) face elevated risk as they may process attacker-supplied files without user interaction. The high attack complexity somewhat mitigates urgency compared to simpler memory corruption bugs, but the remote, unauthenticated nature maintains significant risk for internet-facing services.

Exploit ScenarioDerived

An attacker crafts a malicious Sigma X3F raw image file with carefully manipulated Huffman table parameters designed to trigger an integer overflow during size calculations in LibRaw's x3f_load_huffman function. The attacker uploads this file to a photo sharing platform, content management system, or email service that uses LibRaw for thumbnail generation or format conversion. When the backend image processing service parses the malicious X3F file, the integer overflow causes allocation of an undersized heap buffer, followed by heap buffer overflow during Huffman table decompression. The attacker leverages heap corruption to overwrite adjacent memory structures, achieving arbitrary code execution in the context of the image processing service. No public exploit code identified at time of analysis, though the detailed Talos advisory provides sufficient technical information for exploit development by skilled attackers. High attack complexity requires deep understanding of X3F format internals and heap exploitation techniques, limiting immediate weaponization risk.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 07, 2026

Heap buffer overflow in LibRaw's x3f_load_huffman function (commit d20315b) allows remote attackers to achieve arbitrary code execution via malicious X3F image files. The vulnerability stems from an integer overflow (CWE-190) leading to heap corruption. CVSS 8.1 reflects high impact across confidentiality, integrity, and availability, though attack complexity is rated high. EPSS data not available; no CISA KEV listing indicates no confirmed active exploitation at time of analysis. Reported by Cisco Talos (TALOS-2026-2359), affecting LibRaw's Sigma X3F raw image parsing functionality.

RemediationAI

Primary remediation requires updating LibRaw to a patched version that addresses the integer overflow in x3f_load_huffman. Organizations should monitor the LibRaw GitHub repository and the Cisco Talos advisory at https://talosintelligence.com/vulnerability_reports/TALOS-2026-2359 for official patch releases and specific fixed version numbers. Until patches are available, implement defense-in-depth controls including disabling X3F format support if not operationally required, implementing file format validation before LibRaw processing, running image processing in sandboxed or containerized environments with limited privileges, and deploying memory corruption mitigations (ASLR, DEP/NX) on systems using LibRaw. For critical environments processing untrusted images, consider temporarily blocking X3F file uploads or switching to alternative raw processing libraries until patches are deployed. Application developers embedding LibRaw should review their integration for opportunities to validate file structure integrity before passing data to vulnerable parsing functions. Monitor LibRaw security advisories and CVE updates for release of fixed versions, then prioritize testing and deployment based on your environment's exposure to untrusted X3F files.

Affected VersionsENISA

LibRaw Commit d20315b

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

LibRaw is an open-source library for reading and processing raw image files from digital cameras, widely used in photo editing applications and image processing pipelines. The vulnerability resides in the x3f_load_huffman function responsible for parsing Huffman-encoded data within Sigma's proprietary X3F raw image format. The root cause is an integer overflow (CWE-190) during size calculations when processing Huffman table parameters from the X3F file structure. This overflow causes allocation of an insufficiently sized heap buffer, which is subsequently overflowed during data decompression or table population. The affected CPE (cpe:2.3:a:libraw:libraw) indicates the core LibRaw library itself is vulnerable, impacting any application that processes untrusted X3F files through LibRaw's parsing routines. The specific commit reference (d20315b) suggests this is a development-branch vulnerability that may affect recent unstable versions or pre-release code.

Know when Libraw gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (talos) PRIMARY 8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
SUSE HIGH
Red Hat 7.5 HIGH

Primary rating from Vendor (talos).

CVSS VectorVendor: talos

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch released
Apr 09, 2026 - 20:30 nvd
Patch available
CVE Published
Apr 07, 2026 - 13:49 nvd
HIGH 8.1

DescriptionCVE.org

A heap-based buffer overflow vulnerability exists in the x3f_load_huffman 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.

Executive ViewAI

Why It Matters

LibRaw versions prior to the fix contain a heap buffer overflow in X3F image file parsing that allows remote code execution when processing malicious raw image files. Organizations using LibRaw for image processing workflows face direct compromise risk, with potential impact to confidentiality, integrity, and system availability across affected systems.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: disable X3F file format support in affected applications; implement strict file-type whitelisting and reject X3F submissions; run LibRaw processing in isolated containerized or sandboxed environments with network restrictions; monitor process execution for heap corruption indicators.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

More in Libraw

View all
CVE-2018-20337 HIGH POC
8.8 Dec 21

There is a stack-based buffer overflow in the parse_makernote function of dcraw_common.cpp in LibRaw 0.19.1. Rated high

CVE-2013-2126 HIGH POC
7.5 Aug 14

Multiple double free vulnerabilities in the LibRaw::unpack function in libraw_cxx.cpp in LibRaw before 0.15.2 allow cont

CVE-2020-24889 HIGH POC
7.8 Sep 16

A buffer overflow vulnerability in LibRaw version < 20.0 LibRaw::GetNormalizedModel in src/metadata/normalize_model.cpp

CVE-2013-2127 HIGH POC
7.5 Aug 14

Buffer overflow in the exposure correction code in LibRaw before 0.15.1 allows context-dependent attackers to cause a de

CVE-2023-1729 MEDIUM POC
6.5 May 15

A flaw was found in LibRaw. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, no authenticat

CVE-2020-15365 MEDIUM POC
6.5 Jun 28

LibRaw before 0.20-Beta3 has an out-of-bounds write in parse_exif() in metadata\exif_gps.cpp via an unrecognized AtomNam

CVE-2018-20365 MEDIUM POC
6.5 Dec 22

LibRaw::raw2image() in libraw_cxx.cpp has a heap-based buffer overflow. Rated medium severity (CVSS 6.5), this vulnerabi

CVE-2018-20364 MEDIUM POC
6.5 Dec 22

LibRaw::copy_bayer in libraw_cxx.cpp in LibRaw 0.19.1 has a NULL pointer dereference. Rated medium severity (CVSS 6.5),

CVE-2018-20363 MEDIUM POC
6.5 Dec 22

LibRaw::raw2image in libraw_cxx.cpp in LibRaw 0.19.1 has a NULL pointer dereference. Rated medium severity (CVSS 6.5), t

CVE-2017-14265 CRITICAL
9.8 Sep 11

A Stack-based Buffer Overflow was discovered in xtrans_interpolate in internal/dcraw_common.cpp in LibRaw before 0.18.3.

CVE-2017-6886 CRITICAL
9.8 May 16

An error within the "parse_tiff_ifd()" function (internal/dcraw_common.cpp) in LibRaw versions before 0.18.2 can be expl

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Desktop Applications 15 SP7 Fixed
SUSE Linux Enterprise Module for Package Hub 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy