# CVE-2023-25579: Directory traversal in Nextcloud server

- Severity: Medium 6.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L`
- 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): 0.51%, higher than 44% of CVEs (2026-12-01)
- Published: 2023-02-22T18:21:10.573Z
- Modified: 2026-06-17T05:41:32.107Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Nextcloud server is a self hosted home cloud product. In affected versions the `OC\Files\Node\Folder::getFullPath()` function was validating and normalizing the string in the wrong order. The function is used in the `newFile()` and `newFolder()` items, which may allow to creation of paths outside of ones own space and overwriting data from other users with crafted paths. This issue has been addressed in versions 25.0.2, 24.0.8, and 23.0.12. Users are advised to upgrade. There are no known workarounds for this issue.

(As written by CVE List.)

## Affected

- nextcloud security-advisories: < 23.0.12; >= 24.0.0, < 24.0.8; >= 25.0.0, < 25.0.2
- nextcloud nextcloud_server: before 23.0.12; from 20.0.0 before 20.0.14; from 21.0.0 before 21.0.9; from 22.2.0 before 22.2.10; from 23.0.0 before 23.0.12; from 24.0.0 before 24.0.8; from 25.0.0 before 25.0.2

## Every score

- GitHub_M: CVSS:3.1 6.0 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-273v-9h7x-p68v> (vendor-advisory)
- <https://github.com/nextcloud/server/pull/35074> (patch)

## Sources

- CVE List: [CVE-2023-25579](https://www.cve.org/CVERecord?id=CVE-2023-25579), CVE Terms of Use, modified 2025-03-10
- NVD: [CVE-2023-25579](https://nvd.nist.gov/vuln/detail/CVE-2023-25579), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-25579 · Whole record: https://cve.day/CVE-2023-25579.json · Rebuilt by cve.day 2026-11-25T22:58:22.106Z
