Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious X-Trans raw file
-
DeliveryDeliver to victim using LibRaw app
-
ExploitVictim processes with denoise/CA correction enabled
-
ExecutionOut-of-bounds write past destimage buffer
-
ImpactHeap 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
There is a stack-based buffer overflow in the parse_makernote function of dcraw_common.cpp in LibRaw 0.19.1. Rated high
Multiple double free vulnerabilities in the LibRaw::unpack function in libraw_cxx.cpp in LibRaw before 0.15.2 allow cont
A buffer overflow vulnerability in LibRaw version < 20.0 LibRaw::GetNormalizedModel in src/metadata/normalize_model.cpp
Buffer overflow in the exposure correction code in LibRaw before 0.15.1 allows context-dependent attackers to cause a de
Heap-based buffer overflow in LibRaw's lossless JPEG processing (commits 0b56545 and d20315b) allows unauthenticated rem
A flaw was found in LibRaw. Rated medium severity (CVSS 6.5), this vulnerability is remotely exploitable, no authenticat
LibRaw before 0.20-Beta3 has an out-of-bounds write in parse_exif() in metadata\exif_gps.cpp via an unrecognized AtomNam
LibRaw::raw2image() in libraw_cxx.cpp has a heap-based buffer overflow. Rated medium severity (CVSS 6.5), this vulnerabi
LibRaw::copy_bayer in libraw_cxx.cpp in LibRaw 0.19.1 has a NULL pointer dereference. Rated medium severity (CVSS 6.5),
LibRaw::raw2image in libraw_cxx.cpp in LibRaw 0.19.1 has a NULL pointer dereference. Rated medium severity (CVSS 6.5), t
A Stack-based Buffer Overflow was discovered in xtrans_interpolate in internal/dcraw_common.cpp in LibRaw before 0.18.3.
An error within the "parse_tiff_ifd()" function (internal/dcraw_common.cpp) in LibRaw versions before 0.18.2 can be expl
EUVD-2026-133100
GHSA-2hh2-8359-9qc2
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB