Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-275g-g844-73jh

Опубликовано: 10 июл. 2025
Источник: github
Github: Прошло ревью
CVSS4: 5.2

Описание

Matrix Rust SDK vulnerable to SQL Injection through its EventCache implementation

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.

Workarounds

Passing only trusted (or sanitised) relation types to the filter argument of EventCache::find_event_with_relations() avoids the issue.

Patches

The issue is fixed in matrix-sdk 0.13.

References

The issue was introduced in https://github.com/matrix-org/matrix-rust-sdk/pull/4849.

Пакеты

Наименование

matrix-sdk

rust
Затронутые версииВерсия исправления

>= 0.11.0, < 0.13.0

0.13.0

Наименование

matrix-sdk-sqlite

rust
Затронутые версииВерсия исправления

>= 0.11.0, < 0.13.0

0.13.0

EPSS

Процентиль: 18%
0.00058
Низкий

5.2 Medium

CVSS4

Дефекты

CWE-89

Связанные уязвимости

nvd
4 месяца назад

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.

EPSS

Процентиль: 18%
0.00058
Низкий

5.2 Medium

CVSS4

Дефекты

CWE-89