CVE-2024-39691:
Malicious Matrix homeserver can leak truncated message content of messages it shouldn't have access to
4.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.13098%
CWE
Published
7/5/2024
Updated
7/5/2024
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
matrix-appservice-irc | npm | <= 2.0.0 | 2.0.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from using event.origin_server_ts (controlled by external homeservers) to determine message visibility in member join tracking. The commit diff shows this timestamp was replaced with Date.now() in MatrixHandler.ts's _onMemberEvent method, indicating this was the vulnerable function. The function's reliance on untrusted input for security decisions directly matches the CWE-280 (Improper Permission Handling) described in the advisory.