CVE-2026-39360: RustFS has an authorization bypass in multipart UploadPartCopy enables cross-bucket object exfiltration

Published Apr 7, 2026
·
Updated

RustFS contains a missing authorization check in the multipart copy path (UploadPartCopy). A low-privileged user who cannot read objects from a victim bucket can still exfiltrate victim objects by copying them into an attacker-controlled multipart upload and completing the upload.

This breaks tenant isolation in multi-user / multi-tenant deployments.

Impact Unauthorized cross-bucket / cross-tenant data exfiltration (Confidentiality: High).

An attacker with only minimal permissions on their own bucket (multipart upload + Put/Get on destination objects) can copy and retrieve objects from a victim bucket without having s3:GetObject (or equivalent) permission on the source.

In the attached PoC, the attacker successfully exfiltrates a 5MB private object and proves integrity via matching SHA256 and size.

Threat Model (Realistic) - Victim tenant/user owns a bucket (e.g., victim-bucket-) and stores private objects (e.g., private/financedump.bin). - Attacker tenant/user has no permissions on the victim bucket: - cannot ListObjects, HeadObject, GetObject, or CopyObject from the victim bucket. - Attacker has minimal permissions only on attacker bucket: - CreateMultipartUpload, UploadPart, UploadPartCopy, CompleteMultipartUpload, AbortMultipartUpload, - and PutObject/GetObject for objects in attacker bucket. - Despite this, attacker can exfiltrate victim objects via multipart copy.

Root Cause Analysis The access control layer fails open for multipart copy-related operations:

File: rustfs/src/storage/access.rs - abortmultipartupload() returns Ok(()) without authorization (L435–437) - completemultipartupload() returns Ok(()) without authorization (L442–444) - uploadpartcopy() returns Ok(()) without authorization (L1446–1448)

In contrast, copyobject() correctly enforces authorization: - source GetObject authorization (L469) - destination PutObject authorization (L478)

The multipart copy implementation reads the source object directly:

File: rustfs/src/app/multipartusecase.rs - store.getobjectreader(&srcbucket, &srckey, ...) (L959–962)

Because uploadpartcopy() does not enforce source GetObject authorization, the server reads and copies victim data even when the requester lacks permission.

Affected Versions - Tested vulnerable on: main @ c1d5106acc3480c275a52344df84633bb6dcd8f0 - Git describe: 1.0.0-alpha.86-3-gc1d5106a

The fail-open authorization behavior for UploadPartCopy was introduced in: - Commit: 09ea11c13 (per git blame on rustfs/src/storage/access.rs:1443-1448)

Affected range (recommended wording): - All versions from commit 09ea11c13 through c1d5106acc3480c275a52344df84633bb6dcd8f0 (and likely any releases containing those commits) until a fix is applied.

Package version (Cargo metadata) - rustfs crate version in this tree: 0.0.5 (cargo metadata)

Proof of Concept (PoC) – Real Commands + Verified Results

Files Place the PoC script at the repository root:

- PoC script: pocuploadpartcopyexfilv3.sh - Captured output: pocv3output.txt - (Optional) Redacted debug log: uploadpartcopydebugredacted.log (Authorization/signature redacted)

Environment RustFS running locally (Docker is simplest), listening on:

- http://127.0.0.1:9000

Tools: - awscli, jq, awscurl

Steps to Reproduce 1) Start RustFS (example):

bash docker compose -f docker-compose-simple.yml up -d

2. Run the PoC and save output:

bash chmod +x pocuploadpartcopyexfilv3.sh ./pocuploadpartcopyexfilv3.sh | tee pocv3output.txt

Attachments

pocuploadpartcopyexfilv3.sh pocv3output.txt

Expected Behavior

Attacker operations against victim bucket should be denied:

ListObjects -> AccessDenied HeadObject -> AccessDenied GetObject -> AccessDenied CopyObject -> AccessDenied UploadPartCopy from victim -> attacker multipart should also be denied.

Actual Behavior

All direct operations against victim are denied (as expected), but UploadPartCopy succeeds, and attacker retrieves the copied object from attacker bucket.

Observed PoC Output

Victim uploads a private object:

size: 5,242,880 bytes sha256: fda018db1da9d8f4c1b287c75943384a3b4ede391ec156039b6d94e17d6ad68f

Attacker exfiltrates it via multipart copy:

stolen size: 5,242,880 bytes stolen sha256: fda018db1da9d8f4c1b287c75943384a3b4ede391ec156039b6d94e17d6ad68f

Proof:

hashes and sizes match (victim == stolen) -> unauthorized cross-bucket read confirmed.

Network Evidence (Redacted)

The debug log shows a successful request with:

HTTP method: PUT destination: /<attacker-bucket>/<dst-key>?partNumber=1&uploadId=... header: x-amz-copy-source: <victim-bucket>/private/financedump.bin response: HTTP/1.1 200 with <CopyPartResult><ETag>...</ETag>...</CopyPartResult>

Fix

Implement authorization checks equivalent to copyobject() for multipart copy paths:

uploadpartcopy:

enforce source GetObject authorization on x-amz-copy-source enforce destination PutObject authorization on the target object (recommended) apply the same tag-condition enforcement used by copyobject() on the source.

completemultipartupload:

enforce destination PutObject authorization

abortmultipartupload:

enforce appropriate multipart permission (or destination PutObject as a safe boundary)

Other sources

RustFS is a distributed object storage system built in Rust. Prior to alpha.90, RustFS contains a missing authorization check in the multipart copy path (UploadPartCopy). A low-privileged user who cannot read objects from a victim bucket can still exfiltrate victim objects by copying them into an attacker-controlled multipart upload and completing the upload. This breaks tenant isolation in multi-user / multi-tenant deployments. This vulnerability is fixed in alpha.90.

MITRE

Affected Software

90 affected components
rust/rustfs<=0.0.2
RustFS Rustfs Rust=1.0.0-alpha1
RustFS Rustfs Rust=1.0.0-alpha10
RustFS Rustfs Rust=1.0.0-alpha11
RustFS Rustfs Rust=1.0.0-alpha12
RustFS Rustfs Rust=1.0.0-alpha13
RustFS Rustfs Rust=1.0.0-alpha14
RustFS Rustfs Rust=1.0.0-alpha15
RustFS Rustfs Rust=1.0.0-alpha16
RustFS Rustfs Rust=1.0.0-alpha17
RustFS Rustfs Rust=1.0.0-alpha18
RustFS Rustfs Rust=1.0.0-alpha19
RustFS Rustfs Rust=1.0.0-alpha2
RustFS Rustfs Rust=1.0.0-alpha20
RustFS Rustfs Rust=1.0.0-alpha21
RustFS Rustfs Rust=1.0.0-alpha22
RustFS Rustfs Rust=1.0.0-alpha23
RustFS Rustfs Rust=1.0.0-alpha24
RustFS Rustfs Rust=1.0.0-alpha25
RustFS Rustfs Rust=1.0.0-alpha26
RustFS Rustfs Rust=1.0.0-alpha27
RustFS Rustfs Rust=1.0.0-alpha28
RustFS Rustfs Rust=1.0.0-alpha29
RustFS Rustfs Rust=1.0.0-alpha3
RustFS Rustfs Rust=1.0.0-alpha30
RustFS Rustfs Rust=1.0.0-alpha31
RustFS Rustfs Rust=1.0.0-alpha32
RustFS Rustfs Rust=1.0.0-alpha33
RustFS Rustfs Rust=1.0.0-alpha34
RustFS Rustfs Rust=1.0.0-alpha35
RustFS Rustfs Rust=1.0.0-alpha36
RustFS Rustfs Rust=1.0.0-alpha37
RustFS Rustfs Rust=1.0.0-alpha38
RustFS Rustfs Rust=1.0.0-alpha39
RustFS Rustfs Rust=1.0.0-alpha4
RustFS Rustfs Rust=1.0.0-alpha40
RustFS Rustfs Rust=1.0.0-alpha41
RustFS Rustfs Rust=1.0.0-alpha42
RustFS Rustfs Rust=1.0.0-alpha43
RustFS Rustfs Rust=1.0.0-alpha44
RustFS Rustfs Rust=1.0.0-alpha45
RustFS Rustfs Rust=1.0.0-alpha46
RustFS Rustfs Rust=1.0.0-alpha47
RustFS Rustfs Rust=1.0.0-alpha48
RustFS Rustfs Rust=1.0.0-alpha49
RustFS Rustfs Rust=1.0.0-alpha5
RustFS Rustfs Rust=1.0.0-alpha50
RustFS Rustfs Rust=1.0.0-alpha51
RustFS Rustfs Rust=1.0.0-alpha52
RustFS Rustfs Rust=1.0.0-alpha53
RustFS Rustfs Rust=1.0.0-alpha54
RustFS Rustfs Rust=1.0.0-alpha55
RustFS Rustfs Rust=1.0.0-alpha56
RustFS Rustfs Rust=1.0.0-alpha57
RustFS Rustfs Rust=1.0.0-alpha58
RustFS Rustfs Rust=1.0.0-alpha59
RustFS Rustfs Rust=1.0.0-alpha6
RustFS Rustfs Rust=1.0.0-alpha60
RustFS Rustfs Rust=1.0.0-alpha61
RustFS Rustfs Rust=1.0.0-alpha62
RustFS Rustfs Rust=1.0.0-alpha63
RustFS Rustfs Rust=1.0.0-alpha64
RustFS Rustfs Rust=1.0.0-alpha65
RustFS Rustfs Rust=1.0.0-alpha66
RustFS Rustfs Rust=1.0.0-alpha67
RustFS Rustfs Rust=1.0.0-alpha68
RustFS Rustfs Rust=1.0.0-alpha69
RustFS Rustfs Rust=1.0.0-alpha7
RustFS Rustfs Rust=1.0.0-alpha70
RustFS Rustfs Rust=1.0.0-alpha71
RustFS Rustfs Rust=1.0.0-alpha72
RustFS Rustfs Rust=1.0.0-alpha73
RustFS Rustfs Rust=1.0.0-alpha74
RustFS Rustfs Rust=1.0.0-alpha75
RustFS Rustfs Rust=1.0.0-alpha76
RustFS Rustfs Rust=1.0.0-alpha77
RustFS Rustfs Rust=1.0.0-alpha78
RustFS Rustfs Rust=1.0.0-alpha79
RustFS Rustfs Rust=1.0.0-alpha8
RustFS Rustfs Rust=1.0.0-alpha80
RustFS Rustfs Rust=1.0.0-alpha81
RustFS Rustfs Rust=1.0.0-alpha82
RustFS Rustfs Rust=1.0.0-alpha83
RustFS Rustfs Rust=1.0.0-alpha84
RustFS Rustfs Rust=1.0.0-alpha85
RustFS Rustfs Rust=1.0.0-alpha86
RustFS Rustfs Rust=1.0.0-alpha87
RustFS Rustfs Rust=1.0.0-alpha88
RustFS Rustfs Rust=1.0.0-alpha89
RustFS Rustfs Rust=1.0.0-alpha9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade RustFS to a version that resolves this vulnerability.

    Fixed in alpha.90
  2. Configuration

    Implement authorization checks equivalent to `copy_object()` for the multipart copy path (`UploadPartCopy` / upload_part_copy): enforce destination `PutObject` authorization on the target object and enforce source `GetObject` authorization on `x-amz-copy-source`, including appropriate multipart permission checks. This prevents fail-open behavior where `UploadPartCopy` succeeds without authorization and the attacker can retrieve copied data from their bucket.

    RustFS multipart copy (UploadPartCopy) Authorization enforcement = Enforce same source GetObject checks and destination PutObject checks as copy_object()

Event History

Apr 7, 2026
CVE Published
via MITRE·06:58 PM
Data Sourced
via MITRE·06:58 PM
DescriptionWeakness
Data Sourced
via NVD·07:16 PM
DescriptionSeverityWeaknessAffected Software
Apr 8, 2026
Advisory Published
via GitHub·12:15 AM
Data Sourced
via GitHub·12:15 AM
DescriptionWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203
CVE-2026-39360 - RustFS has an authorization bypass in multipart UploadPartCopy enables cross-bucket object exfiltration - SecAlerts