Skip to content
Heist/ feed
Back to feed
High

Malicious homeservers can steal message keys when the matrix-react-sdk user invites another user to a room

Type: advisorySources: OSV

matrix-react-sdk is react-based software development kit for inserting a Matrix chat/VOIP client into a web page. Starting in version 3.18.0 and before 3.102.0, matrix-react-sdk allows a malicious homeserver to potentially steal message keys for a room when a user invites another user to that room, via injection of a malicious device controlled by the homeserver. This is possible because matrix-react-sdk before 3.102.0 shared historical message keys on invite. Version 3.102.0 fixes this issue by disabling sharing message keys on invite by removing calls to the vulnerable functionality. No known workarounds are available.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-47824
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 01:07 UTC · Revision 1

Source evidence

Malicious homeservers can steal message keys when the matrix-react-sdk user invites another user to a room

core-osv · Original source

Published 15 Oct 2024, 15:40 UTC

matrix-react-sdk is react-based software development kit for inserting a Matrix chat/VOIP client into a web page. Starting in version 3.18.0 and before 3.102.0, matrix-react-sdk allows a malicious homeserver to potentially steal message keys for a room when a user invites another user to that room, via injection of a malicious device controlled by the homeserver. This is possible because matrix-react-sdk before 3.102.0 shared historical message keys on invite. Version 3.102.0 fixes this issue by disabling sharing message keys on invite by removing calls to the vulnerable functionality. No known workarounds are available.

osv:CVE-2024-47824
Complete source record
{
  "id": "e32c5defed28d905ec9882a2e97254f468283ff660906abc9ced2a1eca12637a",
  "url": "https://osv.dev/vulnerability/CVE-2024-47824",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Malicious homeservers can steal message keys when the matrix-react-sdk user invites another user to a room",
    "summary": "matrix-react-sdk is react-based software development kit for inserting a Matrix chat/VOIP client into a web page. Starting in version 3.18.0 and before 3.102.0, matrix-react-sdk allows a malicious homeserver to potentially steal message keys for a room when a user invites another user to that room, via injection of a malicious device controlled by the homeserver. This is possible because matrix-react-sdk before 3.102.0 shared historical message keys on invite. Version 3.102.0 fixes this issue by disabling sharing message keys on invite by removing calls to the vulnerable functionality. No known workarounds are available.",
    "evidence": "osv:CVE-2024-47824",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-47824",
      "aliases": [
        "CVE-2024-47824",
        "GHSA-qcvh-p9jq-wp8v"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/matrix-org/matrix-react-sdk",
              "type": "GIT",
              "events": [
                {
                  "introduced": "51ea02cbab6c779a1ac958999ec09a9fec6bba37"
                },
                {
                  "fixed": "2bf333555765187936f65f581c4007c3e38632e0"
                },
                {
                  "fixed": "6fc9d7641c51ca3db8225cf58b9d6e6fdd2d6556"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "3.18.0"
                      },
                      {
                        "fixed": "3.102.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "6fc9d7641c51ca3db8225cf58b9d6e6fdd2d6556"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-47824.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.842683481Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47824.json",
        "https://github.com/matrix-org/matrix-react-sdk/security/advisories/GHSA-qcvh-p9jq-wp8v",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-47824",
        "https://github.com/matrix-org/matrix-react-sdk/commit/6fc9d7641c51ca3db8225cf58b9d6e6fdd2d6556",
        "https://github.com/matrix-org/matrix-react-sdk/pull/12618"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-200"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/47xxx/CVE-2024-47824.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-47824",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 491422,
  "published_at": "2024-10-15T15:40:37.397+00:00"
}