Skip to main content

LibRaw CVE-2026-135167

| EUVDEUVD-2026-133071 MEDIUM
Out-of-bounds Read (CWE-125)
2026-11-23 VulnCheck GHSA-898r-59mp-8c4h
6.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Deliver crafted Sony ARW/TIFF raw file
  2. Exploit
    Victim app decodes YCbCr lossless JPEG stream
  3. Execution
    Oversized Huffman symbols trigger OOB read in HuffTable::len()
  4. Impact
    Application crashes (denial of service)

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.

Exploitation Conditions

Exploitation requires the victim to open or import an attacker-supplied raw image file (Sony TIFF/ARW) containing a YCbCr lossless JPEG stream with oversized Huffman DC symbols, using an application that links a vulnerable LibRaw (0.22.0 through 0.22.3); the specific trigger is the Sony lossless-JPEG decode path through parse_dht() and HuffTable::len(). No authentication or privileges are needed (PR:N). Limiting factors: the vector is local/file-based (AV:L), it requires user interaction to process the file (UI:P), it is constrained to the affected version range, and the impact is limited to a crash (denial of service) with no code execution or data disclosure.

Impact

This is a medium-severity, availability-only issue, and the signals are internally consistent in pointing to limited real-world urgency rather than an emergency. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H) describes a local, file-driven flaw: the attacker does not need privileges but does need the victim to process a crafted file (UI:P), and the only impact is availability (VA:H) - a crash/denial of service with no confidentiality or integrity effect. The vuln.today Decision label is 'this_month', not act_now or emergency, which aligns with the DoS-only impact. There is no KEV listing and no EPSS score in the supplied data, so there is no evidence of active or probable exploitation; absence of these is not itself an error, but it means exploitation likelihood cannot be quantified from the input. No reference is marked as confirmed working exploit code, so no public exploit is identified at this time. The one conflicting signal is the 'Information Disclosure' tag: it contradicts both the CVSS (VC:N - no confidentiality impact) and the description, which states the out-of-bounds read only crashes the application. Treat this as a crash/DoS bug, not an info-leak, unless a vendor source says otherwise. Net: a legitimate but non-critical issue - patch on a routine cycle for any product that decodes untrusted raw image files with LibRaw 0.22.0-0.22.3.

Exploit ScenarioDerived

An attacker crafts a malicious Sony raw image (TIFF/ARW) containing a YCbCr lossless JPEG stream with oversized Huffman DC symbols and delivers it to a victim (e.g., as an email attachment or web download). When the victim opens or imports the file in any application that uses a vulnerable LibRaw build to decode it, parse_dht() stores unvalidated symbols and HuffTable::len() performs a heap out-of-bounds read, crashing the application. No public exploit is identified at time of analysis; triggering requires only that the victim process the file (UI:P), with no authentication.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 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 read in LibRaw 0.22.0 through 0.22.3 is a medium-severity issue that can crash applications decoding attacker-supplied Sony TIFF/ARW files, resulting in a local denial of service. The flaw sits in the lossless-JPEG Huffman-table path, where oversized DC symbols are stored without validation and later used to index the table; no authentication or privileges are required, but the victim must open or import the crafted raw image, and the assessed impact is availability-only. No public exploit identified at time of analysis and no CISA KEV confirmation is supplied; the vendor patch is available and the priority decision is this_month.

RemediationAI

Apply the vendor patch or upgrade LibRaw to a build that includes commit d270dbf557ff1f68757e1b93a84b91c3c1a13ce7; the supplied data says a patch is available from the vendor but does not state an exact fixed release version. Verify that the fixed build contains the HuffTable mask field and the hufftable[code & mask] lookup in internal/losslessjpeg.h and src/decompressors/losslessjpeg.cpp. No vendor-documented workaround is included in the supplied references; because exploitation requires the victim to open the crafted TIFF/ARW file, limiting processing of untrusted raw images reduces exposure but is not a substitute for the patch. Vendor advisory: https://www.vulncheck.com/advisories/libraw-0.22.0-through-0.22.3-out-of-bounds-read-via-hufftable-len; upstream issue: https://github.com/LibRaw/LibRaw/issues/892.

Affected VersionsENISA

LibRaw 0.22.0 ≤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 library for decoding raw camera formats, and the affected code is the lossless-JPEG Huffman decoder used for Sony YCbCr lossless streams in TIFF/ARW files. The root cause is CWE-125: parse_dht() accepts Huffman DC symbols without validating them as difference categories, and HuffTable::len() then uses the resulting code as an index into the Huffman table. The supplied fix commit d270dbf557ff1f68757e1b93a84b91c3c1a13ce7 adds a mask field to HuffTable, initializes it in initval() as (1U << nbits) - 1, and changes the lookup to hufftable[code & mask], bounding the index to the valid bit width. The vulnerability is a read-only out-of-bounds access that can crash the decoding process; the authoritative assessment records C:N/I:N/A:H, so no code execution or data disclosure is confirmed, even though the tag list includes Information Disclosure. The supplied CVSS 4.0 score is 6.8 (AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N), and the independent CVSS 3.1 assessment is AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.

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

File must be opened by the victim, so AV:L and UI:R; no privileges (PR:N); out-of-bounds read only crashes the app, so C:N/I:N and A:H.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

LibRaw 0.22.0 through 0.22.3 contains a heap out-of-bounds read vulnerability in HuffTable::len() because parse_dht() stores Huffman DC symbols without validating them as difference categories. Attackers can supply a crafted TIFF/ARW file with oversized Huffman symbols in a Sony YCbCr lossless JPEG stream to crash applications decoding it, causing denial of service.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Medium
popular raw-image decoding library embedded in many photo apps
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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 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
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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

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

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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

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