Read the docs
TI-2022-18624 Aliases CVE-2022-39248GHSA-fpgf-pjjv-2qgm

matrix-android-sdk2 vulnerable to Olm/Megolm protocol confusion

Priority MEDIUM 45CWE-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 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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00996 62nd 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-fpgf-pjjv-2qgm
  • 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-fpgf-pjjv-2qgm

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-fpgf-pjjv-2qgm org.matrix.android:matrix-android-sdk2 (Maven) Fixed in 1.5.1 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2022-39248
  2. 2026-10-03 Alias added: GHSA-fpgf-pjjv-2qgm

References

  • TI-2022-18631 Matrix iOS SDK vulnerable ton 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
  • TI-2022-18623 matrix-android-sdk2 vulnerable to impersonation via forwarded Megolm sessions CVSS 3.1HIGH 7.5

Sources