Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.6%top 53%

CVE-2026-5318: Out-of-bounds Write in LibRaw

0
Medium
VulnerabilityCVE-2026-5318cvecve-2026-5318
Published: 04/02/2026 (04/02/2026, 01:45:12 UTC)
Source: CVE Database V5
Product: LibRaw

Description

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.

CVSS v4.0

Score 5.3medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →ai
libraw/LibRaw
pkg:github/libraw/LibRaw
Affected versions
=0.1=0.2=0.3=0.4=0.5=0.6=0.7=0.8=0.9=0.10=0.11=0.12=0.13=0.14=0.15=0.16=0.17=0.18=0.19=0.20=0.21=0.22.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/09/2026, 22:30:56 UTC

Technical Analysis

This vulnerability in LibRaw affects versions up to 0.22.0 and is caused by an out-of-bounds write in the HuffTable::initval function of the JPEG DHT Parser component. The flaw arises from manipulation of the bits[] argument, which leads to memory corruption. The vulnerability is remotely exploitable without privileges or user interaction. A public exploit exists. The issue is fixed in version 0.22.1 by patch a6734e867b19d75367c05f872ac26322464e3995.

Potential Impact

Successful exploitation of this vulnerability could allow an attacker to perform an out-of-bounds write, potentially leading to memory corruption. This may result in application crashes or other undefined behavior. The CVSS 4.0 base score is 5.3 (medium severity), indicating limited but notable impact. There is no indication of privilege escalation or confidentiality/integrity/availability loss beyond the out-of-bounds write.

Mitigation Recommendations

An official fix is available by upgrading LibRaw to version 0.22.1, which addresses this vulnerability. It is strongly recommended to apply this update to affected systems. No additional mitigations are specified or required beyond applying the patch.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulDB
Date Reserved
2026-04-01T12:43:19.844Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69cdd316e6bfc5ba1d496d13

Added to database: 04/02/2026, 02:23:18 UTC

Last enriched: 04/09/2026, 22:30:56 UTC

Last updated: 07/31/2026, 19:22:59 UTC

Views: 137

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses