An open API service providing security vulnerability metadata for many open source software ecosystems.

GSA_kwCzR0hTQS12cDY4LTJ3cm0tNjlxbc4AAvIo

Moderate EPSS: 0.00088% (0.26217 Percentile) EPSS:

matrix-sdk-crypto contains potential impersonation via room key forward responses

Affected Packages Affected Versions Fixed Versions
cargo:matrix-sdk-crypto < 0.6.0 0.6.0
5 Dependent packages
38 Dependent repositories
118,818 Downloads total

Affected Version Ranges

All affected versions

0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.4.1, 0.5.0

All unaffected versions

0.6.0, 0.7.0, 0.7.1, 0.7.2, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.11.1, 0.12.0, 0.13.0

Impact

When matrix-rust-sdk before 0.6 requests a room key from our devices, it correctly accepts key forwards only if they are a response to a previous request. However, it doesn't check that the device that responded matches the device the key was requested from.

This allows a malicious homeserver to insert room keys of questionable validity into the key store in some situations, potentially assisting in an impersonation attack. Note that even if key injection succeeds in this way, all forwarded keys have the imported flag set, which is used as an indicator that such keys have lesser authentication properties (and should be marked as such in clients, e.g. with a grey shield besides the message).

For more information

If you have any questions or comments about this advisory, e-mail us at [email protected].

References: