{"id":"CVE-2026-5342","summary":"LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds","details":"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.","modified":"2026-05-30T05:20:47.977301Z","published":"2026-04-02T14:30:14.897Z","related":["SUSE-SU-2026:1555-1","SUSE-SU-2026:1556-1","SUSE-SU-2026:21360-1","openSUSE-SU-2026:10565-1","openSUSE-SU-2026:20574-1"],"database_specific":{"cna_assigner":"VulDB","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"last_affected":"0.1"},{"last_affected":"0.2"},{"last_affected":"0.3"},{"last_affected":"0.4"},{"last_affected":"0.5"},{"last_affected":"0.6"},{"last_affected":"0.7"},{"last_affected":"0.8"},{"last_affected":"0.9"},{"last_affected":"0.10"}]}],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5342.json","cwe_ids":["CWE-119","CWE-125"]},"references":[{"type":"WEB","url":"https://github.com/LibRaw/LibRaw/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5342.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5342"},{"type":"ADVISORY","url":"https://vuldb.com/submit/781223"},{"type":"ADVISORY","url":"https://vuldb.com/vuln/354671"},{"type":"REPORT","url":"https://github.com/LibRaw/LibRaw/issues/795"},{"type":"REPORT","url":"https://github.com/LibRaw/LibRaw/issues/795#issuecomment-4073769886"},{"type":"REPORT","url":"https://vuldb.com/vuln/354671/cti"},{"type":"FIX","url":"https://github.com/LibRaw/LibRaw/commit/b8397cd45657b84e88bd1202528d1764265f185c"},{"type":"FIX","url":"https://github.com/LibRaw/LibRaw/releases/tag/0.22.1"},{"type":"EVIDENCE","url":"https://github.com/biniamf/pocs/tree/main/libraw_nikonpadded"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libraw/libraw","events":[{"introduced":"0"},{"fixed":"b8397cd45657b84e88bd1202528d1764265f185c"}]}],"versions":["0.22.0","0.21.1","0.21.0","0.21-Beta1","0.20.2","0.20.1","0.20.0","0.20-RC2","0.18.0","0.17.0","0.16.0","0.15.0","0.14.6","0.14.5","0.14.4","0.14.3","0.14.2","0.14.1","0.14.0","0.13.6","0.13.5","0.13.4","0.13.3","0.13.2","0.13.1","0.13.0","0.12.0"],"database_specific":{"vanir_signatures":[{"signature_version":"v1","source":"https://github.com/libraw/libraw/commit/b8397cd45657b84e88bd1202528d1764265f185c","signature_type":"Function","digest":{"length":18461,"function_hash":"75762778109458427875769868541149481938"},"id":"CVE-2026-5342-1c5ba764","deprecated":false,"target":{"function":"LibRaw::apply_tiff","file":"src/metadata/tiff.cpp"}},{"signature_version":"v1","source":"https://github.com/libraw/libraw/commit/b8397cd45657b84e88bd1202528d1764265f185c","signature_type":"Function","digest":{"length":1156,"function_hash":"84981703727095246191539248690892626236"},"id":"CVE-2026-5342-313d2854","deprecated":false,"target":{"function":"LibRaw::nikon_load_padded_packed_raw","file":"src/decoders/decoders_libraw.cpp"}},{"signature_version":"v1","source":"https://github.com/libraw/libraw/commit/b8397cd45657b84e88bd1202528d1764265f185c","signature_type":"Line","digest":{"threshold":0.9,"line_hashes":["28244586361528992352522152194319482398","92157897365039769988828882281683992520","249419145314412054435341265046189754782","147838370502341082218215597431389232700","268852207816429060776474755319238157629","19833769672006721639578250071944379213","108147390792519766460047328957182456943","193998266684608617211010662832227538321","9342119849890528820223737516730364104","138232008353031034202073290338649308539","132295669638616007946044778428761391761","51145738289976052827562857012528571353","279545017355210863464581914152843540103","126576192636509665505602364602811841240","100569988196465285714214852750654529770","276122923454765561941918136488648270401","35727505169355187103433350353149522185"]},"id":"CVE-2026-5342-33412754","deprecated":false,"target":{"file":"src/decoders/decoders_libraw.cpp"}},{"signature_version":"v1","source":"https://github.com/libraw/libraw/commit/b8397cd45657b84e88bd1202528d1764265f185c","signature_type":"Line","digest":{"threshold":0.9,"line_hashes":["237739710694465869779659605822927391528","284840264059880553985438553535815150122","193763208134149196329007091648312408011","16778219902612833982178182206358732840","256008877216685110381393122834397204954"]},"id":"CVE-2026-5342-ce793a40","deprecated":false,"target":{"file":"src/metadata/tiff.cpp"}}],"vanir_signatures_modified":"2026-05-30T05:20:47Z","source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-5342.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P"}]}