In-app reader
The SeaweedFS S3 API gateway did not reject .. path segments in the X-Amz-Copy-Source header used by CopyObject and UploadPartCopy. The request URL path was hardened against traversal in 4.30 (CVE-2026-54917), but the copy-source header was only checked for emptiness, so a .. segment in the copy source survived into the server-side filer path and resolved into a different bucket.
A confused-deputy authorization bypass that breaks bucket isolation. IAM evaluates the caller's policy against the bucket named in the request URL (the destination the caller owns), while the copy reads its source from the traversed target bucket. An identity scoped to a single bucket (Read + Write on one bucket it controls) can therefore read any object in any bucket on the instance and land the result in its own bucket.
For example, a caller authorized only for bucket-a issues a CopyObject into bucket-a with copy source bucket-a/../ / ; the gateway reads / and writes it to the attacker-controlled destination, from which the caller reads it normally. UploadPartCopy (CopyObjectPartHandler) is affected by the same vector.
All releases prior to 4.34. The 4.30 fix for CVE-2026-54917 hardened the request URL path but not the X-Amz-Copy-Source header.
4.34 and later.
Upgrade to 4.34 or later. The fix validates the copy-source bucket and object key with the same IsValidBucketName / IsValidObjectKey guards already applied to the request URL, rejecting traversal segments before the handler runs, and applies the same check to UploadPartCopy.
No configuration workaround. For deployments that cannot upgrade immediately, front the gateway with a reverse proxy that rejects requests whose X-Amz-Copy-Source header contains .., %2e%2e, or backslash sequences.
Reported responsibly by @47Cid.
Discussion
Sign in to join the discussion.
Keep reading
Optional: create a free account to save items, track programs, and sync across web + app. Reading stays free.