Read the docs
TI-2022-18623 Aliases CVE-2022-39246GHSA-2pvj-p485-cp3m

matrix-android-sdk2 vulnerable to impersonation via forwarded Megolm sessions

Priority MEDIUM 40CWE-287Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00866 58th percentileScored 2026-11-07
Fix Fixed matrix-android-sdk2 (matrix-org): 1.5.1org.matrix.android:matrix-android-sdk2 (Maven): 1.5.1

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

VendorProductAffected versionsFixed inStatusSource
matrix-orgmatrix-android-sdk2before 1.5.11.5.1Patch availableCNA
—org.matrix.android:matrix-android-sdk2 (Maven)before 1.5.11.5.1Patch availableGHSA-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

CPEVersionsRoleVendor
cpe:2.3:a:matrix:software_development_kit:*:*:*:*:*:android:*:*before 1.5.1Vulnerablematrix-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

  1. 2026-10-02 Threatist record created from CVE-2022-39246
  2. 2026-10-03 Alias added: GHSA-2pvj-p485-cp3m

References

  • 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