CVE-2025-53549 Details
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.
A SQL injection vulnerability has been identified in the Matrix Rust SDK, specifically in versions 0.11 and 0.12. The issue arises in the EventCache::find_event_with_relations method, where malicious room members can execute arbitrary SQL commands. This vulnerability is present in Matrix clients that directly pass relation types from those room members into the method, using the default SQLite-based store backend. Although the vulnerability exists, exploitation is unlikely because no known clients currently use the API in this way.
Users can upgrade to Matrix Rust SDK version 0.13 or later to address this vulnerability. Alternatively, when using versions 0.11 or 0.12, the issue can be mitigated by passing only trusted or sanitized relation types to the filter argument of the EventCache::find_event_with_relations() method.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 10, 2025CISA-ADP
Assessed Jul 10, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/matrix-org/matrix-rust-sdk/pull/4849 | [email protected] | Issue TrackingVendor |
| https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-275g-g844-73jh | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| matrix-org/matrix-sdk | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 10, 2025 | New CVE Received | [email protected] |
Volerion