7.5

CVE-2021-41281: Path traversal in Matrix Synapse

Modified
AliasesGHSA-3hfw-x7gx-437cPYSEC-2021-436UBUNTU-CVE-2021-41281
Published 23-11-2021Last modified 04-08-2024

Vulnerability summary

CVE-2021-41281 is a high (CVSS 7.5) vulnerability in fedoraproject fedora. EPSS estimates a 1.58% chance of exploitation in the next 30 days, higher than 76.3% of scored vulnerabilities.

Priority
Prioritisesevere

Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (CVE.org)
EPSS score
1.58%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 23-11-2021
    PublishedVulnerability first disclosed.
  2. 04-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

8 scores · 6 sources · 3 versions

EPSS trend

Probability

1.58%

Chance of exploitation in the next 30 days

Percentile

76%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.58% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine1 product
  • synapse< 1.47.1-r0
Debian1 product
  • matrix-synapse< 1.47.1-1
Fedoraproject1 product
Matrix1 product
Matrix-org1 product
Opensuse1 product
  • matrix-synapse&distro=openSUSE Tumbleweed< 1.47.1-1.1
PyPI1 product
  • matrix-synapse< 91f2bd0907f1d05af67166846988e49644eb650c | < 1.47.1
Ubuntu1 product
  • matrix-synapseAll versions (No fix recorded)

8 vendors · 8 products

References

16 links
Show all 16 references