Matrix Rust SDK allows SQL injection in the EventCache implementation
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| matrix-org | matrix-rust-sdk | 0.11 to before 0.13 | 0.13 | Patch available | CNA |
| — | matrix-sdk (crates.io) | 0.11.0 to before 0.13.0 | 0.13.0 | Patch available | GHSA-275g-g844-73jh |
| — | matrix-sdk-sqlite (crates.io) | 0.11.0 to before 0.13.0 | 0.13.0 | Patch available | GHSA-275g-g844-73jh |
- matrix-rust-sdk Vendormatrix-org Affected 0.11 to before 0.13 Fixed in 0.13 Patch available CNA
- matrix-sdk (crates.io) Vendor— Affected 0.11.0 to before 0.13.0 Fixed in 0.13.0 Patch available GHSA-275g-g844-73jh
- matrix-sdk-sqlite (crates.io) Vendor— Affected 0.11.0 to before 0.13.0 Fixed in 0.13.0 Patch available GHSA-275g-g844-73jh
Remediation
- Fix · CNA matrix-rust-sdk (matrix-org) Fixed in 0.13
- Fix · GHSA-275g-g844-73jh matrix-sdk (crates.io) Fixed in 0.13.0 Advisory →
- Fix · GHSA-275g-g844-73jh matrix-sdk-sqlite (crates.io) Fixed in 0.13.0 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2025-53549
- 2026-10-03 Alias added: GHSA-275g-g844-73jh
References
Other 5
- https://github.com/matrix-org/matrix-rust-sdk/security/advisories/GHSA-275g-g844-73jh
- https://github.com/matrix-org/matrix-rust-sdk/pull/4849
- https://github.com/matrix-org/matrix-rust-sdk/commit/d0c01006e4808db5eb96ad5c496416f284d8bd3c
- https://github.com/matrix-org/matrix-rust-sdk
- https://rustsec.org/advisories/RUSTSEC-2025-0043.html
More matrix-org vulnerabilities
- TI-2023-20035 Sydent does not verify email server certificates CVSS 3.1CRITICAL 9.3
- TI-2026-45046 Dendrite 0.13.8 SSRF via Unauthenticated Legacy Media Download Endpoint CVSS 4.0MEDIUM 6.9
- TI-2026-45045 Dendrite 0.13.8 Improper Authorization via POST account/3pid/delete Endpoint CVSS 4.0HIGH 7.1
- TI-2026-45047 Dendrite 0.13.8 syncapi /context Endpoint Post-Leave State Exposure CVSS 4.0MEDIUM 5.3
- TI-2023-15617 Synapse Outgoing federation to specific hosts can be disabled by sending malicious invites CVSS 3.1MEDIUM 5.0
- TI-2023-20039 matrix-appservice-irc IRC command injection via admin commands containing newlines CVSS 3.1CRITICAL 9.8
Sources
- CVE-2025-53549 · CVE Program
- CVE-2025-53549 · NVD
- FIRST EPSS
- GHSA-275g-g844-73jh · GitHub Advisory Database · CC BY 4.0
- CVE-2025-53549 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences