Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. matrix-sdk-sqlite
  4. ›
  5. CVE-2025-53549

CVE-2025-53549: Matrix Rust SDK vulnerable to SQL Injection through its EventCache implementation

July 10, 2025 (updated July 11, 2025)

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.

References

  • github.com/advisories/GHSA-275g-g844-73jh
  • github.com/matrix-org/matrix-rust-sdk
  • github.com/matrix-org/matrix-rust-sdk/commit/d0c01006e4808db5eb96ad5c496416f284d8bd3c
  • github.com/matrix-org/matrix-rust-sdk/pull/4849
  • github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-275g-g844-73jh
  • nvd.nist.gov/vuln/detail/CVE-2025-53549
  • rustsec.org/advisories/RUSTSEC-2025-0043.html

Code Behaviors & Features

Detect and mitigate CVE-2025-53549 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.11.0 before 0.13.0

Fixed versions

  • 0.13.0

Solution

Upgrade to version 0.13.0 or above.

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

cargo/matrix-sdk-sqlite/CVE-2025-53549.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:14 +0000.