Security mailing lists by PureSourceCode

CVE-2021-40824

MEDIUM 5.9CVSS 3.1

Logic 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD matrix element
cpe:2.3:a:matrix:element:*:*:*:*:*:android:*:*
< 1.2.2 1.2.2
NVD matrix matrix-android-sdk2
cpe: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

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.