{"id":"CVE-2025-53549","published":"2025-07-10T18:28:24Z","modified":"2025-07-10T19:02:23Z","title":"Matrix Rust SDK allows SQL injection in the EventCache implementation","vendor":"matrix-org","product":"matrix-rust-sdk","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.2,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00318,"percentile":0.25413,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-275g-g844-73jh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/matrix-org/matrix-rust-sdk/pull/4849","tags":["x_refsource_MISC"]}],"priority":{"score":8.7,"factors":[{"name":"EPSS percentile","points":5.08},{"name":"CVSS severity","points":3.64}]},"vendorSlug":"matrix-org","affectedVersions":[{"vendor":"matrix-org","product":"matrix-rust-sdk","versions":[">= 0.11, < 0.13"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-07-10T19:02:17.517266Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"matrix-sdk","vulnerableRanges":[">=0.11.0, <0.13.0"],"patched":["0.13.0"],"from":["GHSA-275g-g844-73jh"],"provenance":"source"},{"ecosystem":"crates.io","package":"matrix-sdk-sqlite","vulnerableRanges":[">=0.11.0, <0.13.0"],"patched":["0.13.0"],"from":["GHSA-275g-g844-73jh","RUSTSEC-2025-0043"],"provenance":"source"}],"summary":{"text":"The Matrix Rust SDK (matrix-org/matrix-rust-sdk) contains an SQL injection flaw in the EventCache::find_event_with_relations method of matrix-sdk 0.11 and 0.12, when used with the default sqlite-based store backend. An attacker who is a room member can exploit it by supplying crafted relation types that a client passes directly into that method, executing arbitrary SQL commands, though the attack requires a client that uses the API in this way and no known clients currently do.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:44Z"},"euvd":{"id":"EUVD-2025-21024","exploited":false,"provenance":"source"}}