CVE-2021-41281
published high CVSS 3.1 · 7.5Path traversal in Matrix Synapse
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| matrix-org | — | synapse< 1.47.1 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | synapse | Fixed | 1.47.1-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | matrix-synapseaarch64 | Advisory build | 1.47.1-1.1 | OPENSUSE-SU-2024:11649-1 |
| Alpine Linux | v3.15 | synapse | Fixed | 1.47.1-r0 | Package fix record |
| Alpine Linux | v3.16 | synapse | Fixed | 1.47.1-r0 | Package fix record |
| Alpine Linux | v3.17 | synapse | Fixed | 1.47.1-r0 | Package fix record |
| Alpine Linux | v3.18 | synapse | Fixed | 1.47.1-r0 | Package fix record |
| Alpine Linux | v3.19 | synapse | Fixed | 1.47.1-r0 | Package fix record |
Show 8 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.20 | synapse | Fixed | 1.47.1-r0 | Package fix record |
| Alpine Linux | v3.21 | synapse | Fixed | 1.47.1-r0 | Package fix record |
| Alpine Linux | v3.22 | synapse | Fixed | 1.47.1-r0 | Package fix record |
| Alpine Linux | v3.23 | synapse | Fixed | 1.47.1-r0 | Package fix record |
| Alpine Linux | v3.24 | synapse | Fixed | 1.47.1-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | matrix-synapseppc64le | Advisory build | 1.47.1-1.1 | OPENSUSE-SU-2024:11649-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | matrix-synapses390x | Advisory build | 1.47.1-1.1 | OPENSUSE-SU-2024:11649-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | matrix-synapsex86_64 | Advisory build | 1.47.1-1.1 | OPENSUSE-SU-2024:11649-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| matrix-org | synapse | < 1.47.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
5- https://github.com/matrix-org/synapse/commit/91f2bd090
- https://github.com/matrix-org/synapse/releases/tag/v1.47.1
- https://github.com/matrix-org/synapse/security/advisories/GHSA-3hfw-x7gx-437c
- FEDORA-2021-9758549fce https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/EU7QRE55U4IUEDLKT5IYPWL3UXMELFAS/
- FEDORA-2021-2f9dcdbace https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N3WY56LCEZ4ZECLWV5KMAXF2PSMUB4F2/
Provider assertions
2GitHub_M · cna
Path traversal in Matrix Synapse
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 86b2fe1482f469c717eacab16d234be894336062bc8b0f785f36622ce431eb7b
- Ingested
- 23 Sep 2026, 07:56:14 UTC
- Source record
- Official CVE record