Skip to content

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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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