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-8V25-V8P6-QF7V

GHSA-8V25-V8P6-QF7V: Path Traversal in rclone S3 API Gateway Emulation

Alon Barad
Alon Barad
Software Engineer

Aug 6, 2026·5 min read·28 visits

Executive Summary (TL;DR)

The rclone 'serve s3' subcommand suffers from a path traversal vulnerability because it relies on standard Go path joining which normalizes relative sequences (..), allowing clients to access the root directory of the served storage.

A path traversal vulnerability exists in the S3 emulation layer of rclone when executing the 'serve s3' subcommand. Because the application maps client-supplied S3 object keys containing relative directory sequences to file paths without proper boundary checks, an attacker can escape the logical containment of a target bucket. This enables unauthorized reading, writing, and deletion of files at the root level of the served storage directory.

Vulnerability Overview

The S3 API gateway emulation layer in rclone, accessible via the rclone serve s3 subcommand, contains a path traversal vulnerability. This component emulates an S3-compatible object storage server on top of rclone's backend storage systems. By exposing this gateway, hosts allow users to interact with files using standard S3 protocol verbs and clients.\n\nThe flaw lies within the translation of S3 object keys to local system or virtual file system (VFS) paths. Under normal operation, each S3 bucket corresponds to a top-level directory within the rclone serve root, while object keys correspond to files nested inside those directories. Users should not be able to traverse outside their allocated bucket directory.\n\nThis vulnerability allows remote attackers with access to the S3 gateway to traverse outside the bucket root directory. By using manipulated object keys, malicious actors can access, overwrite, or delete arbitrary files at the root of the served directory. This violates the multi-tenant isolation assumptions of the S3-compatible interface.

Root Cause Analysis

The core defect exists in how rclone processes S3 object keys to map them to physical paths. In Amazon S3, object keys are flat, opaque strings that can syntactically contain directory separators and relative elements. When processing operations like GetObject, rclone uses Go's standard path.Join function to combine the bucket name and the object key.\n\nThe Go standard library's path.Join function automatically runs path.Clean on the resulting string to normalize it. This behavior resolves relative path segments such as double dots (..) and single dots (.). If an S3 object key contains ../ sequences, path.Join resolves these relative segments against the bucket directory prefix.\n\nFor example, combining a bucket name of bucket and an object key of ../secret.txt produces bucket/../secret.txt. After normalization via path.Clean, this string resolves directly to secret.txt. This resulting path references a file at the root level of the serve directory, completely escaping the bucket directory restriction.

Code Analysis

In the vulnerable implementation, operations in cmd/serve/s3/backend.go directly concatenate path strings using unsafe methods. The functions for object retrieval, metadata querying, file writing, and deletion constructed target paths without validating key structure.\n\nThe vulnerable code pattern is exemplified by the GetObject function:\n\ngo\n// Vulnerable mapping logic\nfp := path.Join(bucketName, objectName)\n\n\nThis direct join allowed relative segments to modify the target directory.\n\nThe patched code introduces a strict validation function canonicalKey and helper function bucketObjectPath. The core modification requires all S3 keys to match their fully cleaned canonical form. If a key contains relative segments, it fails validation and the operation is terminated.\n\ngo\n// Patched validation logic\nfunc canonicalKey(key string) bool {\n return key != "" && "/"+key == path.Clean("/"+key)\n}\n\nfunc bucketObjectPath(bucketName, objectName string) (string, error) {\n if !canonicalKey(objectName) {\n return "", errInvalidObjectName(objectName)\n }\n return path.Join(bucketName, objectName), nil\n}\n\n\nBy anchoring the key with a leading slash during cleaning, the validation ensures that no relative segments can escape the root of the key structure without changing the overall path string, preventing the validation from passing.

Exploitation Methodology

Exploitation of this vulnerability requires network access to the exposed rclone serve s3 endpoint. The attacker does not need special administrative access, only standard permissions to execute S3 API calls on the target bucket. The attack is fully operationalizable using standard S3 client tools or direct HTTP requests.\n\nAn attacker targeting an arbitrary file root-secret.txt at the root of the serve directory would construct an S3 request specifying a valid bucket and a traversed object key. Using the AWS Command Line Interface, the command takes the following form:\n\nbash\naws s3api get-object --endpoint-url http://<rclone-ip>:8080 --bucket targetbucket --key "../root-secret.txt" output.txt\n\n\nThe corresponding HTTP request demonstrates how the raw path is transmitted to the server:\n\nhttp\nGET /targetbucket/../root-secret.txt HTTP/1.1\nHost: <rclone-ip>:8080\nAuthorization: AWS4-HMAC-SHA256 ...\n\n\nUpon receiving this request, rclone parses the object name as ../root-secret.txt. The vulnerable backend normalizes the path to root-secret.txt and returns the file contents to the client, bypassing access boundaries.

Impact Assessment

The impact of this path traversal vulnerability is significant for systems utilizing rclone serve s3 in multi-tenant or untrusted environments. If multiple users are assigned isolated buckets, any user can escape their boundary. This allows unauthorized access to data stored in other buckets or directly at the root.\n\nBeyond arbitrary file retrieval (information disclosure), the vulnerability permits arbitrary file creation and modification. An attacker can write files using PutObject with traversed keys, allowing them to overwrite critical application configurations or upload malicious files to unauthorized directories.\n\nFurthermore, the deleteObject code path is vulnerable. Attackers can delete files at the root level of the server, leading to denial of service or destruction of data. This combination of read, write, and delete capabilities results in complete compromise of the served storage root directory.

Remediation and Mitigation

The primary remediation path is upgrading rclone to version v1.74.4 or later. The patched versions enforce strict canonical path checks on all client-supplied S3 keys. This prevents any non-canonical keys from being processed, causing the server to respond with a 400 Bad Request instead of performing unsafe path normalization.\n\nWhen immediate upgrading is not possible, administrative workarounds can reduce exposure. A reverse proxy or web application firewall (WAF) can be deployed in front of the S3 endpoint. Rules should be configured to inspect and block incoming HTTP requests containing .. or URL-encoded equivalents such as %2e%2e within the request path.\n\nIn addition to input filtering, the rclone process should run with the lowest possible system privileges. Running rclone in a rootless container or a restricted chroot jail limits the file system scope. This sandboxing ensures that even if a path traversal occurs, the process cannot access sensitive host system files outside the designated container environment.

Fix Analysis (2)

Technical Appendix

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

Affected Systems

rclone S3 gateway service (rclone serve s3 subcommand) on all operational environments

Affected Versions Detail

Product
Affected Versions
Fixed Version
rclone
rclone
< v1.74.4v1.74.4
AttributeDetail
CWE IDCWE-22 (Improper Limitation of a Pathname to a Restricted Directory)
Attack VectorNetwork (AV:N)
Required PrivilegesNone (PR:N)
User InteractionNone (UI:N)
CVSS v3.1 Severity Score8.6 (High)
Exploit StatusPoC / Unit-Test verified
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1190Exploit Public-Facing Application
Initial Access
CWE-22
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

The software uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize elements within the pathname that can cause the pathname to resolve to a location outside of the restricted directory.

Known Exploits & Detection

GitHub Security AdvisoryExploit methods via standard S3 client CLI utilities demonstrating boundary escape.

Vulnerability Timeline

Vulnerability identified and core patch committed to rclone master branch.
2026-06-29
GitHub Security Advisory GHSA-8V25-V8P6-QF7V published.
2026-06-29
rclone release v1.74.4 shipped publicly containing the patch.
2026-06-29

References & Sources

  • [1]GitHub Security Advisory GHSA-8V25-V8P6-QF7V
  • [2]rclone Source Code Repository
  • [3]rclone Release v1.74.4

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

•about 2 hours ago•CVE-2026-9639
6.5

CVE-2026-9639: Authenticated Denial of Service via Nil-Pointer Dereference in Canonical LXD Custom Volume Backup Import

CVE-2026-9639 (GHSA-j93m-3j9p-m5m8) is a null pointer dereference vulnerability in Canonical LXD affecting versions 5.0.0 through 5.21.4 and 6.0 through 6.8. The flaw resides in the (*lxdBackend).CreateCustomVolumeFromBackup method within lxd/storage/backend_lxd.go. An authenticated attacker with the can_create_storage_volumes permission can upload a crafted custom volume backup tarball that omits the expires_at field on a snapshot entry, triggering an unhandled SIGSEGV panic and terminating the LXD daemon.

Amit Schendel
Amit Schendel
5 views•9 min read
•about 3 hours ago•CVE-2026-33050
8.8

CVE-2026-33050: OS Command Injection in GeoNode Vector Upload Handler

An operating system command injection vulnerability (CWE-78) exists in GeoNode versions prior to 5.1.0. The vulnerability occurs in the vector upload processing pipeline when handling user-supplied geospatial files. By supplying a crafted layer name containing shell metacharacters, an authenticated attacker with basic data upload privileges can execute arbitrary commands on the underlying server or container hosting the GeoNode application and Celery worker processes.

Alon Barad
Alon Barad
5 views•9 min read
•about 4 hours ago•CVE-2026-46429
5.5

CVE-2026-46429: Unrestricted File Upload and Validation Bypass in GeoNode

GeoNode versions prior to 5.0.3 contain an unrestricted file upload vulnerability (CWE-434) within the document and dataset ingestion architecture. Authenticated low-privileged users can bypass upload validation via direct REST API interactions, file extension masquerading, metadata mutation via PATCH requests, or malicious archive submissions. This allows attackers to store and serve dangerous file types, alter on-disk file references, or trigger path traversal and resource exhaustion during archive extraction.

Amit Schendel
Amit Schendel
5 views•10 min read
•about 5 hours ago•CVE-2026-55649
6.3

CVE-2026-55649: Stored Cross-Site Scripting in GeoNode Document Metadata Abstract Field

CVE-2026-55649 is a stored Cross-Site Scripting (XSS) vulnerability in GeoNode versions prior to 5.0.3. The flaw exists because document abstract metadata fields are ingested via the metadata management pipeline and stored in the backend database without HTML sanitization or input neutralization. An authenticated attacker with privileges to create or edit document metadata can inject arbitrary HTML and JavaScript payloads into these fields. When another user, such as an administrator, views the affected document page or catalog listing, the unencoded payload is rendered into the Document Object Model (DOM) and executes within the victim's browser session.

Amit Schendel
Amit Schendel
7 views•9 min read
•about 6 hours ago•GHSA-QX75-2P3R-PWM5
7.7

CVE-2026-55622: Cross-Project Instance Copy Authorization Bypass in Canonical LXD and LXC Incus

CVE-2026-55622 (GHSA-qx75-2p3r-pwm5) is an improper access control vulnerability (CWE-284) in Canonical LXD and LXC Incus (tracked as GHSA-c9f5-j9c3-mhrg). In multi-tenant deployments utilizing project-based isolation, the REST API handler for instance creation via POST /1.0/instances verifies that the authenticated user has authorization in the destination project specified by the query parameter, but fails to verify whether the user holds read or view permissions for the source instance when executing a copy operation across projects. Consequently, an authenticated client restricted to a single project can clone instances or snapshots from unauthorized projects into their own project, resulting in complete disclosure of the target instance filesystem and embedded credentials.

Amit Schendel
Amit Schendel
6 views•11 min read
•about 7 hours ago•GHSA-7MR3-28H5-M5VX
7.7

GHSA-7mr3-28h5-m5vx: Authorization Bypass and Cross-Project Volume Copy in Canonical LXD

An authorization bypass vulnerability in Canonical LXD (tracked as GHSA-7mr3-28h5-m5vx and CVE-2026-55621, and as GHSA-64f3-v33m-w89f in Linux Containers Incus) allows an authenticated user with restricted project access to copy custom storage volumes and volume snapshots from unauthorized projects. The flaw resides in the storagePoolVolumesPost REST API handler, which verifies permissions on the destination project but fails to check whether the caller holds view entitlements on the source project or volume specified in the request body.

Alon Barad
Alon Barad
5 views•10 min read