CVE-2024-42347 URL preview setting for a room is controllable by the homeserver in matrix-react-sdk
A malicious homeserver can force URL previews in encrypted rooms, leaking URLs from encrypted messages to the server.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-42347?
CVE-2024-42347 is a high-severity vulnerability in matrix-org matrix-react-sdk, published on 6 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
matrix-react-sdk is a react-based SDK for inserting a Matrix chat/voip client into a web page. A malicious homeserver could manipulate a user's account data to cause the client to enable URL previews in end-to-end encrypted rooms, in which case any URLs in encrypted messages would be sent to the server. This was patched in matrix-react-sdk 3.105.0. Deployments that trust their homeservers, as well as closed federations of trusted servers, are not affected. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Weakness: CWE-359
Which versions are affected by CVE-2024-42347?
2 open source packages ship an affected version, including matrix-react-sdk. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
matrix-react-sdk npm | All versions | 3.105.1 |
matrix-react-sdk npm | All versions | 3.105.1 |
Linux distribution packages (2)
element-desktop openSUSE:Tumbleweed | All versions | 1.11.73-1.1 |
element-web openSUSE:Tumbleweed | All versions | 1.11.73-1.1 |
Products include Matrix Matrix-React-Sdk.
How do I fix CVE-2024-42347?
Upgrade matrix-react-sdk to 3.105.1 or later.
Is CVE-2024-42347 being exploited?
There is no known exploitation of CVE-2024-42347 in the wild and no public exploit code.
Sources
Also known as GHSA-f83w-wqhc-cfp4, openSUSE-SU-2024:14242-1, openSUSE-SU-2024:14273-1.