VDB

CVE-2024-42369

CVE-2024-42369 PUBLISHED CVSS 4.1 MEDIUM

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.

PackageEcosystemFixed in
matrix-js-sdknpm34.3.1
javascript_sdkmatrix34.3.1

Risk scores

CVSS 3.1
4.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:N/A:L

Affected products

VendorProductVersions
matrix-orgmatrix-js-sdk< 34.3.1
matrix-orgmatrix-js-sdk0
npmmatrix-js-sdk0

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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›