CVE-2021-41281: Path traversal in Matrix Synapse
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.
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?Timeline
- 23-11-2021PublishedVulnerability first disclosed.
- 04-08-2024Last 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- OSV · PypiEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
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
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
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
- fedoraEOL34 | 35
Matrix1 product
- synapse< 1.47.1
Matrix-org1 product
- synapse< 1.47.1
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- github.com/matrix-org/synapse/security/advisories/GHSA-3hfw-x7gx-437cX Refsource CONFIRMWEBAdvisoryREPORTMitigationThird Party Advisory
- github.com/matrix-org/synapse/releases/tag/v1.47.1X Refsource MISCWEBREPORTRelease NotesThird Party Advisory