Skip to main content
Vulnerability Database/CVE-2026-114375

CVE-2026-114375: wiki-go Path Traversal Vulnerability

CVE-2026-114375 is a path traversal flaw in leomoon-studios wiki-go affecting the Files Rename API that allows remote attackers to manipulate file paths. This post covers technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-114375 Overview

CVE-2026-114375 is a path traversal vulnerability [CWE-22] in leomoon-studios wiki-go through version 1.9.1. The flaw resides in the RenameFileHandler function within internal/handlers/files.go, part of the Files Rename API. An authenticated attacker can manipulate the currentPath or newName arguments to traverse outside the intended attachment directory. The exploit has been publicly released, raising the probability of opportunistic abuse against exposed instances. Version 1.9.2 addresses the issue through commit 81cd12e248314a52605f0f39718c8a76272eac29.

Critical Impact

Remote authenticated attackers can rename files outside the intended attachment root, enabling tampering with files on the host filesystem accessible to the wiki-go process.

Affected Products

  • leomoon-studios wiki-go versions up to and including 1.9.1
  • Component: Files Rename API (internal/handlers/files.go)
  • Fixed in wiki-go v1.9.2

Discovery Timeline

  • 2026-10-21 - CVE-2026-114375 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-114375

Vulnerability Analysis

The RenameFileHandler function accepts a JSON request containing CurrentPath and NewName fields. Before the patch, the handler validated only that both fields were non-empty. It did not verify that NewName represented a safe filename, nor did it constrain the resolved path to the attachment root. An authenticated user with permission to rename attachments could inject traversal sequences such as ../ or absolute path components to escape the storage directory.

Because the handler is reachable over HTTP and processes attacker-controlled strings against the server filesystem, the result is arbitrary file rename within the privileges of the wiki-go process. The EPSS probability stands at 0.308% at the 22nd percentile, reflecting a public exploit but limited telemetry of in-the-wild activity.

Root Cause

The root cause is missing input validation on filesystem path components passed to a rename operation. The handler trusted client-supplied path strings and did not normalize, canonicalize, or constrain them to the attachment root before invoking the underlying filesystem operation. This is a classic CWE-22 improper limitation of a pathname to a restricted directory.

Attack Vector

Exploitation requires network access to the wiki-go HTTP endpoint and valid credentials with permission to call the rename API. The attacker issues a crafted request to the Files Rename API endpoint with a NewName or CurrentPath value containing traversal sequences. The server resolves the path outside the intended directory and performs the rename, potentially overwriting or renaming unrelated files.

go
// Security patch in internal/handlers/files.go
// Source: https://github.com/leomoon-studios/wiki-go/commit/81cd12e248314a52605f0f39718c8a76272eac29

	}

	// Validate request
-	if renameReq.CurrentPath == "" || renameReq.NewName == "" {
+	if renameReq.CurrentPath == "" {
 		w.WriteHeader(http.StatusBadRequest)
 		json.NewEncoder(w).Encode(FileResponse{
 			Success: false,
 			Message: "Current path and new name are required.",
 		})
 		return
 	}
+	if err := validateAttachmentFilename(renameReq.NewName); err != nil {
+		w.WriteHeader(http.StatusBadRequest)
+		json.NewEncoder(w).Encode(FileResponse{
+			Success: false,
+			Message: "New name must be a valid filename.",
+		})
+		return
+	}

The patch introduces a validateAttachmentFilename check and a new resolveAttachmentPath helper that normalizes separators, rejects absolute paths, and constrains resolution beneath the documents or homepage root. See the GitHub Commit 81cd12e for the full change.

Detection Methods for CVE-2026-114375

Indicators of Compromise

  • HTTP requests to the wiki-go rename endpoint containing ../, ..\\, URL-encoded traversal (%2e%2e%2f), or absolute paths in the currentPath or newName fields.
  • Application logs showing rename operations resolving to paths outside the configured attachment root.
  • Unexpected file rename events on the host filesystem under the wiki-go process user.

Detection Strategies

  • Inspect wiki-go access logs for POST requests to the rename handler with suspicious path characters in the JSON body.
  • Deploy web application firewall rules that flag path traversal sequences in request bodies targeting /api/ endpoints exposed by wiki-go.
  • Correlate application-level rename events with filesystem audit events (auditd, Windows file auditing) to detect writes outside expected directories.

Monitoring Recommendations

  • Enable debug logging on the rename handler to capture CurrentPath and NewName values for post-incident review.
  • Monitor filesystem integrity for the directories hosting wiki-go data, configuration, and binaries.
  • Alert on authentication to the wiki-go application followed by rapid successive rename API calls, which may indicate automated exploitation.

How to Mitigate CVE-2026-114375

Immediate Actions Required

  • Upgrade wiki-go to version 1.9.2 or later, which includes commit 81cd12e248314a52605f0f39718c8a76272eac29.
  • Audit existing accounts and remove rename permissions from users who do not require them.
  • Review filesystem integrity for the wiki-go host and investigate any unexpected rename activity since deployment.

Patch Information

The maintainer released the fix in GitHub Release v1.9.2. Technical details are documented in GitHub Security Advisory GHSA-xg75-vx57-m5mx and tracked at VulDB CVE-2026-114375.

Workarounds

  • Restrict network access to the wiki-go instance using a reverse proxy or firewall allow-list until the upgrade is applied.
  • Run the wiki-go process under a dedicated unprivileged user with filesystem access limited to its data directory.
  • Place a WAF or reverse proxy rule in front of the rename endpoint to drop requests containing traversal sequences in the JSON body.
bash
# Example: upgrade wiki-go to the patched release
git clone https://github.com/leomoon-studios/wiki-go.git
cd wiki-go
git checkout v1.9.2
go build -o wiki-go ./...

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.