SQL Injection Vulnerability in Matrix Rust SDK by Matrix.org
CVE-2025-53549
5.2MEDIUM
What is CVE-2025-53549?
The Matrix Rust SDK, a library for building Matrix clients in Rust, is susceptible to an SQL injection vulnerability in the EventCache::find_event_with_relations method. This flaw allows malicious users who are room members to pass relation types that could lead to the execution of arbitrary SQL commands when using the default sqlite-based store backend. Although no current clients utilize this API in such a manner, a fix was implemented in version 0.13 to address this security concern.
Affected Version(s)
matrix-rust-sdk >= 0.11, < 0.13