{"id":"RUSTSEC-2024-0435","revision":"2db73b755aef478eba0df0f87114eabe","records":[{"revision":"2db73b755aef478eba0df0f87114eabe","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2024-0435","aliases":["GHSA-h7h7-6mx3-r89v"],"title":"Unsound usages of `Vec::from_raw_parts`","description":"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.  \n\nIn the [issue](https://github.com/FyroxEngine/Fyrox/issues/630), we develop a PoC to show passing struct type to `transmute_vec_as_bytes` could lead to undefined behavior with `Vec::from_raw_parts`.  \n\nThe 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](https://github.com/FyroxEngine/Fyrox/blob/3f9ad6f9667047dac051b0e97d544e5b38e5ae72/fyrox-core/src/lib.rs#L351-L360) branch, but still not on the latest release (0.28.1).","state":0,"publishedAt":"2024-12-19T12:00:00+00:00","modifiedAt":"2025-10-28T06:29:25.103174+00:00","affected":[{"ecosystem":"crates.io","name":"fyrox-core","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.36.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/fyrox-core","https://rustsec.org/advisories/RUSTSEC-2024-0435.html","https://github.com/FyroxEngine/Fyrox/issues/630","https://github.com/FyroxEngine/Fyrox/pull/662"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2024-0435","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2024-0435","identifiers":["RUSTSEC-2024-0435","GHSA-h7h7-6mx3-r89v"]},"retained":false,"historicalAffected":[]}],"coverage":[]}