CVE-2021-41178
published high CVSS 3.1 · 8.8File Traversal affecting SVG files on Nextcloud Server
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nextcloud | — | security-advisories20.0.13 · >= 21.0.0, < 21.0.5 · < 22.2.0 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Leap-15.2 | nextcloudnoarch | Advisory build | 20.0.14-bp153.2.9.1 | OPENSUSE-SU-2021:1602-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | nextcloud-apachenoarch | Advisory build | 20.0.14-bp153.2.9.1 | OPENSUSE-SU-2021:1602-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | nextcloudnoarch | Advisory build | 20.0.14-bp153.2.9.1 | OPENSUSE-SU-2021:1602-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | nextcloud-apachenoarch | Advisory build | 20.0.14-bp153.2.9.1 | OPENSUSE-SU-2021:1602-1 |
Description
Nextcloud is an open-source, self-hosted productivity platform. Prior to versions 20.0.13, 21.0.5, and 22.2.0, a file traversal vulnerability makes an attacker able to download arbitrary SVG images from the host system, including user provided files. This could also be leveraged into a XSS/phishing attack, an attacker could upload a malicious SVG file that mimics the Nextcloud login form and send a specially crafted link to victims. The XSS risk here is mitigated due to the fact that Nextcloud employs a strict Content-Security-Policy disallowing execution of arbitrary JavaScript. It is recommended that the Nextcloud Server be upgraded to 20.0.13, 21.0.5 or 22.2.0. There are no known workarounds aside from upgrading.
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
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nextcloud | security-advisories | 20.0.13 (affected)>= 21.0.0, < 21.0.5 (affected)< 22.2.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-23 CWE-23: Relative Path Traversal
- CWE-434 CWE-434: Unrestricted Upload of File with Dangerous Type
References
4Provider assertions
2GitHub_M · cna
File Traversal affecting SVG files on Nextcloud Server
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- e3f718f10d648ebc47ddf67643aff3f4aa50ba3625624a15028b176e18a634c7
- Ingested
- 23 Sep 2026, 07:56:07 UTC
- Source record
- Official CVE record