RUSTSEC-2026-0588 Validating Matrix Content URIs may panic
Unknown
- Published
- Updated
- Exploit status
- No public exploit known
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io ruma-identifiers-validation(crates.io) | >= 0.2.3, < 0.13.0 | 0.13.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io ruma-identifiers-validation(crates.io) | >= 0.2.3, < 0.13.0 | 0.13.0 |
References
- crates.io product
- rustsec.org vendor-advisory
- github.com