SQL Injection Affecting matrix-sdk-sqlite package, versions >=0.11.0 <0.13.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-MATRIXSDKSQLITE-10946358
  • published25 Jul 2025
  • disclosed10 Jul 2025
  • creditDamir Jelić

Introduced: 10 Jul 2025

CVE-2025-53549  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade matrix-sdk-sqlite to version 0.13.0 or higher.

Overview

matrix-sdk-sqlite is a Sqlite storage backend for matrix-sdk.

Affected versions of this package are vulnerable to SQL Injection via the EventCache::find_event_with_relations function. An attacker can execute arbitrary SQL commands by supplying crafted relation types to the filter argument, which are then used unsanitized in SQL queries.

Note:

This is only exploitable if the application passes untrusted user input directly to the filter argument of this function while using the default sqlite-based store backend.

Workaround

This vulnerability can be mitigated by ensuring only trusted or sanitized relation types are passed to the filter argument of EventCache::find_event_with_relations().

CVSS Base Scores

version 4.0
version 3.1