CVE-2022-39249: high-severity vulnerability in matrix-org matrix-js-sdk
Matrix Javascript SDK vulnerable to impersonation via forwarded Megolm sessions
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
No sign of exploitation. No public exploitation artifact known so far.
The Matrix Javascript SDK before version 19.7.0 allows attackers working with a malicious homeserver to create fake messages that appear to come from other users. The vulnerability exists because the SDK was too permissive in accepting forwarded encryption keys, making it possible to impersonate someone in encrypted conversations.
CVE-2022-39249 exploits a weak key forwarding validation in matrix-js-sdk's Megolm decryption mechanism. An attacker colluding with a compromised homeserver can inject forwarded session keys without proper verification, enabling message impersonation in end-to-end encrypted rooms. The fix enforces stricter acceptance policies, requiring forwarded keys to originate from previously-requested sources and verified devices, with a `trusted` flag marking decryption authenticity.
In the same product, most dangerous first.