Ruma identifiers validation: Validating Matrix key IDs may panic
Affects ruma-identifiers-validationSource GCVE Database
Rated Medium by Threat Radar's AI analysis
- Patch
- Available – fixed in 0.14.0
Data as of 22 Nov 2026, 10:39 UTC
What to do
Upgrade ruma-identifiers-validation to 0.14.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
crates.ioruma-identifiers-validationpkg:cargo/ruma-identifiers-validationOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to ruma-identifiers-validation version 0.14.0 or later, where this issue has been fixed. No other mitigation is required as the patch addresses the root cause.
Description
A vulnerability in ruma-identifiers-validation allows the key ID validation function to panic when the algorithm part of the key ID exceeds 255 bytes and contains non-ASCII characters. This occurs because the length of the algorithm part was not properly validated before being used as a NonZeroU8 value. The issue affects versions prior to 0.14.0 and has been fixed in version 0.14.0.