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