Matrix Rust SDK allows SQL injection in the EventCache implementation
matrix-org matrix-rust-sdk
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| matrix-sdk crates.io |
|
|
| matrix-sdk-sqlite crates.io |
|
|
matrix-org matrix-rust-sdk
| Product | Affected | Fixed in |
|---|---|---|
| matrix-sdk crates.io |
|
|
| matrix-sdk-sqlite crates.io |
|
|
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.
From the CVE record · GitHub_M
Matrix Rust SDK 0.11 and 0.12 are vulnerable to SQL injection when a client uses the default SQLite store and directly passes room-member-provided relation types to EventCache::find_event_with_relations. A malicious room member can then execute arbitrary SQL commands. No known clients currently use the API this way.
Check Matrix clients using crates.io matrix-sdk or matrix-sdk-sqlite versions >=0.11.0 and <0.13.0.