Ecosyste.ms: Advisories

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

Security Advisories: GSA_kwCzR0hTQS12cDY4LTJ3cm0tNjlxbc4AAvIo

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

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].

Permalink: https://github.com/advisories/GHSA-vp68-2wrm-69qm
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS12cDY4LTJ3cm0tNjlxbc4AAvIo
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Moderate
Classification: General
Published: over 1 year ago
Updated: about 1 year ago


CVSS Score: 6.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Identifiers: GHSA-vp68-2wrm-69qm, CVE-2022-39252
References: Repository: https://github.com/matrix-org/matrix-rust-sdk
Blast Radius: 10.3

Affected Packages

cargo:matrix-sdk-crypto
Dependent packages: 4
Dependent repositories: 38
Downloads: 48,283 total
Affected Version Ranges: < 0.6.0
Fixed in: 0.6.0
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