{"id":"CVE-2025-53549","aliases":["GHSA-275g-g844-73jh","RUSTSEC-2025-0043"],"url":"https://o3.security/vulnerability/CVE-2025-53549","summary":"Matrix Rust SDK allows SQL injection in the EventCache implementation","details":"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.\n\n### Workarounds\n\nPassing only trusted (or sanitised) relation types to the `filter` argument of `EventCache::find_event_with_relations()` avoids the issue.\n\n### Patches\n\nThe issue is fixed in matrix-sdk 0.13.\n\n### References\n\nThe issue was introduced in https://github.com/matrix-org/matrix-rust-sdk/pull/4849.","published":"2025-07-10T18:28:24.373Z","modified":"2026-08-12T03:51:08.861754840Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"matrix-sdk","fixedVersion":"0.13.0"},{"ecosystem":"crates.io","name":"matrix-sdk-sqlite","fixedVersion":"0.13.0"}],"fix":{"url":"https://github.com/matrix-org/matrix-rust-sdk/pull/4849","label":"matrix-org/matrix-rust-sdk#4849"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/53xxx/CVE-2025-53549.json"},{"type":"ADVISORY","url":"https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-275g-g844-73jh"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53549"},{"type":"FIX","url":"https://github.com/matrix-org/matrix-rust-sdk/pull/4849"},{"type":"WEB","url":"https://github.com/matrix-org/matrix-rust-sdk/commit/d0c01006e4808db5eb96ad5c496416f284d8bd3c"},{"type":"PACKAGE","url":"https://github.com/matrix-org/matrix-rust-sdk"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2025-0043.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:08.861754840Z"}}