CVE-2021-41281

Path traversal in Matrix Synapse

HIGH
7.5
CVSS Score
Published: November 23, 2021 at 07:15 PM UTC
Updated: June 17, 2026 at 04:08 AM UTC
3 products affected across 3 vendorsFedoraSynapseSynapse

Using synapse by matrix-org?

Get instant alerts when new vulnerabilities affect synapse - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 2%

Description

Synapse is a package for Matrix homeservers written in Python 3/Twisted. Prior to version 1.47.1, Synapse instances with the media repository enabled can be tricked into downloading a file from a remote server into an arbitrary directory. No authentication is required for the affected endpoint. The last 2 directories and file name of the path are chosen randomly by Synapse and cannot be controlled by an attacker, which limits the impact. Homeservers with the media repository disabled are unaffected. Homeservers with a federation whitelist are also unaffected, since Synapse will check the remote hostname, including the trailing `../`s, against the whitelist. Server administrators should upgrade to 1.47.1 or later. Server administrators using a reverse proxy could, at the expense of losing media functionality, may block the certain endpoints as a workaround. Alternatively, non-containerized deployments can be adapted to use the hardened systemd config.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.47.1
Affected range stops below 1.47.1, so it looks safe — our inference, not a vendor statement
v < 1.47.1
Affected range stops below 1.47.1, so it looks safe — our inference, not a vendor statement

CVSS

7.5HIGHGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-22

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card