CVE-2024-42369
A room with itself as a its predecessor will freeze matrix-js-sdk
Reported by github_m · Published August 20, 2024
matrix-js-sdk is fixed in 34.3.1 (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| matrix-js-sdk | npm | 34.3.1 |
| javascript_sdk | matrix | 34.3.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| matrix-org | matrix-js-sdk | < 34.3.1 |
| matrix-org | matrix-js-sdk | 0 |
| npm | matrix-js-sdk | 0 |
Timeline
- Aug 20, 2024 CVE Published
- Aug 20, 2024 PoC Published
- Aug 20, 2024 CVE Updated
- Aug 21, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (13 in total, the first dated here)
- Jan 6, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-42369
vulnetix vdb fixes CVE-2024-42369
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-42369/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-vhr5-g3pm-49fm x_refsource_CONFIRM
- https://github.com/matrix-org/matrix-js-sdk/commit/a0efed8b881b3db6c9f2c71d6a6e74c2828978c6 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-42369 advisory
- https://github.com/advisories/GHSA-vhr5-g3pm-49fm advisory
- https://github.com/matrix-org/matrix-js-sdk url