Skip to main content

Libraw EUVDEUVD-2026-18344

| CVE-2026-5342 MEDIUM
Out-of-bounds Read (CWE-125)
2026-04-02 VulDB GHSA-jp35-q64r-j6gf
5.5
CVSS 4.0 · Vendor: VulDB
View

Vulnerability Assessment

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

1 technique across 1 tactic: Collection

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

Impact

The CVSS 5.3 score reflects a low-complexity, unauthenticated network attack with no confidentiality or integrity impact, limited to availability (denial of service). The CVSS vector (AV:N/AC:L/PR:N/UI:N) confirms attack feasibility, while E:P (exploit proven/published) and RL:O (official fix available) are positive signals. The availability impact (A:L) is limited-an out-of-bounds read causes crash or information leak rather than system compromise. The existence of publicly available exploit code combined with low attack complexity elevates practical risk for organizations processing user-supplied images via LibRaw-dependent software (photo management tools, forensic platforms, cloud image services). However, impact is constrained to denial of service; confidentiality and integrity remain unaffected. This is a moderate-priority vulnerability that affects availability-critical image processing pipelines but not high-impact attack chains. Real-world severity depends heavily on whether the affected application is internet-facing and user-facing.

Exploit ScenarioDerived

An attacker crafts a malicious Nikon NEF image file with specially modified load_flags or raw_width values that exceed expected bounds. When a user or automated system processes this file using an application linked against LibRaw 0.22.0 or earlier (e.g., uploading a photo to a web-based image editor), the nikon_load_padded_packed_raw function performs an out-of-bounds read, causing the application to crash or potentially leak adjacent memory contents. Publicly available exploit code (GitHub POC at https://github.com/biniamf/pocs/tree/main/libraw_nikonpadded) demonstrates the attack is straightforward to execute; no user interaction or authentication is required beyond file delivery.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.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 02, 2026

Out-of-bounds read in LibRaw up to 0.22.0 allows remote unauthenticated attackers to cause denial of service via manipulation of load_flags or raw_width parameters in the TIFF/NEF decoder (nikon_load_padded_packed_raw function). Publicly available exploit code exists, and vendor-released patch version 0.22.1 is available. CVSS 5.3 with low availability impact and confirmed exploit publication indicates moderate real-world risk.

RemediationAI

Vendor-released patch: LibRaw version 0.22.1 or later. The upstream fix commit b8397cd45657b84e88bd1202528d1764265f185c is available at https://github.com/LibRaw/LibRaw/commit/b8397cd45657b84e88bd1202528d1764265f185c. All applications and tools that depend on LibRaw should upgrade to 0.22.1 or later. Organizations unable to upgrade immediately should restrict acceptance of untrusted NEF files or disable NEF processing in LibRaw-dependent applications. Validation of raw_width and load_flags parameters at application boundaries provides limited additional protection but is not a complete mitigation. Reference vendor advisory at https://github.com/LibRaw/LibRaw/issues/795 for additional technical details.

Affected VersionsENISA

LibRaw 0.9
LibRaw 0.8
LibRaw 0.15
LibRaw 0.16
LibRaw 0.14
LibRaw 0.1
LibRaw 0.7
LibRaw 0.17
LibRaw 0.13
LibRaw 0.20
LibRaw 0.12
LibRaw 0.18
LibRaw 0.5
LibRaw 0.19
LibRaw 0.11
LibRaw 0.22.0
LibRaw 0.2
LibRaw 0.3
LibRaw 0.10
LibRaw 0.6
LibRaw 0.4
LibRaw 0.21

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 C++ library for reading RAW image formats from digital cameras. The vulnerability exists in the Nikon NEF/TIFF decoder component, specifically in the nikon_load_padded_packed_raw function in src/decoders/decoders_libraw.cpp. The flaw is a CWE-125 (Out-of-bounds Read) that occurs when the load_flags or raw_width parameters are maliciously crafted, causing the decoder to read memory beyond allocated buffer boundaries. This affects any application that uses LibRaw to process untrusted Nikon NEF image files, as the library performs minimal validation of these parameters before using them for buffer indexing operations. The attack vector is network-based, requiring only delivery of a malicious NEF file to trigger the out-of-bounds read.

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 (VulDB) PRIMARY 5.5 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
SUSE 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Red Hat 5.3 MEDIUM

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
PoC Detected
Apr 07, 2026 - 12:16 vuln.today
Public exploit code
Patch released
Apr 02, 2026 - 15:00 nvd
Patch available
CVE Published
Apr 02, 2026 - 14:30 nvd
MEDIUM 5.5

DescriptionCVE.org

A flaw has been found in LibRaw up to 0.22.0. This affects the function LibRaw::nikon_load_padded_packed_raw of the file src/decoders/decoders_libraw.cpp of the component TIFF/NEF. Executing a manipulation of the argument load_flags/raw_width can lead to out-of-bounds read. It is possible to launch the attack remotely. The exploit has been published and may be used. Upgrading to version 0.22.1 mitigates this issue. This patch is called b8397cd45657b84e88bd1202528d1764265f185c. It is advisable to upgrade the affected component.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Exploit
POC
Public exploit code exists
Data Quality
9 sources
Confidence: High
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 Yes
EPSS 0.0%
Patch available Yes
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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

48
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: +20
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.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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

SUSE

Severity: Medium
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Affected
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS Affected

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