Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-vhr5-g3pm-49fm

Опубликовано: 20 авг. 2024
Источник: github
Github: Прошло ревью
CVSS4: 5.1
CVSS3: 4.1

Описание

matrix-js-sdk will freeze when a user sets a room with itself as a its predecessor

Impact

A malicious homeserver can craft a room or room structure such that the predecessors form a cycle. The matrix-js-sdk's getRoomUpgradeHistory function will infinitely recurse in this case, causing the code to hang. This method is public but also called by the 'leaveRoomChain()' method, so leaving a room will also trigger the bug.

Even if the CVSS score would be 4.1 (AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L) we classify this as High severity issue.

Patches

This was patched in matrix-js-sdk 34.3.1.

Workarounds

Sanity check rooms before passing them to the matrix-js-sdk or avoid calling either getRoomUpgradeHistory or leaveRoomChain.

References

N/A.

Пакеты

Наименование

matrix-js-sdk

npm
Затронутые версииВерсия исправления

< 34.3.1

34.3.1

EPSS

Процентиль: 42%
0.00205
Низкий

5.1 Medium

CVSS4

4.1 Medium

CVSS3

Дефекты

CWE-674

Связанные уязвимости

CVSS3: 4.1
ubuntu
больше 1 года назад

matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. A malicious homeserver can craft a room or room structure such that the predecessors form a cycle. The matrix-js-sdk's getRoomUpgradeHistory function will infinitely recurse in this case, causing the code to hang. This method is public but also called by the 'leaveRoomChain()' method, so leaving a room will also trigger the bug. This was patched in matrix-js-sdk 34.3.1.

CVSS3: 4.1
nvd
больше 1 года назад

matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. A malicious homeserver can craft a room or room structure such that the predecessors form a cycle. The matrix-js-sdk's getRoomUpgradeHistory function will infinitely recurse in this case, causing the code to hang. This method is public but also called by the 'leaveRoomChain()' method, so leaving a room will also trigger the bug. This was patched in matrix-js-sdk 34.3.1.

CVSS3: 4.1
debian
больше 1 года назад

matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for Jav ...

EPSS

Процентиль: 42%
0.00205
Низкий

5.1 Medium

CVSS4

4.1 Medium

CVSS3

Дефекты

CWE-674