CVE-2024-47824 Malicious homeservers can steal message keys when the matrix-react-sdk user invites another user to a room
A malicious homeserver can steal message keys when a user invites another user, exposing encrypted chat history.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-47824?
CVE-2024-47824 is a high-severity vulnerability in matrix-org matrix-react-sdk, published on 15 Oct 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-200
Which versions are affected by CVE-2024-47824?
2 open source packages ship an affected version, including matrix-react-sdk.
| Package | Affected | Fixed in |
|---|---|---|
matrix-react-sdk npm | From 3.18.0 | 3.102.0 |
matrix-react-sdk npm | From 3.18.0 | 3.102.0 |
How do I fix CVE-2024-47824?
Upgrade matrix-react-sdk to 3.102.0 or later.
Is CVE-2024-47824 being exploited?
There is no known exploitation of CVE-2024-47824 in the wild and no public exploit code.
Sources
Also known as GHSA-qcvh-p9jq-wp8v.