LibRaw up to 0.22.0 TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw load_flags/raw_width out-of-bounds
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 4.8 | $0-$5k | 1.82 |
Summary
A vulnerability identified as problematic has been detected in LibRaw up to 0.22.0. This impacts the function LibRaw::nikon_load_padded_packed_raw of the file src/decoders/decoders_libraw.cpp of the component TIFF/NEF. The manipulation of the argument load_flags/raw_width leads to out-of-bounds.
This vulnerability is documented as CVE-2026-5342. The attack can be initiated remotely. Additionally, an exploit exists.
You should upgrade the affected component.
Details
A vulnerability was found in LibRaw up to 0.22.0. It has been rated as problematic. This issue affects the function LibRaw::nikon_load_padded_packed_raw of the file src/decoders/decoders_libraw.cpp of the component TIFF/NEF. The manipulation of the argument load_flags/raw_width with an unknown input leads to a out-of-bounds vulnerability. Using CWE to declare the problem leads to CWE-125. The product reads data past the end, or before the beginning, of the intended buffer. Impacted is availability.
It is possible to read the advisory at github.com. The identification of this vulnerability is CVE-2026-5342. The exploitation is known to be easy. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. Technical details as well as a public exploit are known.
The exploit is available at github.com. It is declared as proof-of-concept.
Upgrading to version 0.22.1 eliminates this vulnerability. Applying the patch b8397cd45657b84e88bd1202528d1764265f185c is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the vulnerability database at EUVD (EUVD-2026-18344). Be aware that VulDB is the high quality source for vulnerability data.
Product
Type
Name
Version
License
Website
- Product: https://github.com/LibRaw/LibRaw/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.3VulDB Meta Temp Score: 4.8
VulDB Base Score: 5.3
VulDB Temp Score: 4.8
VulDB Vector: 🔒
VulDB Reliability: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Out-of-boundsCWE: CWE-125 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Access: Public
Status: Proof-of-Concept
Download: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: LibRaw 0.22.1
Patch: b8397cd45657b84e88bd1202528d1764265f185c
Timeline
04/01/2026 Advisory disclosed04/01/2026 VulDB entry created
04/02/2026 VulDB entry last update
Sources
Product: github.comAdvisory: 795
Status: Confirmed
Confirmation: 🔒
CVE: CVE-2026-5342 (🔒)
GCVE (CVE): GCVE-0-2026-5342
GCVE (VulDB): GCVE-100-354671
EUVD: 🔒
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 04/01/2026 16:57Updated: 04/02/2026 19:59
Changes: 04/01/2026 16:57 (63), 04/02/2026 19:59 (1)
Complete: 🔍
Submitter: biniam
Cache ID: 216:348:103
Submit
Accepted
- Submit #781223: LibRaw 0.22.0 Out-of-Bounds Read (by biniam)
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.