Skip to main content

Libraw EUVDEUVD-2026-18116

| CVE-2026-5318 LOW
Out-of-bounds Write (CWE-787)
2026-04-02 VulDB GHSA-8qw7-rqx6-9gqj
2.1
CVSS 4.0 · NVD
View

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.

Impact

Risk is moderate despite the low CVSS score of 4.3. The CVSS vector (AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L) indicates network-accessible, low-complexity exploitation requiring user interaction (opening a malicious image), with availability impact only-no confidentiality or integrity breach. However, the 'E:P' indicator in the vector confirms publicly available exploit code, increasing real-world risk. The out-of-bounds write could potentially be leveraged for memory corruption or code execution by skilled attackers despite CVSS not crediting confidentiality/integrity impact; this represents a limitation of the CVSS 3.1 scoring for memory corruption issues. LibRaw is widely integrated into image processing applications, photo libraries, and forensics tools. Organizations using LibRaw for automated batch image processing face application-level DoS risk. No SSVC automatable vector confirmed, but the public POC and remote attack vector warrant prioritized patching in internet-facing or user-facing image processing services.

Exploit ScenarioDerived

An attacker crafts a malicious JPEG image file with a specially formed DHT (Huffman Definition Table) segment that causes the bits[] array bounds check to fail during parsing. When a victim or automated service opens or processes this image using LibRaw ≤0.22.0 (e.g., via a photo viewer, batch image converter, or forensics tool), the out-of-bounds write overwrites adjacent memory, triggering a crash or potential memory corruption. Publicly available POC code on GitHub (https://github.com/biniamf/pocs/tree/main/libraw_lljpeg) demonstrates this attack; exploitation requires only that the victim open the malicious file, without advanced attacker privileges.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.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 write in LibRaw's JPEG DHT parser (HuffTable::initval function) allows unauthenticated remote attackers to trigger a denial of service via malformed JPEG image files. LibRaw versions up to 0.22.0 are affected; publicly available exploit code exists. CVSS 4.3 (low severity) reflects denial-of-service impact only, with low attack complexity and no authentication required. Vendor-released patch available in version 0.22.1.

RemediationAI

Vendor-released patch: LibRaw 0.22.1. Users should upgrade immediately from any version ≤0.22.0 to 0.22.1 or later. For applications and distributions that bundle LibRaw, coordinate with upstream maintainers to pull the patched version. The specific upstream commit hash a6734e867b19d75367c05f872ac26322464e3995 fixes the out-of-bounds write in HuffTable::initval by enforcing proper bounds checking on the bits[] array during JPEG DHT parsing. As a temporary workaround (if upgrade is not immediately feasible), disable JPEG lossless processing in applications or restrict image file uploads to validated, known-good sources. Monitor https://github.com/LibRaw/LibRaw for release announcements.

Affected VersionsENISA

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

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 an open-source library for reading raw digital camera files and processing JPEG/LOSSLESS-JPEG data. The vulnerability exists in the HuffTable::initval() function within src/decompressors/losslessjpeg.cpp, which parses Huffman Definition Tables (DHT) from JPEG headers. The flaw is a CWE-787 out-of-bounds write: improper bounds checking on the bits[] array parameter allows attackers to write beyond allocated buffer boundaries when processing malformed JPEG DHT segments. This is a classic buffer overflow in a parser component that processes untrusted image data.

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

NVD PRIMARY 2.1 LOW
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
SUSE 4.3 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
Red Hat 6.5 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
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

5
Severity Changed
Apr 29, 2026 - 01:11 NVD
MEDIUM LOW
CVSS changed
Apr 29, 2026 - 01:11 NVD
5.3 (MEDIUM) 2.1 (LOW)
PoC Detected
Apr 07, 2026 - 12:16 vuln.today
Public exploit code
Patch released
Apr 02, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 02, 2026 - 01:45 nvd
MEDIUM 5.3

DescriptionCVE.org

A weakness has been identified in LibRaw up to 0.22.0. This impacts the function HuffTable::initval of the file src/decompressors/losslessjpeg.cpp of the component JPEG DHT Parser. This manipulation of the argument bits[] causes out-of-bounds write. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be used for attacks. Upgrading to version 0.22.1 will fix this issue. Patch name: a6734e867b19d75367c05f872ac26322464e3995. It is advisable to upgrade the affected component.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% 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 LOW
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

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

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

Debian

libraw
Release Status Fixed Version Urgency
bullseye vulnerable 0.20.2-1+deb11u1 -
bullseye (security) vulnerable 0.20.2-1+deb11u2 -
bookworm vulnerable 0.20.2-2.1+deb12u1 -
trixie vulnerable 0.21.4-2 -
forky, sid vulnerable 0.21.5b-1 -
(unstable) fixed (unfixed) -

SUSE

Severity: Medium
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