{"id":"CVE-2021-41178","published":"2021-10-25T21:55:11Z","modified":"2024-08-04T02:59:31Z","title":"File Traversal affecting SVG files on Nextcloud Server","vendor":"nextcloud","product":"security-advisories","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01784,"percentile":0.78211,"provenance":"source"},"cwes":[{"id":"CWE-23","name":"Relative Path Traversal"},{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"references":[{"url":"https://github.com/nextcloud/security-advisories/security/advisories/GHSA-jp9c-vpr3-m5rf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nextcloud/server/pull/28726","tags":["x_refsource_MISC"]},{"url":"https://hackerone.com/reports/1302155","tags":["x_refsource_MISC"]},{"url":"https://security.gentoo.org/glsa/202208-17","tags":["vendor-advisory","x_refsource_GENTOO"]}],"priority":{"score":21.8,"factors":[{"name":"EPSS percentile","points":15.64},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"nextcloud","affectedVersions":[{"vendor":"nextcloud","product":"security-advisories","versions":["20.0.13",">= 21.0.0, < 21.0.5","< 22.2.0"]}],"euvd":{"id":"EUVD-2021-28280","exploited":false,"provenance":"source"}}