Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1wcXB3LTg5dzUtODJ2Nc4ABBP6
`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.
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1wcXB3LTg5dzUtODJ2Nc4ABBP6
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: 8 days ago
Updated: 8 days ago
Identifiers: GHSA-pqpw-89w5-82v5
References:
- https://github.com/simd-lite/simd-json-derive/issues/67
- https://rustsec.org/advisories/RUSTSEC-2023-0087.html
- https://github.com/advisories/GHSA-pqpw-89w5-82v5
Blast Radius: 0.0
Affected Packages
cargo:simd-json-derive
Dependent packages: 5Dependent repositories: 214
Downloads: 115,030 total
Affected Version Ranges: < 0.12.0
Fixed in: 0.12.0
All affected versions: 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8, 0.1.9, 0.1.10, 0.1.11, 0.1.12, 0.1.13, 0.1.14, 0.1.15, 0.2.0, 0.2.1, 0.2.2, 0.3.0, 0.3.1, 0.4.0, 0.6.2, 0.6.3, 0.7.0, 0.7.1, 0.7.2, 0.8.0, 0.9.0, 0.9.1, 0.9.2, 0.10.0, 0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.11.3
All unaffected versions: 0.12.0, 0.13.0, 0.14.0, 0.15.0