Skip to content
OpenAdvisories
Medium · 5.9 CVE-2021-40824 EUVD-2022-4389GHSA-jjmc-4p83-pp26

Logic error in Matrix SDK for Android

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

Description

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.

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
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
Maven org.matrix.android:matrix-android-sdk2 < 1.2.2 1.2.2 GHSA-jjmc-4p83-pp26

References