Email me

Rust advisories / simd-json-derive

Unsound MediumRUSTSEC-2023-0087 · simd-json-derive

RUSTSEC-2023-0087: `MaybeUninit` misuse in `simd-json-derive`

Short answersimd-json-derive has an API that can cause undefined behaviour from safe code: `MaybeUninit` misuse in `simd-json-derive`. Fixed in 0.12.0.

Cratesimd-json-derive
TypeUnsound
Affected versionsBefore 0.12.0.
Fixed in0.12.0
SeverityMedium (GitHub rating)
Published2023-10-14
Last changed2025-10-28
Also known asGHSA-pqpw-89w5-82v5

What to do

  1. See which version you have: cargo tree -i simd-json-derive (it also shows which of your dependencies pulls it in).
  2. Update within your version requirement: cargo update -p simd-json-derive. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for example simd-json-derive = "0.12.0") or update the dependency that pulls it in.
  3. Check again with cargo audit, or paste your Cargo.lock into our Cargo.toml checker.

Details from the advisory

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 0.12.0 removes this section of code, avoiding the use of MaybeUninit alltogether.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Up next

Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ