# CVE-2025-53549: RUSTSEC-2025-0043 - matrix-sdk-sqlite: SQL injection vulnerability in `SqliteEventCacheStore::find_event_with_relations`

Source: https://junglewise.ai/threats/cve-2025-53549-matrix-rust-sdk-vulnerable-to-sql-injection-through-its  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-07-11  
License: CC BY 4.0 with a link back

CVE-2025-53549 · Severity: medium · CVSS 4 · Published 2025-07-11

matrix-sdk-sqlite: SQL injection vulnerability in `SqliteEventCacheStore::find_event_with_relations`

Technologies: [matrix-sdk (crates.io)](https://junglewise.ai/threats/technologies/matrix-sdk). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is CVE-2025-53549 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-53549 being exploited in the wild.

**How severe is CVE-2025-53549?** Medium severity, with a CVSS score of 4, published 11 July 2025.

**Which products and versions are affected?** matrix-sdk (crates.io) SEMVER:introduced=0.11.0,fixed=0.13.0; matrix-sdk-sqlite (crates.io) SEMVER:introduced=0.11.0,fixed=0.13.0.

**Is there a fix for CVE-2025-53549?** Yes. matrix-sdk (crates.io): upgrade to 0.13.0 or later; matrix-sdk-sqlite (crates.io): upgrade to 0.13.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-53549?** Check whether you run matrix-sdk (crates.io) or matrix-sdk-sqlite (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- matrix-sdk (crates.io): upgrade to 0.13.0 or later

  ```sh
  cargo update -p matrix-sdk
  ```

- matrix-sdk-sqlite (crates.io): upgrade to 0.13.0 or later

  ```sh
  cargo update -p matrix-sdk-sqlite
  ```


## Affected products

- matrix-sdk (crates.io) SEMVER:introduced=0.11.0,fixed=0.13.0
- matrix-sdk-sqlite (crates.io) SEMVER:introduced=0.11.0,fixed=0.13.0

## Identifiers

- CVE-2025-53549
- GHSA-275g-g844-73jh
- RUSTSEC-2025-0043

## Related threats

- [matrix-sdk 0.6.0 logs access tokens](https://junglewise.ai/threats/matrix-sdk-0-6-0-logs-access-tokens-68f58bea)
- [RUSTSEC-2022-0062 - matrix-sdk 0.6.0 logs access tokens](https://junglewise.ai/threats/rustsec-2022-0062-matrix-sdk-0-6-0-logs-access-tokens-2387bb96)
