CVE-2025-53549 Matrix Rust SDK allows SQL injection in the EventCache implementation
MediumCVSS 5.2
EPSS 0.32%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
Description
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io matrix-sdk(crates.io) | >= 0.11.0, < 0.13.0 | 0.13.0 | Fixed |
| crates.io matrix-sdk-sqlite(crates.io) | >= 0.11.0, < 0.13.0 | 0.13.0 | Fixed |
| matrix-org matrix-rust-sdk | = >= 0.11, < 0.13 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io matrix-sdk(crates.io) | >= 0.11.0, < 0.13.0 | 0.13.0 |
| crates.io matrix-sdk-sqlite(crates.io) | >= 0.11.0, < 0.13.0 | 0.13.0 |
| matrix-org matrix-rust-sdk | = >= 0.11, < 0.13 | No fix listed |
References
- https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-275g-g844-73jh vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/matrix-org/matrix-rust-sdk/pull/4849 patch
- github.com patch
- github.com product
- rustsec.org vendor-advisory
- crates.io product
- github.com