RUSTSEC-2026-0588
JSON

Not scored

Validating Matrix Content URIs may panic

Severity
Not scored
Published
Last changed

Description

Using mxc_uri::validate may panic if the server name part of the URI is larger than 249 bytes. The affected versions assumed that the length of the first part of the URI (mxc://{server_name}) would fit into a NonZeroU8, but the length of the server name wasn't validated and the Matrix specification actually allows the server name to have a maximum length of 261 bytes.

Affected

Product or packageVersionsReported by
ruma-identifiers-validation (crates.io)from 0.2.3 before 0.13.0RustSec Advisory Database

References

Sources

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