{"id":"RUSTSEC-2026-0589","aliases":[],"title":"Validating Matrix key IDs may panic","originalDescription":"Using `key_id::validate` may panic if the `algorithm` part of the key ID is longer than 255 bytes and contains non-ASCII characters. The affected versions assumed that the length of the first part containing the encryption or signing algorithm (the part before the colon) would fit into a `NonZeroU8`, but the length of the first part wasn't validated.","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[{"ecosystem":"crates.io","name":"ruma-identifiers-validation","range":">=0.0.0-0, <0.14.0","fixed":"0.14.0"}],"references":[{"url":"https://crates.io/crates/ruma-identifiers-validation","type":"package"},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0589.html","type":"advisory"},{"url":"https://github.com/ruma/ruma/commit/b2cb9b43efbe082e4d9292560d4c9f0db5734038","type":"web"}],"sources":[{"name":"osv","at":"2026-11-22T12:58:43.198Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0589","license":"CC-BY 4.0","firstSeenAt":"2026-11-22T10:13:35.374Z"}],"firstSeenAt":"2026-11-22T10:13:35.374Z","publishedAt":"2026-11-19T12:00:00.000Z","modifiedAt":"2026-11-22T10:00:02.291Z"}