# CVE-2021-41178: File Traversal affecting SVG files on Nextcloud Server

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.78%, higher than 78% of CVEs (2026-12-01)
- Published: 2021-10-25T21:55:11.000Z
- Modified: 2026-06-17T04:08:01.993Z
- Weaknesses: CWE-22, CWE-23, CWE-434
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- nextcloud security-advisories: 20.0.13; >= 21.0.0, < 21.0.5; < 22.2.0
- nextcloud server: from 20.0.3 before 20.0.13; from 21.0.1 before 21.0.5; from 22.1.1 before 22.2.0

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:P/I:N/A:N`

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-jp9c-vpr3-m5rf> (third-party-advisory)
- <https://github.com/nextcloud/server/pull/28726> (patch, third-party-advisory)
- <https://hackerone.com/reports/1302155> (permissions-required)
- <https://security.gentoo.org/glsa/202208-17> (third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2021-41178](https://www.cve.org/CVERecord?id=CVE-2021-41178), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-41178](https://nvd.nist.gov/vuln/detail/CVE-2021-41178), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41178 · Whole record: https://cve.day/CVE-2021-41178.json · Rebuilt by cve.day 2026-11-25T22:58:05.192Z
