CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-95CV-R8X4-VH75

GHSA-95cv-r8x4-vh75: Path Traversal Vulnerability in OpenList Batch Rename Handler

Amit Schendel
Amit Schendel
Senior Security Researcher

Jul 25, 2026·7 min read·44 visits

Executive Summary (TL;DR)

Authenticated users can rename files outside their base path via path traversal sequences in the batch rename 'src_name' parameter.

A critical path traversal vulnerability has been identified in the OpenList Go-based backend package. The vulnerability exists within the batch rename handler because the application does not validate the source filename parameter before constructing filesystems paths. This omission allows authenticated users to escape their designated directory and rename files in sibling paths.

Vulnerability Overview

The Go-based backend package github.com/OpenListTeam/OpenList/v4 exposes a file management endpoint /api/fs/batch_rename that allows users to perform multiple rename operations concurrently. Under multi-tenant configurations, users are restricted to a specific home or base directory to prevent cross-tenant data access. However, a validation failure in this batch rename handler allows users to escape their designated directory boundary.\n\nThis vulnerability is classified under CWE-22 (Improper Limitation of a Pathname to a Restricted Directory, also known as Path Traversal). The attack surface is exposed to any authenticated user who possesses standard file rename permissions. Because the application fails to sanitize one of the main user-provided parameters, an attacker can manipulate files in sibling paths.\n\nWhile single-file rename operations enforce validation checks on both the source and target path parameters, the batch rename handler only validates the target parameter. This omission permits directory traversal sequences inside the source path parameter to resolve to parent directories. The resulting impact is an integrity and availability violation across the local filesystem.

Root Cause Analysis

The core vulnerability exists in the handler function FsBatchRename located inside the file server/handles/fsbatch.go. When processing a batch rename request, the HTTP server validates and authorizes the base source directory (req.SrcDir) using the user.JoinPath method. This authorization step ensures that the starting directory path remains within the user's allocated base path, returning a validated base path known as reqPath.\n\nAlthough reqPath is verified, the batch rename mechanism processes individual objects containing a source filename (SrcName) and a target filename (NewName). Inside the processing loop, the application validates the destination filename by calling the helper function checkRelativePath(renameObject.NewName). This function checks for path separators and traversal tokens like .. to prevent the destination from escaping the target folder.\n\nHowever, the handler fails to call checkRelativePath on the source file parameter renameObject.SrcName. Instead, the application directly concatenates reqPath and renameObject.SrcName using string formatting (fmt.Sprintf("%s/%s", reqPath, renameObject.SrcName)). This concatenated string is then passed down to the underlying filesystem interface fs.Rename without further verification.\n\nThe target filesystem layer resolves the combined path using standard library functions such as path.Clean. This cleanup step resolves any directory traversal sequences, such as ../, collapsing them into a normalized path that points outside the authorized reqPath directory tree. Consequently, the backend executes the filesystem rename operation on paths for which the user lacks authorization.

Code Path & Patch Analysis

An inspection of the source code confirms the asymmetric validation logic between the source and destination variables. The vulnerable code pathway is implemented within server/handles/fsbatch.go under the batch rename loop. The code block demonstrates that while renameObject.NewName is guarded by checkRelativePath, the renameObject.SrcName variable flows unchecked directly into the path construction logic.\n\ngo\n// Vulnerable Code Path\nfor _, renameObject := range req.RenameObjects {\n if renameObject.SrcName == "" || renameObject.NewName == "" {\n continue\n }\n // Only NewName is validated against relative path patterns\n err = checkRelativePath(renameObject.NewName)\n if err != nil {\n common.ErrorResp(c, err, 403)\n return\n }\n \n // Unvalidated SrcName is concatenated to the authorized reqPath\n filePath := fmt.Sprintf(\"%s/%s\", reqPath, renameObject.SrcName)\n \n // Path cleanup resolves relative traversal tokens, escaping boundaries\n err = fs.Rename(filePath, renameObject.NewName)\n}\n\n\nThe remediation introduced in commit 651da18da4c647d96648d4bb64462baac1c37e04 addresses this gap. The patch inserts a validation step for renameObject.SrcName using the same checkRelativePath function before the path is constructed. If either of the parameters contains path separators or traversal characters, the operation is blocked.\n\ngo\n// Patched Code Path in server/handles/fsbatch.go\nfor _, renameObject := range req.RenameObjects {\n if renameObject.SrcName == "" || renameObject.NewName == "" {\n continue\n }\n // Fix: Validate SrcName using checkRelativePath to block traversal sequences\n err = checkRelativePath(renameObject.SrcName)\n if err != nil {\n common.ErrorResp(c, err, 403)\n return\n }\n err = checkRelativePath(renameObject.NewName)\n if err != nil {\n common.ErrorResp(c, err, 403)\n return\n }\n \n filePath := fmt.Sprintf(\"%s/%s\", reqPath, renameObject.SrcName)\n err = fs.Rename(filePath, renameObject.NewName)\n}\n\n\nThis fix is highly effective because checkRelativePath acts as a strict whitelist, checking for any system path separators. Any attempt to use . or .. or slashes in SrcName returns an error. This prevents the path concatenation function from ever receiving directory traversal tokens, ensuring complete boundary isolation.

Exploitation Methodology & PoC

Exploitation of this vulnerability requires an authenticated session with standard user privileges and file rename permissions. The attacker must target the /api/fs/batch_rename endpoint by transmitting a crafted JSON payload. The payload must specify a valid source directory that the user has permission to write to, combined with a traversal sequence inside the src_name parameter of the rename_objects array.\n\nBecause the backend relies on path.Clean on the filesystem driver level, the traversal tokens allow the attacker to reference sibling folders. For example, if the user's home path is /team/a and they target a writable directory inside it, they can construct a relative path to reference files located in /team/ab or /team/b. The following request illustrates a typical exploit payload:\n\njson\n{\n "src_dir": "/writable",\n "rename_objects": [\n {\n "src_name": "../../ab/secret.txt",\n "new_name": "renamed.txt"\n }\n ]\n}\n\n\nmermaid\ngraph LR\n A["Attacker Alice Auth Session"] -->|POST /api/fs/batch_rename| B["OpenList API Handler"]\n B -->|Resolve SrcDir: /team/a/writable| C["Valid Path: /team/a/writable"]\n B -->|Concatenate SrcName: ../../ab/secret.txt| D["/team/a/writable/../../ab/secret.txt"]\n D -->|path.Clean Normalization| E["Target: /team/ab/secret.txt"]\n E -->|Rename Command| F["Filesystem Execution Unauthorized Path"]\n\n\nWhen the server processes this request, it first validates that Alice has permission to modify /team/a/writable. It then appends the traversal payload, yielding /team/a/writable/../../ab/secret.txt. The filesystem driver resolves this path to /team/ab/secret.txt. It renames the file to renamed.txt inside the target directory, completing the unauthorized modification.

Security Impact & Threat Modeling

The vulnerability has significant implications for multi-tenant and multi-user configurations. An attacker restricted to their own folder can rename files belonging to other users or the core system application. This capability directly violates data integrity, as critical files can be renamed, moved, or misplaced without the target user's consent.\n\nFurthermore, availability is severely impacted. By renaming crucial configuration files, system scripts, or database files to random names, an attacker can disable services, leading to a localized denial of service (DoS). If the system attempts to read a file that has been renamed, it will fail, disrupting dependent application flows.\n\nAdditionally, this bug introduces a low-severity confidentiality leak. An attacker can use the API's success and error responses to perform file and directory discovery. By sending speculative rename commands containing traversal paths, the attacker can determine if specific files or directories exist on the server based on whether the endpoint returns a 200 OK or a 404 Not Found error.

Remediation & Defense-in-Depth

To eliminate the vulnerability, administrators must update the Go module github.com/OpenListTeam/OpenList/v4 to version v4.2.4 or later. This version contains the patch that applies the checkRelativePath validation to both input fields. Recompiling the backend with the patched module prevents all path traversal attempts via the batch rename endpoint.\n\nFor systems where an immediate software update is not possible, temporary mitigation can be implemented using a Web Application Firewall (WAF) or a reverse proxy. Administrators can configure a WAF rule to analyze incoming HTTP POST requests directed at /api/fs/batch_rename. The rule should inspect the body for traversal sequences within the JSON payload.\n\nnginx\n# Example Nginx snippet to reject potential traversal payloads\nlocation /api/fs/batch_rename {\n client_max_body_size 10k;\n if ($request_body ~* "src_name.*\\.\\./") {\n return 403;\n }\n proxy_pass http://backend_upstream;\n}\n\n\nIn addition to input validation, organizations should implement the principle of least privilege. Run the application process using a low-privilege system user account. Ensure that filesystem permissions restrict the application process from writing to directories outside of the designated data storage roots, limiting the blast radius of any successful path traversal exploit.

Official Patches

OpenListTeamFix commit for FsBatchRename path validation

Fix Analysis (1)

Technical Appendix

CVSS Score
7.6/ 10
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L

Affected Systems

OpenList Backend v4.2.3 and below

Affected Versions Detail

Product
Affected Versions
Fixed Version
OpenList
OpenListTeam
<= v4.2.3v4.2.4
AttributeDetail
CWE IDCWE-22
Attack VectorNetwork
CVSS v3.17.6 (High)
Exploit StatusProof of Concept
CISA KEV StatusNot Listed
ImpactIntegrity & Availability Violations

MITRE ATT&CK Mapping

T1083File and Directory Discovery
Discovery
T1565.001Stored Data Manipulation
Impact
T1485Data Destruction
Impact
CWE-22
Improper Limitation of a Pathname to a Restricted Directory

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Known Exploits & Detection

GitHub Security AdvisoryContains detailed Go-based integration tests reproducing the directory traversal vulnerability

Vulnerability Timeline

Fix commit authored and pushed
2026-07-15
GitHub Security Advisory GHSA-95cv-r8x4-vh75 published
2026-07-24
OpenList v4.2.4 released containing the fix
2026-07-24

References & Sources

  • [1]GitHub Advisory Database Entry
  • [2]OpenList Security Advisory
  • [3]OpenList v4.2.4 Release

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•2 minutes ago•CVE-2026-109619
9.2

CVE-2026-109619: Remote Code Execution in PHP Core via Stale Global State Memory Corruption (PHP2Shell)

CVE-2026-109619 (PHP2Shell) is a critical Use-After-Free vulnerability in the core PHP engine caused by improper global state cleanup during out-of-memory exception handling across persistent worker requests.

Alon Barad
Alon Barad
1 views•6 min read
•5 minutes ago•CVE-2026-113721
4.5

CVE-2026-113721: Unsafe Link Resolution in virtualenv File Generation

In Python virtualenv prior to version 21.14.9, activation script generators and configuration writers use Path.exists() before writing files. Because Path.exists() resolves symbolic links, it returns False for dangling symlinks. Consequently, virtualenv skips unlinking pre-planted symbolic links or hard links, writing data directly to target locations outside the intended virtual environment directory.

Amit Schendel
Amit Schendel
1 views•5 min read
•9 days ago•CVE-2026-87697
8.8

CVE-2026-87697: Untrusted Deserialization in .NET PresentationCore Clipboard Handling

A remote code execution vulnerability exists in Microsoft .NET due to untrusted data deserialization within the PresentationCore component. The flaw stems from implicit auto-conversion flags during clipboard data retrieval operations.

Alon Barad
Alon Barad
31 views•5 min read
•9 days ago•CVE-2026-70007
8.8

CVE-2026-70007: Out-of-Bounds Write Vulnerability in .NET Framework and WPF Subsystem

An out-of-bounds write vulnerability in Microsoft .NET Framework, .NET runtime, and Visual Studio allows unauthenticated remote attackers to execute arbitrary code via crafted pixel-shader bytecode or auto-converted clipboard payloads.

Amit Schendel
Amit Schendel
19 views•6 min read
•10 days ago•CVE-2026-70186
7.5

CVE-2026-70186: ASP.NET Core Denial of Service Vulnerability via Framework Deadlock

ASP.NET Core contains a thread deadlock vulnerability (CWE-833) that allows an unauthenticated remote attacker to cause a denial of service over the network by exhausting server thread pool resources.

Amit Schendel
Amit Schendel
18 views•5 min read
•10 days ago•CVE-2026-70035
8.8

CVE-2026-70035: Insecure Deserialization Remote Code Execution in Microsoft .NET Framework and .NET Runtime

CVE-2026-70035 is a high-severity Remote Code Execution (RCE) vulnerability in Microsoft .NET Framework, .NET runtime, and Visual Studio caused by improper handling during the deserialization of untrusted data (CWE-502). An unauthenticated attacker can execute arbitrary code within the context of the affected process by delivering a crafted serialized payload.

Amit Schendel
Amit Schendel
24 views•6 min read