一、 漏洞 CVE-2025-53549 基础信息
漏洞信息
                                        # Matrix Rust SDK 在事件缓存实现中允许 SQL 注入

## 概述
Matrix Rust SDK中的`EventCache::find_event_with_relations`方法存在SQL注入漏洞。恶意房间成员可能利用此漏洞执行任意SQL命令。

## 影响版本
- matrix-sdk 0.11
- matrix-sdk 0.12

## 细节
该漏洞存在于`EventCache::find_event_with_relations`方法中,当使用默认的基于sqlite的存储后端时,恶意房间成员可以通过提供特定的关系类型触发SQL注入。

## 影响
目前没有已知的客户端以这种方式使用该API,因此利用该漏洞的可能性较小。该漏洞已在0.13版本中修复。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
Matrix Rust SDK allows SQL injection in the EventCache implementation
来源:美国国家漏洞数据库 NVD
漏洞描述信息
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.
来源:美国国家漏洞数据库 NVD
CVSS信息
N/A
来源:美国国家漏洞数据库 NVD
漏洞类别
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
来源:美国国家漏洞数据库 NVD
漏洞标题
Matrix Rust SDK SQL注入漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
Matrix Rust SDK是The Matrix.org Foundation开源的一个基于Rust的Matrix客户端服务器开发工具包。 Matrix Rust SDK 0.11和0.12版本存在SQL注入漏洞,该漏洞源于EventCache::find_event_with_relations方法中SQL注入,可能导致执行任意SQL命令。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
SQL注入
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2025-53549 的公开POC
# POC 描述 源链接 神龙链接
三、漏洞 CVE-2025-53549 的情报信息
  • 标题: feat(event cache): rework the SQL schema by bnjbvr · Pull Request #4849 · matrix-org/matrix-rust-sdk · GitHub -- 🔗来源链接

    标签: x_refsource_MISC

    神龙速读
  • 标题: SQL injection in the Matrix Rust SDK EventCache implementation · Advisory · matrix-org/matrix-rust-sdk · GitHub -- 🔗来源链接

    标签: x_refsource_CONFIRM

    神龙速读
  • https://nvd.nist.gov/vuln/detail/CVE-2025-53549