matrix-js-sdk up to 19.6.x Message key exchange without entity authentication

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.8$0-$5k0.00

Summaryinfo

A vulnerability, which was classified as critical, has been found in matrix-js-sdk up to 19.6.x. This impacts an unknown function of the component Message Handler. The manipulation leads to key exchange without entity authentication. This vulnerability is referenced as CVE-2022-39251. Remote exploitation of the attack is possible. No exploit is available. It is advisable to upgrade the affected component.

Detailsinfo

A vulnerability was found in matrix-js-sdk up to 19.6.x. It has been rated as critical. This issue affects an unknown functionality of the component Message Handler. The manipulation with an unknown input leads to a key exchange without entity authentication vulnerability. Using CWE to declare the problem leads to CWE-322. The product performs a key exchange with an actor without verifying the identity of that actor. Impacted is integrity. The summary by CVE is:

Matrix Javascript SDK is the Matrix Client-Server SDK for JavaScript. Prior to version 19.7.0, 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. These attacks are possible due to a protocol confusion vulnerability that accepts to-device messages encrypted with Megolm instead of Olm. Starting with version 19.7.0, matrix-js-sdk has been modified to only accept Olm-encrypted to-device messages. 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.

The weakness was published 09/29/2022 as GHSA-r48r-j8fx-mq2c. It is possible to read the advisory at github.com. The identification of this vulnerability is CVE-2022-39251 since 09/02/2022. The technical details are unknown and an exploit is not publicly available.

The vulnerability scanner Nessus provides a plugin with the ID 208577 (CentOS 7 : thunderbird (RHSA-2022:7184)), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 19.7.0 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch a587d7c36026fe1fcf93dfff63588abee359be76 is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.

The vulnerability is also documented in the vulnerability database at Tenable (208577). Be aware that VulDB is the high quality source for vulnerability data.

Productinfo

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.9
VulDB Meta Temp Score: 6.8

VulDB Base Score: 5.3
VulDB Temp Score: 5.1
VulDB Vector: 🔍
VulDB Reliability: 🔍

CNA Base Score: 8.6
CNA Vector (GitHub, Inc.): 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Key exchange without entity authentication
CWE: CWE-322 / CWE-320
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 208577
Nessus Name: CentOS 7 : thunderbird (RHSA-2022:7184)

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: matrix-js-sdk 19.7.0
Patch: a587d7c36026fe1fcf93dfff63588abee359be76

Timelineinfo

09/02/2022 🔍
09/29/2022 +27 days 🔍
09/29/2022 +0 days 🔍
10/15/2024 +747 days 🔍

Sourcesinfo

Advisory: GHSA-r48r-j8fx-mq2c
Status: Confirmed

CVE: CVE-2022-39251 (🔍)
GCVE (CVE): GCVE-0-2022-39251
GCVE (VulDB): GCVE-100-209735

Entryinfo

Created: 09/29/2022 08:33
Updated: 10/15/2024 16:16
Changes: 09/29/2022 08:33 (53), 10/15/2024 16:16 (16)
Complete: 🔍
Cache ID: 216::103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!