CVE-2025-53549
mediumpriority · track · 0EPSS 0.003 · 24 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-275g-g844-73jhMatrix Rust SDK vulnerable to SQL Injection through its EventCache implementation2025-07-10ghsa · osvUS
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. ### Workarounds Passing only trusted (or sanitised) relation types to the `filter` argument of `EventCache::find_event_with_relations()` avoids the issue. ### Patches The issue is fixed in matrix-sdk 0.13. ### References The issue was introduced in https://github.com/matrix-org/matrix-rust-sdk/pull/4849.
- RUSTSEC-2025-0043matrix-sdk-sqlite: SQL injection vulnerability in `SqliteEventCacheStore::find_event_with_relations`2025-07-11vendor · osvUS
The `SqliteEventCacheStore::find_event_with_relations` function constructs SQL queries using `format!()` with unescaped input, allowing an attacker to inject arbitrary SQL. This results in a SQL injection vulnerability.
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2025-53549cnnvd
- https://github.com/matrix-org/matrix-rust-sdk/pull/4849cnnvd
- https://github.com/matrix-org/matrix-rust-sdk/releasesPatchcnnvd
- https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-275g-g844-73jhcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2025-53549cnnvd
- https://github.com/matrix-org/matrix-rust-sdk/pull/4849enisa_euvd
- https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-275g-g844-73jhenisa_euvd
- https://github.com/matrix-org/matrix-rust-sdk/pull/4849nvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan