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

- Severity: Medium 5.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2025-07-10T17:41:16.000Z
- Modified: 2026-10-12T18:00:10.950Z
- Also known as: GHSA-275g-g844-73jh, RUSTSEC-2025-0043
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- matrix-org matrix-rust-sdk: >= 0.11, < 0.13
- matrix-sdk (crates.io): from 0.11.0 before 0.13.0
- matrix-sdk-sqlite (crates.io): from 0.11.0 before 0.13.0

## Every score

- GitHub_M: CVSS:4.0 5.2 Medium `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`
- GitHub: CVSS:4.0 Medium `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`

## References

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

## Sources

- CVE List: [CVE-2025-53549](https://www.cve.org/CVERecord?id=CVE-2025-53549), CVE Terms of Use, modified 2025-07-10
- GitHub Advisory Database: [GHSA-275g-g844-73jh](https://github.com/advisories/GHSA-275g-g844-73jh), CC-BY-4.0, modified 2025-07-11
- RustSec Advisory Database: [RUSTSEC-2025-0043](https://rustsec.org/advisories/RUSTSEC-2025-0043.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2025-53549](https://nvd.nist.gov/vuln/detail/CVE-2025-53549), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-53549 · Whole record: https://cve.day/CVE-2025-53549.json · Rebuilt by cve.day 2026-11-25T22:59:01.110Z
