# RUSTSEC-2026-0589: Validating Matrix key IDs may panic

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-11-19T12:00:00.000Z
- Modified: 2026-11-22T10:00:02.291Z

## Description

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.

(As written by RustSec Advisory Database.)

## Affected

- ruma-identifiers-validation (crates.io): from 0.0.0-0 before 0.14.0

## References

- <https://crates.io/crates/ruma-identifiers-validation> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0589.html> (advisory)
- <https://github.com/ruma/ruma/commit/b2cb9b43efbe082e4d9292560d4c9f0db5734038> (web)

## Sources

- RustSec Advisory Database: [RUSTSEC-2026-0589](https://rustsec.org/advisories/RUSTSEC-2026-0589.html), CC0-1.0, modified 2026-11-22

---

Page: https://cve.day/RUSTSEC-2026-0589 · Whole record: https://cve.day/RUSTSEC-2026-0589.json · Rebuilt by cve.day 2026-11-25T22:56:43.522Z
