CVEfocus › CVE database › CVE-2021-40823

CVE-2021-40823

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 matrix-js-sdk (aka Matrix Javascript SDK) before 12.4.1 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 homeserver to decrypt end-to-end encrypted messages sent by affected clients.

What to do

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

Ubuntu has not shipped a fix for every release yet.

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
1Fix pending
2Under investigation

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
Ubuntu 24.04node-matrix-js-sdkUnder investigationUBUNTU-CVE-2021-40823
Ubuntu 22.04node-matrix-js-sdkUnder investigationUBUNTU-CVE-2021-40823
Ubuntu 20.04node-matrix-js-sdkFix pendingUBUNTU-CVE-2021-40823
Alpine Linux 3.24element-webFixed1.8.4-r0ALPINE-CVE-2021-40823
Alpine Linux 3.23element-webFixed1.8.4-r0ALPINE-CVE-2021-40823
Alpine Linux 3.22element-webFixed1.8.4-r0ALPINE-CVE-2021-40823
Alpine Linux 3.21element-webFixed1.8.4-r0ALPINE-CVE-2021-40823
Alpine Linux 3.20element-webFixed1.8.4-r0ALPINE-CVE-2021-40823
Alpine Linux 3.19element-webFixed1.8.4-r0ALPINE-CVE-2021-40823
Alpine Linux 3.18element-webFixed1.8.4-r0ALPINE-CVE-2021-40823
Alpine Linux 3.17riot-webFixed1.8.4-r0ALPINE-CVE-2021-40823
Alpine Linux 3.16riot-webFixed1.8.4-r0ALPINE-CVE-2021-40823
Alpine Linux 3.15riot-webFixed1.8.4-r0ALPINE-CVE-2021-40823
Alpine Linux 3.14riot-webFixed1.8.4-r0ALPINE-CVE-2021-40823
npm librarymatrix-js-sdkFixed12.4.1GHSA-23cm-x6j7-6hq3

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.