CVE-2021-40824
MEDIUM 5.9CVSS 3.1Logic error in Matrix SDK for Android
A logic error in the room key sharing functionality of Element Android before 1.2.2 and matrix-android-sdk2 (aka Matrix SDK for Android) before 1.2.2 allows a malicious Matrix homeserver present in an encrypted room to steal room encryption keys (via crafted Matrix protocol messages) that were originally sent by affected Matrix clients participating in that room. This allows the attacker to decrypt end-to-end encrypted messages sent by affected clients.
- Published
- 13 Sep 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-290CWE-327
- Also known as
- GHSA-jjmc-4p83-pp26
- Sources
- NVDJSONOSV GHSA-jjmc-4p83-pp26JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | matrix | elementcpe:2.3:a:matrix:element:*:*:*:*:*:android:*:* |
< 1.2.2 | 1.2.2 |
| NVD | matrix | matrix-android-sdk2cpe:2.3:a:matrix:matrix-android-sdk2:*:*:*:*:*:android:*:* |
< 1.2.2 | 1.2.2 |
| OSV | Maven | org.matrix.android:matrix-android-sdk2 | < 1.2.2 | 1.2.2 |
References
- https://github.com/matrix-org/matrix-android-sdk2/releases/tag/v1.2.2 · Patch, Third Party Advisory, WEB
- https://matrix.org/blog/2021/09/13/vulnerability-disclosure-key-sharing · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-40824 · ADVISORY
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 13 Sep 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 May 2022)