# CVE-2025-53549: Matrix Rust SDK allows SQL injection in the EventCache implementation

- Priority: **Routine**
- Reason: Not severe (CVSS 5.2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-07-10 · Modified: 2025-07-10
- Aliases: openSUSE-SU-2025:15351-1, GHSA-275g-g844-73jh, RUSTSEC-2025-0043
- Record: https://cvemate.com/vulnerability/CVE-2025-53549 · JSON: https://cvemate.com/vulnerability/CVE-2025-53549/json

## 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.
```

## Signals

- CVSS: 5.2 medium (v4.0, CVE.org) 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
- EPSS: 0.318%, percentile 26.689%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- Crates.Io matrix-sdk (Crates.Io): ≥ 0.11.0, \< 0.13.0
- Crates.Io matrix-sdk-sqlite (Crates.Io): ≥ 0.11.0, \< 0.13.0
- matrix-org matrix-rust-sdk: ≥ 0.11, \< 0.13
- opensuse fractal&distro=openSUSE Tumbleweed (openSUSE): \< 12.beta+14-1.1

## References

- <https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-275g-g844-73jh>
- <https://github.com/matrix-org/matrix-rust-sdk/pull/4849>
- <https://www.suse.com/security/cve/CVE-2025-53549>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-53549>
- <https://github.com/matrix-org/matrix-rust-sdk/commit/d0c01006e4808db5eb96ad5c496416f284d8bd3c>
- <https://github.com/matrix-org/matrix-rust-sdk>
- <https://rustsec.org/advisories/RUSTSEC-2025-0043.html>
- <https://crates.io/crates/matrix-sdk-sqlite>

---

Data as of 2026-12-05T05:31:12.533Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
