SeaweedFS: Path traversal in the S3 gateway X-Amz-Copy-Source header allows cross-bucket object read
High7.7CVE-2026-55874 · Published Aug 28, 2026 · updated Sep 2, 2026
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| github.com/seaweedfs/seaweedfs Go | < 0.0.0-20260612000715-b44cf51fe931 | 0.0.0-20260612000715-b44cf51fe931 |
Details and references
### Summary 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. ### Impact 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/../<victim-bucket>/<key>`; the gateway reads `<victim-bucket>/<key>` and writes it to the attacker-controlled destination, from which the caller reads it normally. `UploadPartCopy` (CopyObjectPartHandler) is affected by the same vector. ### Affected versions 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. ### Patched version 4.34 and later. ### Remediation 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`. ### Workaround 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. ### References - Fix: https://github.com/seaweedfs/seaweedfs/pull/9929 (commit b44cf51fe931bd75aa4d37ae766bea90d7f85ccd) ### Credit Reported responsibly by [@47Cid](https://github.com/47Cid).
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
- Severity from
- GitHub (reviewed advisory)
- Weakness
- CWE-22
- Also known as
- BIT-seaweedfs-2026-55874, CVE-2026-55874, GO-2026-6327
- github.com/seaweedfs/seaweedfs/security/advisories/GHSA-56wq-x3wv-3ff4
- nvd.nist.gov/vuln/detail/CVE-2026-55874
- github.com/seaweedfs/seaweedfs/pull/9929
- github.com/seaweedfs/seaweedfs/commit/b44cf51fe931bd75aa4d37ae766bea90d7f85ccd
- github.com/seaweedfs/seaweedfs
- github.com/seaweedfs/seaweedfs/releases/tag/4.34
More seaweedfs advisories
All| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Aug 28 | SeaweedFS: Improper authorization in the S3Tables / Iceberg REST management API lets a low-privileged S3 user enumerate administrator-owned table buckets CVE-2026-55873Medium4.3fixed in 0.0.0-20260614205536-b13463880c1f | Medium4.3 | 0.0.0-20260614205536-b13463880c1f |
| Sep 2 | SeaweedFS: Unauthenticated filer IAM gRPC service grants S3 administrative control CVE-2026-72920Critical9.8fixed in 0.0.0-20260512171108-5e8f99f40a8a | Critical9.8 | 0.0.0-20260512171108-5e8f99f40a8a |
| Sep 2 | SeaweedFS: Filer JWT allowed_prefixes literal prefix match allows cross-tenant access to sibling paths CVE-2026-72921High8.1fixed in 0.0.0-20260512171048-05ed5c9ae8a2 | High8.1 | 0.0.0-20260512171048-05ed5c9ae8a2 |
| Aug 12 | SeaweedFS: Path traversal in the S3 and Iceberg REST gateways allows cross-bucket access CVE-2026-54917Highfixed in 0.0.0-20260526080459-dd1b4287899e | High | 0.0.0-20260526080459-dd1b4287899e |
| Aug 11 | SeaweedFS: Unauthenticated SSRF with response read-back via VolumeServer.FetchAndWriteNeedle CVE-2026-73080Critical9.3fixed in 0.0.0-20260512171120-69da20bdaec9 | Critical9.3 | 0.0.0-20260512171120-69da20bdaec9 |
| May 162025 | SeaweedFS Vulnerable to SQL Injection CVE-2024-40120Medium6.5fixed in 0.0.0-20240625155419-9ac102336200 | Medium6.5 | 0.0.0-20240625155419-9ac102336200 |