Description
Nextcloud is an open source content collaboration platform. In Nextcloud Server from versions 31.0.0 to before 31.0.14, and 32.0.0 to before 32.0.4, if {lang} is used in the template directory config value, non-admin users can in some cases copy arbitrary files (depending on unix permissions) into their own Nextcloud directory via a path traversal. It is recommended that the Nextcloud Server is upgraded to 32.0.4, 31.0.14. It is recommended that the Nextcloud Enterprise Server is upgraded to 32.0.4, 31.0.14, 30.0.17.7, 29.0.17.12, 28.0.14.15
Published: 2026-06-01
Score: 4.4 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A path traversal vulnerability exists in the template API of Nextcloud Server when the {lang} placeholder is used in the template directory configuration. The flaw allows non‑administrative users to copy arbitrary files, subject to Unix permissions, into their own Nextcloud directory. This can provide unauthorized access to files that are not meant to be read or manipulated by ordinary users, potentially exposing sensitive data. The weakness is categorized as CWE‑22 – Path Traversal.

Affected Systems

Nextcloud Server versions from 31.0.0 up to (but not including) 31.0.14, and from 32.0.0 up to (but not including) 32.0.4 are affected. Enterprise Server builds prior to 32.0.4, 31.0.14, 30.0.17.7, 29.0.17.12, and 28.0.14.15 also contain the flaw and should be upgraded to the corresponding patched releases.

Risk and Exploitability

The CVSS score of 4.4 indicates moderate severity. EPSS is not available, and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires a user to be logged into Nextcloud with non‑admin privileges and configure the template directory to include the {lang} placeholder. No public exploit has been reported, and the attack is limited to file copying rather than remote code execution. Overall risk is moderate, but the potential for data leakage warrants timely remediation.

Generated by OpenCVE AI on June 1, 2026 at 20:43 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Nextcloud Server to at least version 31.0.14 or 32.0.4, whichever applies.
  • Upgrade the Nextcloud Enterprise Server to the latest of the patched releases: 32.0.4, 31.0.14, 30.0.17.7, 29.0.17.12, or 28.0.14.15.
  • Avoid using the {lang} placeholder in the template directory configuration; if necessary, restrict file permissions and validate paths to prevent traversal.

Generated by OpenCVE AI on June 1, 2026 at 20:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 01 Jun 2026 19:00:00 +0000

Type Values Removed Values Added
Description Nextcloud is an open source content collaboration platform. In Nextcloud Server from versions 31.0.0 to before 31.0.14, and 32.0.0 to before 32.0.4, if {lang} is used in the template directory config value, non-admin users can in some cases copy arbitrary files (depending on unix permissions) into their own Nextcloud directory via a path traversal. It is recommended that the Nextcloud Server is upgraded to 32.0.4, 31.0.14. It is recommended that the Nextcloud Enterprise Server is upgraded to 32.0.4, 31.0.14, 30.0.17.7, 29.0.17.12, 28.0.14.15
Title Nextcloud: Limited path traversal via template API if using `{lang}` in config
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-06-01T16:52:18.958Z

Reserved: 2026-05-11T18:41:13.157Z

Link: CVE-2026-45279

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-06-01T19:16:49.980

Modified: 2026-06-01T19:16:49.980

Link: CVE-2026-45279

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-01T20:45:25Z

Weaknesses