Skip to main content
Menu
Advisories

Unsoundness in UTF-8 'String' trait

RUSTSEC-2026-0294Published Updated RustSec

Description

The String API in iceoryx2-bb-container exposes its contents as mutable bytes through safe APIs, while String::as_str() converts those bytes into a Rust string slice without validating UTF-8. An application can therefore create an invalid &str and trigger undefined behavior using entirely safe Rust.

The API methods as_mut_bytes and deref_mut where removed from the String API and their implementations (PolymorphicString, RelocatableString, and StaticString ) without replacement. Link to Pull-Request: github.com/eclipse-iceoryx/iceoryx2/pull/1956

Affected versions

References

crates.io

rustsec.org

GitHub · eclipse-iceoryx/iceoryx2