{"schemaVersion":3,"id":"CVE-2024-42369","aliases":["UBUNTU-CVE-2024-42369","DEBIAN-CVE-2024-42369","GHSA-vhr5-g3pm-49fm","openSUSE-SU-2024:14288-1","openSUSE-SU-2024:14289-1"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2024-08-20T14:37:19.226Z","modified":"2024-09-03T17:06:42.231Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":10,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":10,"impact":2.3,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Npm","score":5.1,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:L","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":4.1,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L","exploitability":5.9,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00483,"percentile":0.40261,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00483},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00483,"percentile":0.40261}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00483,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00483,"percentile":0.40261}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-674","name":"Uncontrolled Recursion","description":"The product does not properly control the amount of recursion that takes place,  consuming excessive resources, such as allocated memory or the program stack.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/674.html"}],"affected":[{"vendor":"debian","product":"node-matrix-js-sdk","name":"node-matrix-js-sdk","label":"node-matrix-js-sdk","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/node-matrix-js-sdk","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"node-matrix-js-sdk","name":"node-matrix-js-sdk","label":"node-matrix-js-sdk","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/node-matrix-js-sdk","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"matrix-org","product":"matrix-js-sdk","name":"matrix-js-sdk","label":"matrix-js-sdk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 34.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 34.3.1","eol":null,"hubHref":"/vendor/matrix-org/matrix-js-sdk"},{"vendor":"matrix","product":"javascript_sdk","name":"javascript sdk","label":"javascript_sdk","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 34.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 34.3.1","eol":null,"hubHref":"/vendor/matrix/javascript_sdk"},{"vendor":"Npm","product":"matrix-js-sdk","name":"matrix-js-sdk","label":"matrix-js-sdk","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/matrix-js-sdk","purlType":"npm","versions":[{"text":"< 34.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 34.3.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"element-desktop&distro=openSUSE Tumbleweed","name":"element-desktop","label":"element-desktop&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/element-desktop&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 1.11.75-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.11.75-1.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"element-web&distro=openSUSE Tumbleweed","name":"element-web","label":"element-web&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/element-web&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 1.11.75-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.11.75-1.1","eol":null,"hubHref":null}],"affectedCount":7,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-vhr5-g3pm-49fm","label":"github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-vhr5-g3pm-49fm","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Vendor Advisory"]},{"url":"https://github.com/matrix-org/matrix-js-sdk/commit/a0efed8b881b3db6c9f2c71d6a6e74c2828978c6","label":"github.com/matrix-org/matrix-js-sdk/commit/a0efed8b881b3db6c9f2c71d6a6e74c2828978c6","hostname":"github.com","tags":["X Refsource MISC","WEB","Patch"]},{"url":"https://ubuntu.com/security/CVE-2024-42369","label":"ubuntu.com/security/CVE-2024-42369","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-42369","label":"www.cve.org/CVERecord?id=CVE-2024-42369","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-42369","label":"security-tracker.debian.org/tracker/CVE-2024-42369","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-42369","label":"nvd.nist.gov/vuln/detail/CVE-2024-42369","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/matrix-org/matrix-js-sdk","label":"github.com/matrix-org/matrix-js-sdk","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://www.suse.com/security/cve/CVE-2024-42369","label":"www.suse.com/security/cve/CVE-2024-42369","hostname":"www.suse.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-08-20T14:37:19.226Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-03T17:06:42.231Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":21,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T05:57:06.210Z","stale":false,"partial":false}}