{"id":"RUSTSEC-2026-0589","summary":"Validating Matrix key IDs may panic","details":"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.","modified":"2026-11-22T10:00:02.291471615Z","published":"2026-11-19T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/ruma-identifiers-validation"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2026-0589.html"},{"type":"WEB","url":"https://github.com/ruma/ruma/commit/b2cb9b43efbe082e4d9292560d4c9f0db5734038"}],"affected":[{"package":{"name":"ruma-identifiers-validation","ecosystem":"crates.io","purl":"pkg:cargo/ruma-identifiers-validation"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.14.0"}]}],"ecosystem_specific":{"affects":{"arch":[],"os":[],"functions":["ruma_identifiers_validation::key_id::validate"]},"affected_functions":null},"database_specific":{"categories":["denial-of-service"],"cvss":null,"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0589.json"}}],"schema_version":"1.9.2"}