Skip to main content
VulnerabilityPublished

CVE-2025-53549: matrix-rust-sdk · SQL Injection

Affects matrix-rust-sdkSource CVE Database V5

0

Not known to be exploited · CVSS 5.2 Medium : upgrade to 0.13 when convenient.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 4.0 base score
5.2Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 23% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.13
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade github/matrix-org/matrix-rust-sdk to 0.13.

Affected software

ProductAffectedFixed in
crates.iogithub/matrix-org/matrix-rust-sdkpkg:cargo/github/matrix-org/matrix-rust-sdkOther threatsAffected
  • <0.13
Fixed in
  • 0.13

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Upgrade all matrix-rust-sdk dependencies to version 0.13 or later, where this vulnerability is fixed.
  2. Audit any custom Matrix clients or applications built on matrix-rust-sdk to ensure that the EventCache::find_event_with_relations method is not called with untrusted or user-supplied relation types without proper sanitization or validation.
  3. If upgrading immediately is not feasible, implement input validation and sanitization on relation types before passing them to the vulnerable method to prevent injection.
  4. Consider switching from the default SQLite backend to a more robust database backend if supported, which may offer additional security controls.
  5. Monitor Matrix room memberships and access controls to minimize the risk of malicious insiders exploiting this vulnerability.
  6. Employ runtime application self-protection (RASP) or database activity monitoring to detect and block anomalous SQL queries originating from client applications.
  7. Educate developers on secure coding practices related to database interactions, especially in decentralized communication platforms.

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.

References

Community reviews

Loading reviews…