CVE-2024-42369: matrix-org matrix-js-sdk Uncontrolled Recursion
Vulnerability summary
CVE-2024-42369 is a medium (CVSS 5.3) Uncontrolled Recursion vulnerability in matrix-org matrix-js-sdk. EPSS estimates a 0.48% chance of exploitation in the next 30 days, higher than 40.2% of scored vulnerabilities.
Timeline
- 20-08-2024PublishedVulnerability first disclosed.
- 03-09-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 5 sources · 2 versions- CVE.orgCNA4.1MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · NpmEcosystem advisory · calculated4.1MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:LDiffers
EPSS trend
Probability
0.48%
Chance of exploitation in the next 30 days
Percentile
40%
Versus all other CVEs
30-day change
0.00 pp
From 0.48% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Opensuse2 products
- element-desktop&distro=openSUSE Tumbleweed< 1.11.75-1.1
- element-web&distro=openSUSE Tumbleweed< 1.11.75-1.1
Debian1 product
- node-matrix-js-sdkAll versions (No fix recorded)
Matrix1 product
- javascript_sdk< 34.3.1
Matrix-org1 product
- matrix-js-sdk< 34.3.1
Npm1 product
- matrix-js-sdk< 34.3.1
Ubuntu1 product
- node-matrix-js-sdkAll versions (No fix recorded)
6 vendors · 7 products
References
8 links- github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-vhr5-g3pm-49fmX Refsource CONFIRMWEBVendor Advisory
- github.com/matrix-org/matrix-js-sdk/commit/a0efed8b881b3db6c9f2c71d6a6e74c2828978c6X Refsource MISCWEBPatch