{"answers":{"affected":"3 open source packages ship an affected version, including simd-json-derive.","exploited":"There is no known exploitation of GHSA-pqpw-89w5-82v5 in the wild and no public exploit code.","fix":"Upgrade simd-json-derive to 0.12.0 or later.","what":"GHSA-pqpw-89w5-82v5 is a memory corruption vulnerability in simd-json-derive, published on 14 Oct 2023."},"fix_prompt":"Check this codebase for GHSA-pqpw-89w5-82v5 and fix it if it is affected.\n\nWhat it is: GHSA-pqpw-89w5-82v5 is a memory corruption vulnerability in simd-json-derive, published on 14 Oct 2023. \nExploitation: There is no known exploitation of GHSA-pqpw-89w5-82v5 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- simd-json-derive (crates.io): affected all versions; fixed in 0.12.0\n- simd-json-derive (crates.io): affected all versions; fixed in 0.12.0\n- simd-json-derive (crates.io): affected from 0.0.0-0; fixed in 0.12.0\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-pqpw-89w5-82v5/ (Markdown: https://insights.sbomify.com/GHSA-pqpw-89w5-82v5/index.md)","id":"GHSA-pqpw-89w5-82v5","markdown":"https://insights.sbomify.com/GHSA-pqpw-89w5-82v5/index.md","name":"GHSA-pqpw-89w5-82v5","record":{"aliases":["RUSTSEC-2023-0087"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","code_execution"],"network_reachable":"unknown","non_default_config":false,"product_category":"Rust JSON library","requires_auth":"none","summary":"Misuse of MaybeUninit in simd-json-derive causes undefined behavior, potentially leading to crashes or arbitrary code execution in release builds.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"An invalid use of `MaybeUninit::uninit().assume_init()` in `simd-json-derive`'s derive macro can cause undefined behavior. The original code used `MaybeUninit` to avoid initialisation of the struct and then set the fields using `ptr::write`. The undefined behavior triggered by this misuse of `MaybeUninit` can lead to invlaid memory access and panics in binaries compiled in release mode (aka simd-json-derive prior to version 0.12 has UB and optimizes into some nonsense)\n\nThe version `0.12.0` removes this section of code, avoiding the use of MaybeUninit alltogether.","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":"`simd-json-derive` vulnerable to `MaybeUninit` misuse","id":"GHSA-pqpw-89w5-82v5","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"memory_corruption","year":"2023"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["0.12.0"],"introduced":["0"],"last_affected":[],"package":"simd-json-derive","purl":null,"source":"GHSA-pqpw-89w5-82v5"},{"ecosystem":"crates.io","fixed":["0.12.0"],"introduced":["0"],"last_affected":[],"package":"simd-json-derive","purl":"pkg:cargo/simd-json-derive","source":"GHSA-pqpw-89w5-82v5"},{"ecosystem":"crates.io","fixed":["0.12.0"],"introduced":["0.0.0-0"],"last_affected":[],"package":"simd-json-derive","purl":"pkg:cargo/simd-json-derive","source":"RUSTSEC-2023-0087"}],"products":null,"published":"2023-10-14","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":"Misuse of MaybeUninit in simd-json-derive causes undefined behavior, potentially leading to crashes or arbitrary code execution in release builds.","url":"https://insights.sbomify.com/GHSA-pqpw-89w5-82v5/"}