← VULNERABILITIES

RUSTSEC-2026-0589

Validating Matrix key IDs may panic

UnscoredFix available
CVSS
—
EPSS
—
Published
2026-11-19
Age
15d old
Modified
2026-11-22
Product
crates.io ruma-identifiers-validation

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.

Fixed in

0.14.0

Affected packages

EcosystemPackageRangeFixed
crates.ioruma-identifiers-validation>=0.0.0-0, <0.14.00.14.0

Sources

  • OSV · first seen 12d ago · CC-BY 4.0

References

JSON