{"id":"CVE-2021-40824","published":"2021-09-13T18:49:28Z","modified":"2024-08-04T02:51:07Z","title":"A logic error in the room key sharing functionality of Element Android before 1.2.2 and matrix-android-sdk2 (aka…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00662,"percentile":0.52604,"provenance":"source"},"cwes":[],"references":[{"url":"https://matrix.org/blog/2021/09/13/vulnerability-disclosure-key-sharing","tags":["x_refsource_MISC"]},{"url":"https://github.com/matrix-org/matrix-android-sdk2/releases/tag/v1.2.2","tags":["x_refsource_MISC"]}],"priority":{"score":10.5,"factors":[{"name":"EPSS percentile","points":10.52}]},"affected":[{"ecosystem":"Maven","package":"org.matrix.android:matrix-android-sdk2","vulnerableRanges":["<1.2.2"],"patched":["1.2.2"],"from":["GHSA-jjmc-4p83-pp26"],"provenance":"source"}],"summary":{"text":"A logic error in the room key sharing functionality of Element Android before 1.2.2 and matrix-android-sdk2 (Matrix SDK for Android) before 1.2.2 lets the affected Matrix client software leak room encryption keys. The flaw sits in the key-sharing code of those Android products. A malicious Matrix homeserver that is present in an encrypted room can use crafted Matrix protocol messages to steal room keys originally sent by affected clients in that room, and then decrypt the end-to-end encrypted messages those clients send.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:15Z"},"euvd":{"id":"EUVD-2022-4389","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-40824","published":"2021-09-13","fixed":"1.2.2","kev":false},{"cve":"CVE-2022-39246","published":"2022-09-28","fixed":"1.5.1","kev":false,"link":{"from":"CVE-2021-40824","to":"CVE-2022-39246","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.matrix.android:matrix-android-sdk2","fromFixed":"1.2.2","toFixed":"1.5.1","daysApart":380},{"kind":"similar","provenance":"machine","score":0.38,"basis":"same package + description similarity"}]}},{"cve":"CVE-2022-39248","published":"2022-09-28","fixed":"1.5.1","kev":false,"link":{"from":"CVE-2021-40824","to":"CVE-2022-39248","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.matrix.android:matrix-android-sdk2","fromFixed":"1.2.2","toFixed":"1.5.1","daysApart":380},{"kind":"similar","provenance":"machine","score":0.38,"basis":"same package + description similarity"}]}}],"package":"Maven:org.matrix.android:matrix-android-sdk2"}}