Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2024-50336: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in matrix-org matrix-js-sdk

0
Medium
VulnerabilityCVE-2024-50336cvecve-2024-50336cwe-22
Published: Tue Nov 12 2024 (11/12/2024, 16:38:53 UTC)
Source: CVE Database V5
Vendor/Project: matrix-org
Product: matrix-js-sdk

Description

matrix-js-sdk is a Matrix messaging protocol Client-Server SDK for JavaScript. matrix-js-sdk before 34.11.0 is vulnerable to client-side path traversal via crafted MXC URIs. A malicious room member can trigger clients based on the matrix-js-sdk to issue arbitrary authenticated GET requests to the client's homeserver. Fixed in matrix-js-sdk 34.11.1.

AI-Powered Analysis

AILast updated: 11/03/2025, 23:37:22 UTC

Technical Analysis

CVE-2024-50336 identifies a path traversal vulnerability in the matrix-js-sdk, a JavaScript client-server SDK implementing the Matrix messaging protocol. The flaw exists in versions before 34.11.1 and is caused by improper validation and limitation of pathname inputs when processing MXC URIs. MXC URIs are used within the Matrix ecosystem to reference media content. A malicious actor who is a member of a Matrix room can craft specially designed MXC URIs that exploit this vulnerability, causing the client to perform arbitrary authenticated GET requests against the victim's homeserver. This behavior effectively allows the attacker to access restricted resources or data that the client is authorized to access, bypassing intended access controls on the client side. The vulnerability does not require user interaction and can be triggered remotely by a low-privileged attacker (room member) without authentication elevation. The CVSS 4.0 base score is 5.3 (medium), reflecting network attack vector, low attack complexity, no privileges required, no user interaction, and limited impact on integrity and availability but some impact on confidentiality. The flaw was addressed in matrix-js-sdk version 34.11.1 by properly restricting pathname traversal in MXC URI handling, preventing unauthorized requests. No public exploits or widespread attacks have been reported to date.

Potential Impact

For European organizations, this vulnerability poses a risk of unauthorized data exposure and potential leakage of sensitive information stored or accessible via the Matrix homeserver. Since the attack can be initiated by any malicious room member, insider threats or compromised accounts could exploit this to access confidential data or internal endpoints. This could undermine the confidentiality and integrity of communications, especially in sectors relying on Matrix for secure messaging such as government, finance, and healthcare. The vulnerability could also be leveraged for reconnaissance or lateral movement within an organization's network if the homeserver hosts internal APIs or sensitive resources. Although the impact on availability is limited, the breach of confidentiality and trust in secure communications can have significant reputational and compliance consequences under regulations like GDPR. Organizations using matrix-js-sdk-based clients should consider this vulnerability a moderate risk and act promptly to update and audit their Matrix deployments.

Mitigation Recommendations

The primary mitigation is to upgrade all matrix-js-sdk clients to version 34.11.1 or later, where the vulnerability is fixed. Organizations should enforce strict version control and patch management policies for all Matrix clients and servers. Additionally, review and restrict room membership to trusted users only, minimizing exposure to malicious actors. Implement monitoring and anomaly detection on homeserver logs to identify unusual authenticated GET requests that could indicate exploitation attempts. Harden homeserver configurations to limit access to sensitive internal endpoints and apply strict access controls on resources accessible via the client. Consider deploying Web Application Firewalls (WAFs) or API gateways that can detect and block suspicious path traversal patterns in requests. Finally, educate users and administrators about the risks of malicious room members and encourage reporting of suspicious activity.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2024-10-22T17:54:40.954Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69092eea35043901e82cab13

Added to database: 11/3/2025, 10:38:34 PM

Last enriched: 11/3/2025, 11:37:22 PM

Last updated: 12/15/2025, 1:27:47 PM

Views: 22

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats