{"schemaVersion":3,"id":"CVE-2021-41178","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-10-25T21:55:11.000Z","modified":"2024-08-04T02:59:31.637Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01784,"percentile":0.77971,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01784},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01784,"percentile":0.77971}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01784,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01784,"percentile":0.77971}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-23","name":"Relative Path Traversal","description":"The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as \"..\" that can resolve to a location that is outside of that directory.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/23.html"},{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type","description":"The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/434.html"},{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"nextcloud","product":"security-advisories","name":"security-advisories","label":"security-advisories","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"20.0.13","noFixRecorded":false,"fixedIn":null},{"text":"≥ 21.0.0, < 21.0.5","noFixRecorded":false,"fixedIn":null},{"text":"< 22.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"20.0.13 | ≥ 21.0.0, < 21.0.5 | < 22.2.0","eol":null,"hubHref":"/vendor/nextcloud/security-advisories"},{"vendor":"nextcloud","product":"server","name":"server","label":"server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 20.0.3, < 20.0.13","noFixRecorded":false,"fixedIn":null},{"text":"≥ 21.0.1, < 21.0.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 22.1.1, < 22.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 20.0.3, < 20.0.13 | ≥ 21.0.1, < 21.0.5 | ≥ 22.1.1, < 22.2.0","eol":null,"hubHref":"/vendor/nextcloud/server"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/nextcloud/security-advisories/security/advisories/GHSA-jp9c-vpr3-m5rf","label":"github.com/nextcloud/security-advisories/security/advisories/GHSA-jp9c-vpr3-m5rf","hostname":"github.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://github.com/nextcloud/server/pull/28726","label":"github.com/nextcloud/server/pull/28726","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://hackerone.com/reports/1302155","label":"hackerone.com/reports/1302155","hostname":"hackerone.com","tags":["X Refsource MISC","Permissions Required"]},{"url":"https://security.gentoo.org/glsa/202208-17","label":"security.gentoo.org/glsa/202208-17","hostname":"security.gentoo.org","tags":["Vendor Advisory","X Refsource GENTOO","Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2021:1602-1"],"duplicates":[],"related":["OPENSUSE-SU-2021:1602-1"]},"timeline":[{"kind":"published","date":"2021-10-25T21:55:11.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T02:59:31.637Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":36,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T23:56:52.946Z","stale":false,"partial":false}}