CVE-2022-39248 matrix-android-sdk2 vulnerable to Olm/Megolm protocol confusion
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
Description
matrix-android-sdk2 is the Matrix SDK for Android. Prior to version 1.5.1, an attacker cooperating with a malicious homeserver can construct messages that legitimately appear to have come from another person, without any indication such as a grey shield. Additionally, a sophisticated attacker cooperating with a malicious homeserver could employ this vulnerability to perform a targeted attack in order to send fake to-device messages appearing to originate from another user. This can allow, for example, to inject the key backup secret during a self-verification, to make a targeted device start using a malicious key backup spoofed by the homeserver. matrix-android-sdk2 would then additionally sign such a key backup with its device key, spilling trust over to other devices trusting the matrix-android-sdk2 device. These attacks are possible due to a protocol confusion vulnerability that accepts to-device messages encrypted with Megolm instead of Olm. matrix-android-sdk2 version 1.5.1 has been modified to only accept Olm-encrypted to-device messages and to stop signing backups on a successful decryption. Out of caution, several other checks have been audited or added. This attack requires coordination between a malicious home server and an attacker, so those who trust their home servers do not need a workaround.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| matrix software development kit | < 1.5.1 | 1.5.1 | Fixed |
| org.matrix.android/matrix-android-sdk2(Maven) | < 1.5.1; <= 1.4.36; = 0.0.2; = 1.2.1 +22 more | 1.5.1 | Fixed |
| matrix-org matrix-android-sdk2 | = < 1.5.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.matrix.android/matrix-android-sdk2(Maven) | <= 1.4.36 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | < 1.5.1 | 1.5.1 |
| org.matrix.android/matrix-android-sdk2(Maven) | = 0.0.2 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.2.1 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.2.2 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.3.0 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.3.10 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.3.13 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.3.14 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.3.18 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.3.2 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.3.4 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.3.7 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.3.8 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.3.9 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.4.11 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.4.13 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.4.14 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.4.16 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.4.2 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.4.25 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.4.27 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.4.32 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.4.34 | No fix listed |
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.4.36 | No fix listed |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| org.matrix.android/matrix-android-sdk2(Maven) | = 1.4.4 | No fix listed |
| matrix-org matrix-android-sdk2 | = < 1.5.1 | No fix listed |
| matrix software development kit | < 1.5.1 | 1.5.1 |
References
- github.com patch third-party-advisory vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch third-party-advisory
- github.com release-notes third-party-advisory
- matrix.org vendor-advisory
- github.com
- github.com product