Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-39691— Malicious Matrix homeserver can leak truncated message content of messages it shouldn't have access to

Quick assessment

Affected
matrix-org matrix-appservice-irc
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

matrix-appservice-irc是Matrix的一款网桥。这个网桥会将所有 IRC 消息传递给 Matrix,并将所有 Matrix 消息传递给 IRC。 matrix-appservice-irc 2.0.0之前版本存在安全漏洞,该漏洞源于恶意服务器可以伪造时间戳,意图诱骗桥接器泄露不应访问的消息。

CVSS 4.3 · Medium EPSS 0.50% · P41

Possible ATT&CK Techniques 1 AI

T1530 · Data from Cloud Storage
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-39691

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Malicious Matrix homeserver can leak truncated message content of messages it shouldn't have access to
Source: CVE Program / CVE List V5
Vulnerability Description
matrix-appservice-irc is a Node.js IRC bridge for the Matrix messaging protocol. The fix for GHSA-wm4w-7h2q-3pf7 / CVE-2024-32000 included in matrix-appservice-irc 2.0.0 relied on the Matrix homeserver-provided timestamp to determine whether a user has access to the event they're replying to when determining whether or not to include a truncated version of the original event in the IRC message. Since this value is controlled by external entities, a malicious Matrix homeserver joined to a room in which a matrix-appservice-irc bridge instance (before version 2.0.1) is present can fabricate the timestamp with the intent of tricking the bridge into leaking room messages the homeserver should not have access to. matrix-appservice-irc 2.0.1 drops the reliance on `origin_server_ts` when determining whether or not an event should be visible to a user, instead tracking the event timestamps internally. As a workaround, it's possible to limit the amount of information leaked by setting a reply template that doesn't contain the original message.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
不充分权限或特权的处理不恰当
Source: CVE Program / CVE List V5
Vulnerability Title
matrix-appservice-irc 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
matrix-appservice-irc是Matrix的一款网桥。这个网桥会将所有 IRC 消息传递给 Matrix,并将所有 Matrix 消息传递给 IRC。 matrix-appservice-irc 2.0.0之前版本存在安全漏洞,该漏洞源于恶意服务器可以伪造时间戳,意图诱骗桥接器泄露不应访问的消息。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
matrix-org matrix-appservice-irc < 2.0.1 -

II. Public POCs for CVE-2024-39691

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-39691

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-39691 (2)

Vendor Advisories for CVE-2024-39691 (1)

Other References for CVE-2024-39691 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2024-39691

No comments yet


Leave a comment