{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-5318 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-5318 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, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-5318 and fix it if it is affected.\n\nWhat it is: CVE-2026-5318 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, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-5318 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-5318/ (Markdown: https://insights.sbomify.com/CVE-2026-5318/index.md)","id":"CVE-2026-5318","markdown":"https://insights.sbomify.com/CVE-2026-5318/index.md","name":"CVE-2026-5318","record":{"aliases":["DEBIAN-CVE-2026-5318","GHSA-8qw7-rqx6-9gqj","JLSEC-2026-1117","UBUNTU-CVE-2026-5318"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","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 write in LibRaw's JPEG parser, potentially leading to code execution or crashes.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"libraw","vendor":"libraw"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"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.","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 JPEG DHT losslessjpeg.cpp initval out-of-bounds write","id":"CVE-2026-5318","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":"itsourcecode Payroll Management System navbar.php cross site scripting","id":"CVE-2026-5319"},"packages":[],"prev":{"headline":"Nothings stb stb_vorbis.c start_decoder out-of-bounds write","id":"CVE-2026-5317"},"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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-04-07","vendors":["n/a"]},"summary":"Remote attackers can trigger an out-of-bounds write in LibRaw's JPEG parser, potentially leading to code execution or crashes.","url":"https://insights.sbomify.com/CVE-2026-5318/"}