{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-5342 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-5342 is a medium-severity memory corruption vulnerability in Libraw Libraw, published on 2 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-5342 and fix it if it is affected.\n\nWhat it is: CVE-2026-5342 is a medium-severity memory corruption vulnerability in Libraw Libraw, published on 2 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-5342 exists.\n\nAffected product: Libraw Libraw. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-5342/ (Markdown: https://insights.sbomify.com/CVE-2026-5342/index.md)","id":"CVE-2026-5342","markdown":"https://insights.sbomify.com/CVE-2026-5342/index.md","name":"CVE-2026-5342","record":{"aliases":["AZL-82940","CLSA-2026-1785515066","CLSA-2026-1786702952","DEBIAN-CVE-2026-5342","ECHO-b728-5f8b-4ad6","GHSA-jp35-q64r-j6gf","JLSEC-2026-1118","UBUNTU-CVE-2026-5342"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"LibRaw image library","requires_auth":"none","summary":"Remote attackers can trigger an out-of-bounds read in LibRaw's NEF decoder via crafted images, potentially exposing memory or causing crashes.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"libraw","vendor":"libraw"}],"cvss":{"score":6.9,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"},{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"description":"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"LibRaw TIFF/NEF decoders_libraw.cpp nikon_load_padded_packed_raw out-of-bounds","id":"CVE-2026-5342","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"libraw:libraw","products":["libraw:libraw"],"type":"memory_corruption","year":"2026"},"n_packages":0,"n_references":9,"next":{"headline":"SAML SSO - Service Provider - Critical - Authentication bypass - SA-CONTRIB-2026-031","id":"CVE-2026-5343"},"packages":[],"prev":{"headline":"NMR Strava activities \u003c= 1.0.14 - Authenticated (Contributor+) Stored Cross-Site Scripting via Shortcode Attributes","id":"CVE-2026-5341"},"products":["LibRaw"],"published":"2026-04-02","related":[{"cvss_score":9.8,"headline":"Memory corruption in LibRaw","id":"CVE-2026-20889","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":9.8,"headline":"Memory corruption in LibRaw","id":"CVE-2026-20911","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":9.8,"headline":"Memory corruption in LibRaw","id":"CVE-2026-21413","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":9.8,"headline":"Integer overflow in n/a","id":"CVE-2015-8366","kev_date_added":null,"published":"2020-01-14"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2015-8367","kev_date_added":null,"published":"2020-01-14"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2017-14265","kev_date_added":null,"published":"2017-09-11"},{"cvss_score":9.8,"headline":"Memory corruption in LibRaw","id":"CVE-2017-6886","kev_date_added":null,"published":"2017-05-16"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-07","vendors":["n/a"]},"summary":"Remote attackers can trigger an out-of-bounds read in LibRaw's NEF decoder via crafted images, potentially exposing memory or causing crashes.","url":"https://insights.sbomify.com/CVE-2026-5342/"}