# RUSTSEC-2026-0294: Unsoundness in UTF-8 'String' trait

- Database: RustSec
- Published: 2026-09-18
- Modified: 2026-11-11

## Tracked as

- [CVE-2026-92612](https://cve.now/CVE-2026-92612.md): In Eclipse iceoryx2 versions greater than v0.8.0, the StaticString exposes its contents as mutable bytes through safe APIs, while String::as\_str() converts those bytes into a Rust string slice…

## Affected versions

- iceoryx2-bb-container (crates.io): fixed in 0.10.0

## 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: https://github.com/eclipse-iceoryx/iceoryx2/pull/1956

## References

- https://crates.io/crates/iceoryx2-bb-container
- https://rustsec.org/advisories/RUSTSEC-2026-0294.html
- https://github.com/eclipse-iceoryx/iceoryx2/pull/1956

Page: https://cve.now/RUSTSEC-2026-0294

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
