CVE-2026-5342
LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds
CVSS Score
5.3
EPSS Score
0.0%
EPSS Percentile
14th
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.
| CWE | CWE-125 CWE-119 |
| Vendor | n/a |
| Product | libraw |
| Published | Apr 2, 2026 |
| Last Updated | Apr 7, 2026 |
Stay Ahead of the Next One
Get instant alerts for n/a libraw
Be the first to know when new medium vulnerabilities affecting n/a libraw are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
Affected Versions
n/a / LibRaw
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
References
vuldb.com: https://vuldb.com/vuln/354671 vuldb.com: https://vuldb.com/vuln/354671/cti vuldb.com: https://vuldb.com/submit/781223 github.com: https://github.com/LibRaw/LibRaw/issues/795 github.com: https://github.com/LibRaw/LibRaw/issues/795#issuecomment-4073769886 github.com: https://github.com/biniamf/pocs/tree/main/libraw_nikonpadded github.com: https://github.com/LibRaw/LibRaw/commit/b8397cd45657b84e88bd1202528d1764265f185c github.com: https://github.com/LibRaw/LibRaw/releases/tag/0.22.1 github.com: https://github.com/LibRaw/LibRaw/
Credits
๐ biniam (VulDB User)