CVE-2021-40824
mediumpriority · track · 24OT risk · elevatedEPSS 0.007 · 52 %ileEUUSEPSS · scored 2026-10-28
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (4)
Products and version ranges known to be affected.
- Maven org.matrix.android:matrix-android-sdk2< 1.2.2osvUSpkg:maven/org.matrix.android/matrix-android-sdk2
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-jjmc-4p83-pp26Logic error in Matrix SDK for Android2022-05-24ghsa · osvUS
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 leads to a situation where identity verification is inadequate and thus a key-requesting device can be impersonated.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- https://github.com/matrix-org/matrix-android-sdk2/releases/tag/v1.2.2cnnvd
- https://github.com/matrix-org/matrix-js-sdk。Patchcnnvd
- https://matrix.org/blog/2021/09/13/vulnerability-disclosure-key-sharingcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-40824cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021091410cnnvd
- https://github.com/matrix-org/matrix-android-sdk2/releases/tag/v1.2.2enisa_euvd
- https://matrix.org/blog/2021/09/13/vulnerability-disclosure-key-sharingenisa_euvd
- https://github.com/matrix-org/matrix-android-sdk2/releases/tag/v1.2.2PatchThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan