CVE-2025-53549

Matrix Rust SDK allows SQL injection in the EventCache implementation

Published Jul 10, 2025 CVSS 4.0 · 5.2 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-21024 Matrix Rust SDK vulnerable to SQL Injection through its EventCache implementation
Github GHSA Github GHSA GHSA-275g-g844-73jh Matrix Rust SDK vulnerable to SQL Injection through its EventCache implementation
History
Type Values Removed Values Added
Metrics epss

{'score': 0.0003}

epss

{'score': 0.00034}

Type Values Removed Values Added
Metrics epss

{'score': 0.0003}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Matrix Rust SDK allows SQL injection in the EventCache implementation
Weaknesses CWE-89
References
Metrics cvssV4_0

{'score': 5.2, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 10, 2025, 7:02 PM
Reserved
Jul 2, 2025, 3:15 PM
Status
Deferred
Published
Jul 10, 2025, 7:15 PM
Modified
Jun 17, 2026, 9:38 AM