{"answers":{"affected":"3 open source packages ship an affected version, including stb_image.","exploited":"There is no known exploitation of GHSA-ppjr-267j-5p9x in the wild and no public exploit code.","fix":"Upgrade stb_image to 0.2.5 or later.","what":"GHSA-ppjr-267j-5p9x is a vulnerability in stb_image, published on 19 Mar 2023. 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 GHSA-ppjr-267j-5p9x and fix it if it is affected.\n\nWhat it is: GHSA-ppjr-267j-5p9x is a vulnerability in stb_image, published on 19 Mar 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-ppjr-267j-5p9x in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- stb_image (crates.io): affected all versions; fixed in 0.2.5\n- stb_image (crates.io): affected all versions; fixed in 0.2.5\n- stb_image (crates.io): affected from 0.0.0-0; fixed in 0.2.5\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/GHSA-ppjr-267j-5p9x/ (Markdown: https://insights.sbomify.com/GHSA-ppjr-267j-5p9x/index.md)","id":"GHSA-ppjr-267j-5p9x","markdown":"https://insights.sbomify.com/GHSA-ppjr-267j-5p9x/index.md","name":"GHSA-ppjr-267j-5p9x","record":{"aliases":["RUSTSEC-2023-0021"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust image library","requires_auth":"none","summary":"A NULL pointer dereference in the stb_image Rust crate allows attackers to cause a denial of service by providing a malformed image file.","user_interaction":"required","vuln_class":"null_dereference"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"A bug in error handling in the `stb_image` C library could cause a NULL pointer dereference when attempting to load an invalid or unsupported image file.  This is fixed in version 0.2.5 and later of the `stb_image` Rust crate, by patching the C code to correctly handle NULL pointers.\n\nThank you to GitHub user 0xdd96 for finding and fixing this vulnerability.","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"NULL pointer dereference in `stb_image`","id":"GHSA-ppjr-267j-5p9x","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"null_dereference","year":"2023"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["0.2.5"],"introduced":["0"],"last_affected":[],"package":"stb_image","purl":null,"source":"GHSA-ppjr-267j-5p9x"},{"ecosystem":"crates.io","fixed":["0.2.5"],"introduced":["0"],"last_affected":[],"package":"stb_image","purl":"pkg:cargo/stb_image","source":"GHSA-ppjr-267j-5p9x"},{"ecosystem":"crates.io","fixed":["0.2.5"],"introduced":["0.0.0-0"],"last_affected":[],"package":"stb_image","purl":"pkg:cargo/stb_image","source":"RUSTSEC-2023-0021"}],"products":null,"published":"2023-03-19","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"A NULL pointer dereference in the stb_image Rust crate allows attackers to cause a denial of service by providing a malformed image file.","url":"https://insights.sbomify.com/GHSA-ppjr-267j-5p9x/"}