Improper authentication in matrix-org matrix-rust-sdk
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-287.
Summary
matrix-rust-sdk is an implementation of a Matrix client-server library in Rust. The `UserIdentity::is_verified()` method in the matrix-sdk-crypto crate before version 0.7.2 doesn't take into account the verification status of the user's own identity while performing the check and may as a result return a value contrary to what is implied by its name and documentation. If the method is used to decide whether to perform sensitive operations towards a user identity, a malicious homeserver could manipulate the outcome in order to make the identity appear trusted. This is not a typical usage of the method, which lowers the impact. The method itself is not used inside the `matrix-sdk-crypto` crate. The 0.7.2 release of the `matrix-sdk-crypto` crate includes a fix. All users are advised to upgrade. There are no known workarounds for this vulnerability.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| matrix-org | matrix-rust-sdk | before 0.7.2 | 0.7.2 | Patch available | CNA |
| — | matrix-sdk-crypto (crates.io) | before 0.7.2 | 0.7.2 | Patch available | GHSA-4qg4-cvh2-crgg |
- matrix-rust-sdk Vendormatrix-org Affected before 0.7.2 Fixed in 0.7.2 Patch available CNA
- matrix-sdk-crypto (crates.io) Vendor— Affected before 0.7.2 Fixed in 0.7.2 Patch available GHSA-4qg4-cvh2-crgg
Remediation
- Fix · CNA matrix-rust-sdk (matrix-org) Fixed in 0.7.2
- Fix · GHSA-4qg4-cvh2-crgg matrix-sdk-crypto (crates.io) Fixed in 0.7.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-40648
- 2026-10-03 Alias added: GHSA-4qg4-cvh2-crgg
References
Other 5
- https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-4qg4-cvh2-crgg
- https://github.com/matrix-org/matrix-rust-sdk/commit/76a7052149bb8f722df12da915b3a06d19a6695a
- https://github.com/matrix-org/matrix-rust-sdk
- https://github.com/matrix-org/matrix-rust-sdk/releases/tag/0.7.2-crypto
- https://rustsec.org/advisories/RUSTSEC-2024-0356.html
More matrix-org vulnerabilities
- TI-2023-20035 Sydent does not verify email server certificates CVSS 3.1CRITICAL 9.3
- TI-2026-45046 Dendrite 0.13.8 SSRF via Unauthenticated Legacy Media Download Endpoint CVSS 4.0MEDIUM 6.9
- TI-2026-45045 Dendrite 0.13.8 Improper Authorization via POST account/3pid/delete Endpoint CVSS 4.0HIGH 7.1
- TI-2026-45047 Dendrite 0.13.8 syncapi /context Endpoint Post-Leave State Exposure CVSS 4.0MEDIUM 5.3
- TI-2023-15617 Synapse Outgoing federation to specific hosts can be disabled by sending malicious invites CVSS 3.1MEDIUM 5.0
- TI-2023-20039 matrix-appservice-irc IRC command injection via admin commands containing newlines CVSS 3.1CRITICAL 9.8
Sources
- CVE-2024-40648 · CVE Program
- CVE-2024-40648 · NVD
- FIRST EPSS
- GHSA-4qg4-cvh2-crgg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences