HistoryEditJSON (OSV)

RUSTSEC-2025-0043

matrix-sdk-sqlite: SQL injection vulnerability in SqliteEventCacheStore::find_event_with_relations

Reported
Issued
Package
matrix-sdk-sqlite (crates.io)
Type
Vulnerability
Categories
Keywords
#sql-injection
Aliases
References
Patched
  • >=0.13.0
Unaffected
  • <0.11.0
Affected Functions
Version
matrix_sdk_sqlite::SqliteEventCacheStore::find_event_relations
  • >=0.11.0

Description

The SqliteEventCacheStore::find_event_with_relations function constructs SQL queries using format!() with unescaped input, allowing an attacker to inject arbitrary SQL. This results in a SQL injection vulnerability.

Advisory available under CC0-1.0 license.