CVE-2022-39250

Summary

CVECVE-2022-39250
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-09-29 13:15:00 UTC
Updated2022-12-03 01:28:00 UTC
DescriptionMatrix JavaScript SDK is the Matrix Client-Server software development kit (SDK) for JavaScript. Prior to version 19.7.0, an attacker cooperating with a malicious homeserver could interfere with the verification flow between two users, injecting its own cross-signing user identity in place of one of the users’ identities. This would lead to the other device trusting/verifying the user identity under the control of the homeserver instead of the intended one. The vulnerability is a bug in the matrix-js-sdk, caused by checking and signing user identities and devices in two separate steps, and inadequately fixing the keys to be signed between those steps. Even though the attack is partly made possible due to the design decision of treating cross-signing user identities as Matrix devices on the server side (with their device ID set to the public part of the user identity key), no other examined implementations were vulnerable. Starting with version 19.7.0, the matrix-js-sdk has been modified to double check that the key signed is the one that was verified instead of just referencing the key by ID. An additional check has been made to report an error when one of the device ID matches a cross-signing key. As this attack requires coordination between a malicious homeserver and an attacker, those who trust their homeservers do not need a particular workaround.

Risk And Classification

Problem Types: CWE-287

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Matrix Javascript Sdk All All All All

References

ReferenceSourceLinkTags
Upgrade now to address E2EE vulnerabilities in matrix-js-sdk, matrix-ios-sdk and matrix-android-sdk2 | Matrix.org MISC matrix.org
Mozilla Thunderbird: Multiple Vulnerabilities (GLSA 202210-35) — Gentoo security GENTOO security.gentoo.org
Release v19.7.0 · matrix-org/matrix-js-sdk · GitHub MISC github.com
Key/device identifier confusion in SAS verification · Advisory · matrix-org/matrix-js-sdk · GitHub CONFIRM github.com
Resolve multiple CVEs · matrix-org/matrix-js-sdk@a587d7c · GitHub MISC github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 160177 Oracle Enterprise Linux Security Update for thunderbird (ELSA-2022-7184)
  • 160181 Oracle Enterprise Linux Security Update for thunderbird (ELSA-2022-7178)
  • 160184 Oracle Enterprise Linux Security Update for thunderbird (ELSA-2022-7190)
  • 199024 Ubuntu Security Notification for Thunderbird Vulnerabilities (USN-5724-1)
  • 240784 Red Hat Update for thunderbird (RHSA-2022:7184)
  • 240786 Red Hat Update for thunderbird (RHSA-2022:7190)
  • 240787 Red Hat Update for thunderbird (RHSA-2022:7178)
  • 240791 Red Hat Update for thunderbird (RHSA-2022:7182)
  • 240792 Red Hat Update for thunderbird (RHSA-2022:7181)
  • 354131 Amazon Linux Security Advisory for thunderbird : ALAS2-2022-1900
  • 377612 Mozilla Thunderbird Multiple Vulnerabilities (MFSA2022-43)
  • 502515 Alpine Linux Security Update for riot-web
  • 503177 Alpine Linux Security Update for element-web
  • 506037 Alpine Linux Security Update for element-web
  • 690947 Free Berkeley Software Distribution (FreeBSD) Security Update for matrix clients (cb902a77-3f43-11ed-9402-901b0e9408dc)
  • 710676 Gentoo Linux Mozilla Thunderbird Multiple Vulnerabilities (GLSA 202210-35)
  • 753237 SUSE Enterprise Linux Security Update for MozillaThunderbird (SUSE-SU-2022:3800-1)
  • 940708 AlmaLinux Security Update for thunderbird (ALSA-2022:7190)
  • 940711 AlmaLinux Security Update for thunderbird (ALSA-2022:7178)
  • 960256 Rocky Linux Security Update for thunderbird (RLSA-2022:7190)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report