{"id":"GHSA-pqpw-89w5-82v5","aliases":["GHSA-pqpw-89w5-82v5","RUSTSEC-2023-0087"],"related":[],"kind":"vulnerability","state":"published","title":"`simd-json-derive` vulnerable to `MaybeUninit` misuse","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"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 `0.12.0` removes this section of code, avoiding the use of MaybeUninit alltogether.","format":"markdown","source":"rustsec"}],"published":"2023-10-14T12:00:00.000Z","modified":"2025-10-28T06:29:25.755Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U","rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.12.0"}],"ecosystem":"crates.io","package":"simd-json-derive","purl":"pkg:cargo/simd-json-derive","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.12.0"}],"ecosystem":"crates.io","package":"simd-json-derive","purl":"pkg:cargo/simd-json-derive","source":"rustsec"}],"references":[{"url":"https://github.com/simd-lite/simd-json-derive/issues/67","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/simd-lite/simd-json-derive","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0087.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/simd-json-derive","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pqpw-89w5-82v5","url":"https://github.com/advisories/GHSA-pqpw-89w5-82v5","licence":"CC-BY-4.0","modified":"2025-10-28T06:29:25.755Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2023-0087","url":"https://rustsec.org/advisories/RUSTSEC-2023-0087.html","licence":"CC0-1.0","modified":"2025-10-28T06:29:25.755Z"}],"updatedAt":"2026-11-25T22:56:43.169Z"}