CVE-2022-39236 Matrix Javascript SDK improper beacon events can cause availability issues
Attackers can send malformed beacon events to disrupt the Matrix JavaScript SDK, causing data corruption or service unavailability for client applications.
- 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-2022-39236?
CVE-2022-39236 is a medium-severity denial of service vulnerability in matrix-org matrix-js-sdk, published on 28 Sep 2022. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Matrix Javascript SDK is the Matrix Client-Server SDK for JavaScript. Starting with version 17.1.0-rc.1, improperly formed beacon events can disrupt or impede the matrix-js-sdk from functioning properly, potentially impacting the consumer's ability to process data safely. Note that the matrix-js-sdk can appear to be operating normally but be excluding or corrupting runtime data presented to the consumer. This is patched in matrix-js-sdk v19.7.0. Redacting applicable events, waiting for the sync processor to store data, and restarting the client are possible workarounds. Alternatively, redacting the applicable events and clearing all storage will fix the further perceived issues. Downgrading to an unaffected version, noting that such a version may be subject to other vulnerabilities, will additionally resolve the issue.
Weakness: CWE-20
Which versions are affected by CVE-2022-39236?
2 open source packages ship an affected version, including matrix-js-sdk. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
matrix-js-sdk npm | From 17.1.0-rc.1 | 19.7.0 |
matrix-js-sdk npm | From 17.1.0-rc.1 | 19.7.0 |
Products include Matrix Javascript Sdk.
How do I fix CVE-2022-39236?
Upgrade matrix-js-sdk to 19.7.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2022-39236 being exploited?
There is no known exploitation of CVE-2022-39236 in the wild and no public exploit code.
Other vulnerabilities in matrix-org matrix-js-sdk
- CVE-2022-39250 Matrix JavaScript SDK vulnerable to key/device identifier confusion in SAS verification
- CVE-2022-39251 Matrix Javascript SDK vulnerable to Olm/Megolm protocol confusion
- CVE-2022-36059 Prototype pollution in matrix-js-sdk
- CVE-2023-28427 Prototype pollution in matrix-js-sdk
- CVE-2022-39249 Matrix Javascript SDK vulnerable to impersonation via forwarded Megolm sessions
Sources
Also known as CLEANSTART-2024-EM09581, DEBIAN-CVE-2022-39236, GHSA-hvv8-5v86-r45x, UBUNTU-CVE-2022-39236.