{"id":"RUSTSEC-2026-0589","aliases":["RUSTSEC-2026-0589"],"related":[],"kind":"vulnerability","state":"published","title":"Validating Matrix key IDs may panic","summary":"Using `key_id::validate` may panic if the `algorithm` part of the key ID is\nlonger than 255 bytes and contains non-ASCII characters. The affected versions\nassumed that the length of the first part containing the encryption or signing\nalgorithm (the part before the colon) would fit into a `NonZeroU8`, but the\nlength of the first part wasn't validated.","summaryFormat":"markdown","summarySource":"rustsec","descriptions":[{"lang":"en","text":"Using `key_id::validate` may panic if the `algorithm` part of the key ID is\nlonger than 255 bytes and contains non-ASCII characters. The affected versions\nassumed that the length of the first part containing the encryption or signing\nalgorithm (the part before the colon) would fit into a `NonZeroU8`, but the\nlength of the first part wasn't validated.","format":"markdown","source":"rustsec"}],"published":"2026-11-19T12:00:00.000Z","modified":"2026-11-22T10:00:02.291Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.14.0"}],"ecosystem":"crates.io","package":"ruma-identifiers-validation","purl":"pkg:cargo/ruma-identifiers-validation","source":"rustsec"}],"references":[{"url":"https://crates.io/crates/ruma-identifiers-validation","tags":["package"],"sources":["rustsec"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0589.html","tags":["advisory"],"sources":["rustsec"]},{"url":"https://github.com/ruma/ruma/commit/b2cb9b43efbe082e4d9292560d4c9f0db5734038","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0589","url":"https://rustsec.org/advisories/RUSTSEC-2026-0589.html","licence":"CC0-1.0","modified":"2026-11-22T10:00:02.291Z"}],"updatedAt":"2026-11-25T22:56:43.522Z"}