CVE-2021-40824: Element Android & Matrix SDK - Broken Access Control
- Cve: CVE-2021-40824
- Name: Element Android & Matrix SDK - Broken Access Control
- Description: 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.
- Impact: Attackers can decrypt end-to-end encrypted messages, compromising message confidentiality and privacy.
- Remediation: Update to version 1.2.2 or later for both Element Android and matrix-android-sdk2.
- Vulnerability type: broken_access_control
- Vulnerability impact: information_disclosure
- Requirement type: logged_in
- Requirements: Attacker must be a participant in the encrypted room.
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.9
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00662
- Epss percentile: 0.5262
- Assignee: [email protected]
- Published at: 2021-09-13T19:15:19Z
- Age in days: 1898
- Modified at: 2026-06-17T04:07:29Z
- Patch available: yes
- References total: 2
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-40824
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-290 | Authentication Bypass by Spoofing |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/matrix-org/matrix-android-sdk2/releases/tag/v1.2.2 | nvd | Patch, Third Party Advisory |
| https://matrix.org/blog/2021/09/13/vulnerability-disclosure-key-sharing | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| matrix:element | < 1.2.2 | no | nvd | /v1/products/matrix/element |
| matrix:matrix-android-sdk2 | < 1.2.2 | no | nvd | /v1/products/matrix/matrix-android-sdk2 |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| matrix-org/matrix-android-sdk2 | releases | yes | /v1/repositories/matrix-org/matrix-android-sdk2 |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Exposed hosts: 2153283
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports