rustsec-2026-0294

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

Timeline
Published
unknown
Last Modified
unknown
CVSS Details

CVSS details not available.

Affected Products

No product information available.

References
Linked Vulnerabilities

No linked vulnerabilities found.

{
  "affected": [
    {
      "database_specific": {
        "categories": [],
        "cvss": null,
        "informational": "unsound",
        "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0294.json"
      },
      "ecosystem_specific": {
        "affected_functions": null,
        "affects": {
          "arch": [],
          "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"
          ],
          "os": []
        }
      },
      "package": {
        "ecosystem": "crates.io",
        "name": "iceoryx2-bb-container",
        "purl": "pkg:cargo/iceoryx2-bb-container"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0.0.0-0"
            },
            {
              "fixed": "0.10.0"
            },
            {
              "introduced": "0.11.0-0"
            }
          ],
          "type": "SEMVER"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-8mq4-3mwq-qvg6"
  ],
  "database_specific": {
    "license": "CC0-1.0"
  },
  "details": "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. \nAn application can therefore create an invalid &str and trigger undefined behavior using entirely safe Rust.\n\nThe API methods `as_mut_bytes` and `deref_mut` where removed from the String API and their implementations (PolymorphicString, RelocatableString, and StaticString ) without replacement.\nLink to Pull-Request: https://github.com/eclipse-iceoryx/iceoryx2/pull/1956",
  "id": "RUSTSEC-2026-0294",
  "modified": "2026-09-21T09:45:03.168416810Z",
  "published": "2026-09-18T12:00:00Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://crates.io/crates/iceoryx2-bb-container"
    },
    {
      "type": "ADVISORY",
      "url": "https://rustsec.org/advisories/RUSTSEC-2026-0294.html"
    },
    {
      "type": "WEB",
      "url": "https://github.com/eclipse-iceoryx/iceoryx2/pull/1956"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "Unsoundness in UTF-8 'String' trait"
}
View JSON API Download JSON