FORGE Lab found unsafe behavior triggers in safe Rust code
Microsoft's FORGE Lab identified memory safety issues in Rust's std and core libraries where safe code triggers undefined behavior. The study revealed three recurring patterns: trusting code not to panic, trusting user implementations, and trusting the underlying system.
- Field
- computer security
- What they did
- Researchers from Microsoft's FORGE Lab discovered several memory safety issues in the Rust standard library that can be triggered even by code written entirely in safe Rust. They used the AI-powered vulnerability-scanning system Hyenas to find three recurring patterns of misplaced trust: trusting code not to panic, trusting user-provided implementations to be correct, and trusting the underlying system.
- Why it matters
- These findings are important for developers using Rust in critical systems because they show that the standard library can violate its safety guarantees if there are hidden errors in its unsafe code.
#rust#memory safety#std library#microsoft forge#hyenas



