CVEfocus › CVE database › CVE-2021-40824

CVE-2021-40824

CVSS 5.9 MediumEPSS 0.7% (higher than 47% of CVEs)Published 2021-09-13Updated 2024-08-04Assigner: mitre

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.

What to do

Fixed builds are available from Alpine, Maven: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

12Fixed

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Alpine Linux 3.24element-webFixed1.8.4-r0ALPINE-CVE-2021-40824
Alpine Linux 3.23element-webFixed1.8.4-r0ALPINE-CVE-2021-40824
Alpine Linux 3.22element-webFixed1.8.4-r0ALPINE-CVE-2021-40824
Alpine Linux 3.21element-webFixed1.8.4-r0ALPINE-CVE-2021-40824
Alpine Linux 3.20element-webFixed1.8.4-r0ALPINE-CVE-2021-40824
Alpine Linux 3.19element-webFixed1.8.4-r0ALPINE-CVE-2021-40824
Alpine Linux 3.18element-webFixed1.8.4-r0ALPINE-CVE-2021-40824
Alpine Linux 3.17riot-webFixed1.8.4-r0ALPINE-CVE-2021-40824
Alpine Linux 3.16riot-webFixed1.8.4-r0ALPINE-CVE-2021-40824
Alpine Linux 3.15riot-webFixed1.8.4-r0ALPINE-CVE-2021-40824
Alpine Linux 3.14riot-webFixed1.8.4-r0ALPINE-CVE-2021-40824
Maven libraryorg.matrix.android:matrix-android-sdk2Fixed1.2.2GHSA-jjmc-4p83-pp26

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.