# CVE-2021-40824: Logic error in Matrix SDK for Android

Source: https://junglewise.ai/threats/cve-2021-40824-logic-error-in-matrix-sdk-for-android  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-05-24  
License: CC BY 4.0 with a link back

CVE-2021-40824 · Severity: low · CVSS 3.1 · Published 2022-05-24

Logic error in Matrix SDK for Android

Technologies: [org.matrix.android:matrix-android-sdk2 (Maven)](https://junglewise.ai/threats/technologies/org-matrix-android-matrix-android-sdk2). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2021-40824 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-40824 being exploited in the wild.

**How severe is CVE-2021-40824?** Low severity, with a CVSS score of 3.1, published 24 May 2022.

**Which products and versions are affected?** org.matrix.android:matrix-android-sdk2 (Maven) ECOSYSTEM:introduced=0,fixed=1.2.2.

**Is there a fix for CVE-2021-40824?** Yes. org.matrix.android:matrix-android-sdk2 (Maven): upgrade to 1.2.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-40824?** Check whether you run org.matrix.android:matrix-android-sdk2 (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- org.matrix.android:matrix-android-sdk2 (Maven): upgrade to 1.2.2 or later

  ```sh
  # set org.matrix.android:matrix-android-sdk2 to 1.2.2 in your pom.xml or build.gradle
  ```


## Affected products

- org.matrix.android:matrix-android-sdk2 (Maven) ECOSYSTEM:introduced=0,fixed=1.2.2

## Identifiers

- CVE-2021-40824
- GHSA-jjmc-4p83-pp26

## Related threats

- [matrix-android-sdk2 vulnerable to Olm/Megolm protocol confusion](https://junglewise.ai/threats/cve-2022-39248-matrix-android-sdk2-vulnerable-to-olm-megolm-protocol-confusion)
- [matrix-android-sdk2 vulnerable to impersonation via forwarded Megolm sessions](https://junglewise.ai/threats/cve-2022-39246-matrix-android-sdk2-vulnerable-to-impersonation-via-forwarded)
