CVE-2025-66622: matrix-rust-sdk · Improper Handling of Exceptional Conditions
Affects matrix-rust-sdkSource CVE Database V5
Not known to be exploited · CVSS 1.3 Low : upgrade to 0.16.0 when convenient.
Data as of 25 Oct 2026, 19:02 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 35% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.16.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:UExploitation evidence
Disclosed: evidence found.
CVE published 9 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.
What to do
Upgrade matrix-org/matrix-rust-sdk to 0.16.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
crates.iomatrix-org/matrix-rust-sdkpkg:cargo/matrix-org/matrix-rust-sdkOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately identify any Matrix clients or services built on matrix-rust-sdk versions prior to 0.16.0. The primary mitigation is to upgrade all affected SDK instances to version 0.16.0 or later, which contains the fix for the serialization bug. Additionally, organizations should implement monitoring of Matrix room invitations to detect and flag invitations containing unusual or custom m.room.join_rules values that could trigger the vulnerability. Network segmentation and application-layer filtering could be employed to limit invitations from untrusted sources. User training to recognize suspicious invitations may reduce the risk of inadvertent acceptance. For self-hosted Matrix servers, administrators should review logs for sync stalls or errors related to join rules and apply patches promptly. Incorporating robust error handling and timeout mechanisms in client implementations can further mitigate sync stalls. Finally, maintaining an up-to-date inventory of software components and dependencies will facilitate rapid response to similar vulnerabilities.
Description
matrix-sdk-base is the base component to build a Matrix client library. Versions 0.14.1 and prior are unable to handle responses that include custom m.room.join_rules values due to a serialization bug. This can be exploited to cause a denial-of-service condition, if a user is invited to a room with non-standard join rules, the crate's sync process will stall, preventing further processing for all rooms. This is fixed in version 0.16.0.
References
- github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-jj6p-3m75-g2p3 (opens in a new tab)
- github.com/matrix-org/matrix-rust-sdk/pull/5924 (opens in a new tab)
- github.com/matrix-org/matrix-rust-sdk/commit/4ea0418abefab2aa93f8851a4d39c723e703e6b0 (opens in a new tab)
- rustsec.org/advisories/RUSTSEC-2025-0135.html (opens in a new tab)