Skip to content
OpenAdvisories
Medium · 5.2 CVE-2025-53549 EUVD-2025-21024GHSA-275g-g844-73jhRUSTSEC-2025-0043

Matrix Rust SDK allows SQL injection in the EventCache implementation

Published Jul 10, 2025 · Updated Jul 10, 2025 · 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.

Affected products

VendorProductAffectedFixed
matrix-org matrix-rust-sdk >= 0.11, < 0.13 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed fractal 12.beta+14-1.1 openSUSE-SU-2025:15351-1

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io matrix-sdk >= 0.11.0, < 0.13.0 0.13.0 GHSA-275g-g844-73jh
crates.io matrix-sdk-sqlite >= 0.11.0, < 0.13.0 0.13.0 GHSA-275g-g844-73jh

Advisories 1

References