# GHSA-pqpw-89w5-82v5: `simd-json-derive` vulnerable to `MaybeUninit` misuse

- Severity: Medium (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-10-14T12:00:00.000Z
- Modified: 2025-10-28T06:29:25.755Z
- Also known as: RUSTSEC-2023-0087

## 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)

The version `0.12.0` removes this section of code, avoiding the use of MaybeUninit alltogether.

(As written by GitHub Advisory Database.)

## Affected

- simd-json-derive (crates.io): before 0.12.0; from 0.0.0-0 before 0.12.0

## References

- <https://github.com/simd-lite/simd-json-derive/issues/67> (report, web)
- <https://github.com/simd-lite/simd-json-derive> (package)
- <https://rustsec.org/advisories/RUSTSEC-2023-0087.html> (advisory, web)
- <https://crates.io/crates/simd-json-derive> (package)

## Sources

- GitHub Advisory Database: [GHSA-pqpw-89w5-82v5](https://github.com/advisories/GHSA-pqpw-89w5-82v5), CC-BY-4.0, modified 2025-10-28
- RustSec Advisory Database: [RUSTSEC-2023-0087](https://rustsec.org/advisories/RUSTSEC-2023-0087.html), CC0-1.0, modified 2025-10-28

---

Page: https://cve.day/GHSA-pqpw-89w5-82v5 · Whole record: https://cve.day/GHSA-pqpw-89w5-82v5.json · Rebuilt by cve.day 2026-11-25T22:56:43.169Z
