matrix-android-sdk2 vulnerable to impersonation via forwarded Megolm sessions
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-287.
Summary
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 appearing to have come from another person. Such messages will be marked with a grey shield on some platforms, but this may be missing in others. This attack is possible due to the key forwarding strategy implemented in the matrix-android-sdk2 that is too permissive. Starting with version 1.5.1, the default policy for accepting key forwards has been made more strict in the matrix-android-sdk2. The matrix-android-sdk2 will now only accept forwarded keys in response to previously issued requests and only from own, verified devices. The SDK now sets a `trusted` flag on the decrypted message upon decryption, based on whether the key used to decrypt the message was received from a trusted source. Clients need to ensure that messages decrypted with a key with `trusted = false` are decorated appropriately (for example, by showing a warning for such messages). As a workaroubnd, current users of the SDK can disable key forwarding in their forks using `CryptoService#enableKeyGossiping(enable: Boolean)`.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| matrix-org | matrix-android-sdk2 | before 1.5.1 | 1.5.1 | Patch available | CNA |
| — | org.matrix.android:matrix-android-sdk2 (Maven) | before 1.5.1 | 1.5.1 | Patch available | GHSA-2pvj-p485-cp3m |
- matrix-android-sdk2 Vendormatrix-org Affected before 1.5.1 Fixed in 1.5.1 Patch available CNA
- org.matrix.android:matrix-android-sdk2 (Maven) Vendor— Affected before 1.5.1 Fixed in 1.5.1 Patch available GHSA-2pvj-p485-cp3m
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:matrix:software_development_kit:*:*:*:*:*:android:*:* | before 1.5.1 | Vulnerable | matrix-org |
- cpe:2.3:a:matrix:software_development_kit:*:*:*:*:*:android:*:* Versions before 1.5.1 Vulnerable ·matrix-org
Remediation
- Fix · CNA matrix-android-sdk2 (matrix-org) Fixed in 1.5.1
- Fix · GHSA-2pvj-p485-cp3m org.matrix.android:matrix-android-sdk2 (Maven) Fixed in 1.5.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-39246
- 2026-10-03 Alias added: GHSA-2pvj-p485-cp3m
References
Patch 3
Advisory 2
More matrix-org Software Development Kit vulnerabilities
- TI-2022-18631 Matrix iOS SDK vulnerable ton Olm/Megolm protocol confusion CVSS 3.1HIGH 8.6
- TI-2022-18624 matrix-android-sdk2 vulnerable to Olm/Megolm protocol confusion CVSS 3.1HIGH 8.6
- TI-2022-18633 Matrix iOS SDK vulnerable to impersonation via forwarded Megolm sessions CVSS 3.1HIGH 7.5
Sources
- CVE-2022-39246 · CVE Program
- CVE-2022-39246 · NVD
- FIRST EPSS
- GHSA-2pvj-p485-cp3m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences