Skip to main content

LibRaw EUVDEUVD-2026-133100

| CVE-2026-135176 MEDIUM
Out-of-bounds Write (CWE-787)
2026-11-23 VulnCheck GHSA-2hh2-8359-9qc2
5.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Craft malicious X-Trans raw file
  2. Delivery
    Deliver to victim using LibRaw app
  3. Exploit
    Victim processes with denoise/CA correction enabled
  4. Execution
    Out-of-bounds write past destimage buffer
  5. Impact
    Heap corruption and process crash

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Exploitation requires BOTH that the host application using LibRaw has wavelet denoising threshold OR chromatic aberration (CA) correction enabled - these are the specific processing options that drive the xtrans_interpolate() code path - AND that an attacker-supplied, crafted X-Trans (Fuji) raw file is actually processed by the library. Limiting factors that reduce realistic risk: the vector is local/file-based (no network trigger), a user or application action is needed to ingest the malicious file (UI:P), and the vulnerable interpolation only runs for X-Trans sensor data with the above correction features turned on rather than in a bare default decode. Applications that never enable denoise-threshold or CA correction, or that never process X-Trans files, are not exposed on this path.

Impact

This is a genuine memory-corruption defect but signals point to a moderate, not urgent, priority. The CVSS 4.0 base score is 5.8 (medium), and the vector itself is loaded with mitigating factors: AV:L (the attacker cannot reach the code over a network - a crafted file must be processed locally), AC:H and AT:P (the trigger depends on specific non-default processing conditions), and UI:P (a user/application must actually feed the file into the decoder). Impact is limited to integrity and availability of the vulnerable system (VI:H/VA:H) with no confidentiality loss (VC:N) and no scope change - consistent with a heap out-of-bounds WRITE (CWE-787) that corrupts memory and crashes the process rather than leaking data. The vuln.today decision label is 'this_month' (not act_now/emergency), reinforcing a planned-remediation posture. KEV=NO, so there is no confirmed active exploitation, and no EPSS score was provided in the input - that exploitation-probability signal is MISSING and cannot be weighed. No input field marks a working PoC as confirmed; the only exploitation-adjacent artifact is the upstream GitHub bug report (issue #894), which is a vendor-tracked defect report, not verified weaponized exploit code. Net: a real, verifiable bug worth patching on a normal cycle, but the local vector plus required non-default options (wavelet denoise threshold or CA correction) substantially constrain real-world mass exploitation.

Exploit ScenarioDerived

An attacker crafts a malicious Fuji X-Trans raw file and gets a victim to open it in an application built on LibRaw 0.22.3 that has wavelet denoising (threshold) or chromatic aberration correction enabled. During xtrans_interpolate(), file-derived pixel values are written past the undersized destimage heap allocation, corrupting heap memory and crashing the process. No input field confirms working public exploit code; the upstream GitHub issue (#894) documents the defect and may include a reproducer, but it is not verified as a working exploit.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 23, 2026

Heap out-of-bounds write in LibRaw 0.22.3's xtrans_interpolate() demosaic routine, reachable when a host application processes a crafted X-Trans (Fuji) raw file while wavelet denoising threshold or chromatic aberration correction is enabled. The destination image buffer is allocated from halved iwidth/iheight dimensions but indexed using full-width coordinates, so file-derived pixel values are written past the end of the allocation, corrupting heap memory and typically crashing the process. No public exploit code or confirmed active exploitation was identified at time of analysis, and the CVSS 4.0 score of 5.8 plus the assessed 3.1 vector (AV:L/AC:H/PR:N/UI:R) place this at moderate priority - exploitation requires a local file-based trigger, user or application action to ingest the malicious raw, and non-default processing options being enabled.

RemediationAI

No vendor-released patch or fixed version was identified at time of analysis; the upstream GitHub issue at https://github.com/LibRaw/LibRaw/issues/894 is the tracking point for a fix, and the code reference at https://github.com/LibRaw/LibRaw/blob/0.22.3/src/demosaic/xtrans_demosaic.cpp#L176-L179 identifies the faulty sizing logic for anyone backporting a correction (aligning the destimage allocation with the full-width indexing). Until a patched release is available, the effective compensating control is to disable the two options that open the vulnerable path - wavelet denoising threshold and chromatic aberration correction - in any application using LibRaw to decode X-Trans files; the trade-off is reduced image quality (noise and colour fringing are no longer corrected). Where those features must remain enabled, restrict processing of untrusted X-Trans/Fuji raw files to a sandboxed, low-privilege worker process so that heap corruption is contained to that process rather than the host application; the trade-off is added sandboxing complexity and potential breakage of file or plugin access. Vendors embedding LibRaw should also monitor the referenced advisory and issue for the upstream fix and ship an updated library build when it lands.

Affected VersionsENISA

LibRaw 0.22.3 ≤0.22.3

Affected Packages

euvd libraw no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

LibRaw is a widely embedded library for reading and decoding raw camera formats, used by image viewers, converters, DAM tools and thumbnailers. xtrans_interpolate() is the demosaicing routine for Fujifilm X-Trans sensors, whose non-Bayer 6x6 colour filter array requires a dedicated interpolation pass rather than standard Bayer demosaicing. Per the vendor-referenced source at src/demosaic/xtrans_demosaic.cpp (lines 176-179), the destimage buffer is dimensioned from halved iwidth/iheight while indexing proceeds at full width, a size/index mismatch classified as CWE-787 (out-of-bounds write). The write payload consists of pixel values derived from the input file, so heap contents beyond the allocation can be overwritten with attacker-influenced data. The vulnerable path is not the bare default decode: it is entered only when the calling application enables the wavelet denoising threshold or chromatic aberration correction options alongside X-Trans input. The assessed vector (CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H) reflects a local, non-network trigger with high attack complexity and required user interaction, with impact limited to integrity and availability of the consuming process; per that assessment, applications that never enable these options or never process X-Trans files are not exposed on this code path.

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 (VulnCheck) PRIMARY 5.8 MEDIUM
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 6.3 MEDIUM

Local crafted-file vector (AV:L); trigger needs non-default denoise/CA options on X-Trans data (AC:H) and a user to open the file (UI:R); heap write corrupts memory and crashes but leaks no data (C:N, I:H, A:H).

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 6.3 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

LibRaw 0.22.3 contains a heap out-of-bounds write vulnerability in LibRaw::xtrans_interpolate() that allows attackers to corrupt heap memory via crafted X-Trans raw files. When wavelet denoising threshold or chromatic aberration correction is enabled, the destimage buffer is sized from halved iwidth/iheight but indexed at full width, causing writes of file-derived pixel values beyond the allocation and crashes.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
popular open-source raw-image library embedded in many photo applications
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

29
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +29
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.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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-2026-21413 CRITICAL
9.8 Apr 07

Heap-based buffer overflow in LibRaw's lossless JPEG processing (commits 0b56545 and d20315b) allows unauthenticated rem

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

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