Rust advisories / iceoryx2-bb-container
UnsoundRUSTSEC-2026-0294 · iceoryx2-bb-container
RUSTSEC-2026-0294: Unsoundness in UTF-8 'String' trait
Short answericeoryx2-bb-container has an API that can cause undefined behaviour from safe code: Unsoundness in UTF-8 'String' trait. Fixed in 0.10.0.
| Crate | iceoryx2-bb-container |
|---|---|
| Type | Unsound |
| Affected versions | Before 0.10.0; from 0.11.0 onward (every version). |
| Fixed in | 0.10.0 |
| Severity | not scored |
| Published | 2026-09-18 |
| Last changed | 2026-09-23 |
| Also known as | CVE-2026-92612, GHSA-8mq4-3mwq-qvg6 |
| Affected functions | iceoryx2_bb_container::string::String::as_mut_bytes, iceoryx2_bb_container::string::String::deref_mut, iceoryx2_bb_container::string::polymorphic_string::PolymorphicString::as_mut_bytes, iceoryx2_bb_container::string::polymorphic_string::PolymorphicString::deref_mut, iceoryx2_bb_container::string::relocatable_string::RelocatableString::as_mut_bytes, iceoryx2_bb_container::string::relocatable_string::RelocatableString::deref_mut, iceoryx2_bb_container::string::static_string::StaticString::as_mut_bytes, iceoryx2_bb_container::string::static_string::StaticString::deref_mut |
What to do
- See which version you have:
cargo tree -i iceoryx2-bb-container(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p iceoryx2-bb-container. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for exampleiceoryx2-bb-container = "0.10.0") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
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
- Package: crates.io/crates/iceoryx2-bb-container
- Advisory: rustsec.org/advisories/RUSTSEC-2026-0294.html
- Web: github.com/eclipse-iceoryx/iceoryx2/pull/1956
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?