{"id":"UBUNTU-CVE-2024-42369","details":"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.","modified":"2025-10-24T05:11:47Z","published":"2024-08-20T15:15:00Z","upstream":["CVE-2024-42369"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-42369"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-42369"}],"affected":[{"package":{"name":"node-matrix-js-sdk","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/node-matrix-js-sdk@0.9.2-1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-matrix-js-sdk","binary_version":"0.9.2-1"},{"binary_name":"node-matrix-js-sdk","binary_version":"0.9.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-42369.json"}},{"package":{"name":"node-matrix-js-sdk","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/node-matrix-js-sdk@9.11.0+~cs9.9.16-1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.3.0+~cs9.9.16-2","9.11.0+~cs9.9.16-1"],"ecosystem_specific":{"binaries":[{"binary_name":"libjs-matrix-js-sdk","binary_version":"9.11.0+~cs9.9.16-1"},{"binary_name":"node-matrix-js-sdk","binary_version":"9.11.0+~cs9.9.16-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-42369.json"}},{"package":{"name":"node-matrix-js-sdk","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/node-matrix-js-sdk@9.11.0+~cs9.9.16-2?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.11.0+~cs9.9.16-2"],"ecosystem_specific":{"binaries":[{"binary_version":"9.11.0+~cs9.9.16-2","binary_name":"libjs-matrix-js-sdk"},{"binary_name":"node-matrix-js-sdk","binary_version":"9.11.0+~cs9.9.16-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-42369.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"type":"Ubuntu","score":"medium"}]}