Validating Matrix key IDs may panic
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.
Recorded fixes — ruma-identifiers-validation: 0.14.0. Check your release branch.
Exploitation not established
| Affected range | Recorded fix |
|---|---|
| From 0.0.0-0 before 0.14.0Semantic versions | 0.14.0 |
Version evidence: OSV · RUSTSEC-2026-0589
View original version evidence
{
"ranges": [
{
"events": [
{
"introduced": "0.0.0-0"
},
{
"fixed": "0.14.0"
}
],
"type": "SEMVER"
}
],
"versions": []
}