RUSTSEC-2024-0435
LOWFyrox has unsound usages of `Vec::from_raw_parts`
The library provides a public safe API transmute_vec_as_bytes, which incorrectly assumes that any generic type T could have stable layout, causing to uninitialized memory exposure if the users pass any types with padding bytes as T and cast it to u8 pointer.
In the issue, we develop a PoC to show passing struct type to transmute_vec_as_bytes could lead to undefined behavior with Vec::from_raw_parts.
The developers provide a patch by changing trait of Copy to Pod, which can make sure T should be plain data. This was patched in the latest version of master branch, but still not on the latest release (0.28.1).
- Published
- 19 Dec 2024
- Last modified
- 10 Sep 2026
- Also known as
- GHSA-h7h7-6mx3-r89v
- Sources
- OSV GHSA-h7h7-6mx3-r89vJSONOSVJSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | fyrox-core | >= 0.28.1, < 0.36 | 0.36 |
| OSV | crates.io | fyrox-core | >= 0.0.0-0, < 0.36.0 | 0.36.0 |
References
- https://github.com/FyroxEngine/Fyrox/issues/630 · WEB, REPORT
- https://github.com/FyroxEngine/Fyrox/pull/662 · WEB
- https://github.com/FyroxEngine/Fyrox/commit/474e3b01a884366cdb7d704f7456ef692e992232 · WEB
- https://github.com/FyroxEngine/Fyrox · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2024-0435.html · WEB, ADVISORY
- https://crates.io/crates/fyrox-core · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Dec 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Feb 2025)