Security mailing lists by PureSourceCode

RUSTSEC-2023-0087

MEDIUM

`simd-json-derive` vulnerable to `MaybeUninit` misuse

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.

Published
14 Oct 2023
Last modified
28 Oct 2025
Also known as
GHSA-pqpw-89w5-82v5
Sources
OSV GHSA-pqpw-89w5-82v5JSONOSVJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 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

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io simd-json-derive < 0.12.0 0.12.0
OSV crates.io simd-json-derive >= 0.0.0-0, < 0.12.0 0.12.0

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Oct 2023)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 12 Nov 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.