CVE-2024-42369 A room with itself as a its predecessor will freeze matrix-js-sdk
MediumCVSS 5.3
EPSS 0.48%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
6 packages: 2 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/node-matrix-js-sdk(Debian 11) | = 9.3.0+~cs9.9.16-2; = 9.7.0~~rc1+~cs9.9.16-1; = 9.7.0~~rc1+~cs9.9.16-2; = 9.11.0+~cs9.9.16-1 +2 more | No fix listed | No fix yet |
| ubuntu/node-matrix-js-sdk(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/node-matrix-js-sdk(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| matrix javascript sdk | < 34.3.1 | 34.3.1 | Fixed |
| npm matrix-js-sdk(npm) | < 34.3.1 | 34.3.1 | Fixed |
| matrix-org matrix-js-sdk | = < 34.3.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| npm matrix-js-sdk(npm) | < 34.3.1 | 34.3.1 |
| debian/node-matrix-js-sdk(Debian:11) | All versions | No fix listed |
| debian/node-matrix-js-sdk(Debian:11) | = 9.11.0+~cs9.9.16-1 | No fix listed |
| debian/node-matrix-js-sdk(Debian:11) | = 9.11.0+~cs9.9.16-2 | No fix listed |
| debian/node-matrix-js-sdk(Debian:11) | = 9.3.0+~cs9.9.16-2 | No fix listed |
| debian/node-matrix-js-sdk(Debian:11) | = 9.7.0~~rc1+~cs9.9.16-1 | No fix listed |
| debian/node-matrix-js-sdk(Debian:11) | = 9.7.0~~rc1+~cs9.9.16-2 | No fix listed |
| ubuntu/node-matrix-js-sdk(Ubuntu:22.04) | All versions | No fix listed |
| matrix-org matrix-js-sdk | = < 34.3.1 | No fix listed |
| ubuntu/node-matrix-js-sdk(Ubuntu:24.04) | All versions | No fix listed |
| matrix javascript sdk | < 34.3.1 | 34.3.1 |
References
- https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-vhr5-g3pm-49fm vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/matrix-org/matrix-js-sdk/commit/a0efed8b881b3db6c9f2c71d6a6e74c2828978c6 patch
- github.com
- security-tracker.debian.org vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- github.com product