Skip to content
OpenAdvisories
Medium · 5.9 CVE-2021-40823 EUVD-2021-1944GHSA-23cm-x6j7-6hq3

matrix-js-sdk can be tricked into disclosing E2EE room keys to a participating homeserver

Published Sep 13, 2021 · Updated Aug 4, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 node-matrix-js-sdk No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS node-matrix-js-sdk No fix yet —
Ubuntu 22.04 LTS node-matrix-js-sdk No fix yet —
Ubuntu 20.04 LTS node-matrix-js-sdk No fix yet —
ReleasePackageFixed inAdvisory
Alpine v3.24 element-web 1.8.4-r0 —
Alpine v3.23 element-web 1.8.4-r0 —
Alpine v3.22 element-web 1.8.4-r0 —
Alpine v3.21 element-web 1.8.4-r0 —
Alpine v3.20 element-web 1.8.4-r0 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 element-web 1.8.4-r0 —
Alpine v3.18 element-web 1.8.4-r0 —
Alpine v3.17 riot-web 1.8.4-r0 —
Alpine v3.16 riot-web 1.8.4-r0 —
Alpine v3.15 riot-web 1.8.4-r0 —
Alpine v3.14 riot-web 1.8.4-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm matrix-js-sdk < 12.4.1 12.4.1 GHSA-23cm-x6j7-6hq3

References