CVE-2025-53549
MEDIUM 5.2CVSS 4.0Matrix Rust SDK vulnerable to SQL Injection through its EventCache implementation
The Matrix Rust SDK is a collection of libraries that make it easier to build Matrix clients in Rust. An SQL injection vulnerability in the EventCache::find_event_with_relations method of matrix-sdk 0.11 and 0.12 allows malicious room members to execute arbitrary SQL commands in Matrix clients that directly pass relation types provided by those room members into this method, when used with the default sqlite-based store backend. Exploitation is unlikely, as no known clients currently use the API in this manner. This vulnerability is fixed in 0.13.
- Published
- 10 Jul 2025
- Last modified
- 12 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-89
- Also known as
- GHSA-275g-g844-73jhRUSTSEC-2025-0043
- Sources
- NVDJSONOSV GHSA-275g-g844-73jhJSONOSV RUSTSEC-2025-0043JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 5.2 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | matrix-sdk | >= 0.11.0, < 0.13.0 | 0.13.0 |
| OSV | crates.io | matrix-sdk-sqlite | >= 0.11.0, < 0.13.0 | 0.13.0 |
References
- https://github.com/matrix-org/matrix-rust-sdk/pull/4849 · WEB
- https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-275g-g844-73jh · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-53549 · ADVISORY
- https://github.com/matrix-org/matrix-rust-sdk/commit/d0c01006e4808db5eb96ad5c496416f284d8bd3c · WEB
- https://github.com/matrix-org/matrix-rust-sdk · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2025-0043.html · WEB, ADVISORY
- https://crates.io/crates/matrix-sdk-sqlite · PACKAGE
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 10 Jul 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 11 Jul 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Jul 2025)