5.0medium
rclone archive extract allows S3 destination prefix escape via crafted archive paths
- Severity
- 5.0medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.26% (higher than 18% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-4vr5-p2gc-h23pBIT-RCLONE-2026-59732GO-2026-6185
Description
Rclone is a command-line program to sync files and directories to and from different cloud storage providers. Prior to 1.74.4, rclone archive extract can write extracted files outside the user-selected destination prefix when extracting a crafted archive containing parent path components such as ../, allowing creation or overwrite of sibling objects in the same bucket or path scope. This issue is fixed in version 1.74.4.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| rclone rclone | < 1.74.4, before 1.74.4 | CVE List, NVD |
| github.com/rclone/rclone (Go) | before 1.74.4 | GitHub Advisory Database, Go Vulnerability Database |
| rclone (Bitnami) | before 1.74.4 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 5.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:L |
| GitHub | 5.0medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:L |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
Rclone is a command-line program to sync files and directories to and from different cloud storage providers. Prior to 1.74.4, rclone archive extract can write extracted files outside the user-selected destination prefix when extracting a crafted archive containing parent path components such as ../, allowing creation or overwrite of sibling objects in the same bucket or path scope. This issue is fixed in version 1.74.4.
GitHub Advisory Database
Summary
rclone archive extract can write extracted files outside the user-selected destination prefix when extracting a crafted archive. A malicious archive entry containing parent path components such as ../ can escape the requested extraction prefix and create or overwrite sibling objects in the same bucket/path scope.
Details
The affected code path is in cmd/archive/extract/extract.go.
In ArchiveExtract(), the archive entry path is taken from f.NameInArchive. The code strips only a leading ./ prefix and then joins the archive entry path with the destination directory:
remote := f.NameInArchive
remote = strings.TrimPrefix(remote, "./")
if dstDir != "" {
remote = path.Join(dstDir, remote)
}
_, err = operations.Rcat(ctx, dst, remote, fin, f.ModTime(), nil)
Parent path components such as ../ are not rejected before path.Join() is used.
When the destination is an S3-style remote such as:
:s3:bucket/safe/prefix
rclone creates the destination filesystem rooted at bucket/safe and treats prefix as the destination directory. If the archive contains an entry named:
../escaped-from-prefix.txt
then path.Join("prefix", "../escaped-from-prefix.txt") resolves to:
escaped-from-prefix.txt
As a result, the S3 backend uploads the object to:
bucket/safe/escaped-from-prefix.txt
instead of the expected destination:
bucket/safe/prefix/escaped-from-prefix.txt
This allows an attacker-controlled archive to escape the selected extraction prefix on object-storage remotes.
PoC
Test environment:
- Windows 11
- rclone v1.74.3 official Windows amd64 binary
- Local fake S3 HTTP endpoint
- Crafted ZIP archive containing
../escaped-from-prefix.txt
Steps to reproduce:https://drive.google.com/file/d/1P_cLKFgiWSVSATB8500yP28jdzwt9FAt/view?usp=sharing
-
Extract the attached PoC ZIP.
-
Run the PoC script:
powershell -ExecutionPolicy Bypass -File .\run-poc.ps1 -RcloneExe "C:\path\to\rclone.exe"
- The PoC creates a ZIP archive containing this entry:
../escaped-from-prefix.txt
- The PoC starts a local fake S3 endpoint and runs rclone with an S3-style destination prefix:
rclone archive extract malicious.zip :s3:bucket/safe/prefix
- Observe the fake S3 request log.
Expected safe behavior:
PUT /bucket/safe/prefix/escaped-from-prefix.txt
Observed behavior:
PUT /bucket/safe/escaped-from-prefix.txt?x-id=PutObject
This shows that the archive entry escaped the requested safe/prefix destination and was written under safe/ instead.
The PoC package includes:
run-poc.ps1fake-s3-server.pyREADME.mdreport-draft.md- captured proof logs
Impact
An attacker who supplies an archive that a victim extracts with rclone archive extract can cause extracted files to be written outside the destination prefix selected by the victim when the destination is an S3-style object storage remote.
Depending on the victim's configured remote credentials and bucket permissions, this may allow creation or overwrite of sibling objects outside the intended extraction directory/prefix.
This does not require compromising the S3 service itself. The attack relies on the victim extracting an attacker-controlled archive with rclone into an object-storage prefix.
Go Vulnerability Database
Path traversal via crafted archive paths in github.com/rclone/rclone
References
| https://github.com/rclone/rclone/security/advisories/GHSA-4vr5-p2gc-h23p | advisory, exploit, vendor-advisory, web | |
| https://github.com/rclone/rclone/commit/1a746732441e8158f32fab35924b23701e719a8c | fix, patch, web | |
| https://github.com/rclone/rclone/commit/d11efe0d58fe6a2d6d90675bb9d8ee5840c51e1d | fix, patch, web | |
| https://github.com/rclone/rclone/releases/tag/v1.74.4 | article, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-59732 | advisory, web | |
| https://github.com/rclone/rclone | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-59732 changed 2026-07-21 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-4vr5-p2gc-h23p changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-6185 changed 2026-08-18 | CC-BY-4.0 |
| NVD | CVE-2026-59732 changed 2026-07-21 | Public domain |
| Bitnami Vulnerability Database | BIT-RCLONE-2026-59732 changed 2026-09-08 | Apache-2.0 |