Authenticated SQL execution via interpolated relation filters
Published Jul 10, 2025 · Updated Jul 10, 2025
SQL injection in matrix-sdk 0.11 through 0.12 allows remote authenticated users to execute arbitrary SQL in Matrix client databases. The SQLite EventCache store inserts custom relation-type filters into an IN clause with format! instead of SQL placeholders. Exploitation requires a malicious room member, a client that forwards that member's relation type to the API, and the default SQLite store; arbitrary SQL can read, alter, or delete the client's local database.
Summary
What happened
SQL injection in matrix-sdk 0.11 through 0.12 allows remote authenticated users to execute arbitrary SQL in Matrix client databases. The SQLite EventCache store inserts custom relation-type filters into an IN clause with format! instead of SQL placeholders. Exploitation requires a malicious room member, a client that forwards that member's relation type to the API, and the default SQLite store; arbitrary SQL can read, alter, or delete the client's local database.
The record
- CVE
- CVE-2025-53549
- Published
- Jul 10, 2025
- Updated
- Jul 10, 2025
- Vendor
- The Matrix.org Foundation
- Product
- matrix-rust-sdk
- Classifications
- CWE-89, CAPEC-66, T1203
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Jul 10, 2025CVE publishedPublication date reported by the CVE source.
- Jul 10, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 0.11, < 0.13
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo