RUSTSEC-2026-0589
JSON

Not scored

Validating Matrix key IDs may panic

Severity
Not scored
Published
Last changed

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.

Affected

Product or packageVersionsReported by
ruma-identifiers-validation (crates.io)from 0.0.0-0 before 0.14.0RustSec Advisory Database

References

Sources

SourceRecordLicence
RustSec Advisory DatabaseRUSTSEC-2026-0589 changed 2026-11-22CC0-1.0