HIGH 8.1

CVE-2026-58372: SeaweedFS S3 Path Traversal Cross-Tenant Data Deletion

SeaweedFS, a distributed file system and cloud storage solution, contains a critical authorization bypass flaw in its S3-compatible gateway. An authenticated user with write access to one S3 bucket can exploit a path traversal weakness to delete files in completely different buckets belonging to other tenants. The vulnerability stems from the system validating bucket authorization at the URL level but failing to inspect the contents of deletion request bodies, where attackers can inject directory-traversal sequences (../) to escape the intended bucket boundary and reach objects they should not be able to access.

Source data · NVD / CISA · public domain

CVSS
3.1 · 8.1 HIGH · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Weaknesses (CWE)
CWE-22
Affected products
0 configuration(s)
Published / Modified
2026-06-30 / 2026-07-14

NVD description (verbatim)

SeaweedFS before 4.34 contains a path traversal vulnerability in the S3 gateway DeleteMultipleObjectsHandler that allows authenticated S3 principals with write access to a single bucket to delete arbitrary objects in other tenants' buckets by supplying object keys containing ../ sequences in the DeleteObjects XML request body. Attackers can bypass authorization controls through a confused deputy condition, as the validateRequestPath middleware only inspects URL-captured path variables and never examines request-body keys, allowing the filer path to collapse directory traversal sequences and resolve deletions outside the authorized bucket.

7 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

The vulnerability exists in SeaweedFS versions prior to 4.34 within the DeleteMultipleObjectsHandler component of the S3 gateway. When a client sends a DeleteObjects XML request (the S3 API mechanism for batch deletion), the handler processes object keys from the request body without proper path validation. The validateRequestPath middleware inspects only URL-captured path variables and does not examine request-body content, creating a confused deputy condition. Attackers supply object keys containing ../ sequences, which the filer path resolution layer then collapses, allowing directory traversal outside the authorized bucket scope. This permits deletion of arbitrary objects in other tenants' buckets despite the authorization model restricting the principal to a single bucket.

Business impact

This vulnerability enables cross-tenant data destruction in multi-tenant SeaweedFS deployments, a critical concern for hosted storage platforms and cloud service providers. A malicious or compromised S3 application account can permanently delete other customers' data, violating data integrity guarantees and causing operational damage. Organizations relying on SeaweedFS for managed storage services face reputational harm, potential regulatory penalties (under data protection regulations), and service unavailability. The ease of exploitation—requiring only standard S3 API calls with crafted XML—lowers the barrier to malicious action.

Affected systems

SeaweedFS versions before 4.34 are affected. The vulnerability manifests specifically in deployments exposing the S3 gateway interface and operating in multi-tenant configurations where different principals have restricted bucket access. Systems running SeaweedFS 4.34 and later are not impacted, provided patches are applied from an uncompromised source.

Exploitability

Exploitation requires authentication—the attacker must possess valid S3 credentials with write access to at least one bucket. No network access restrictions are bypassed; the attack occurs over standard HTTPS S3 API calls. The technical bar is low: standard S3 client libraries or curl can construct the necessary DeleteObjects request with directory-traversal sequences in the XML body. The attack is deterministic and reliable; there is no race condition, timing dependency, or user interaction required. The primary control—URL-path validation—provides no defense because it does not inspect request bodies.

Remediation

Upgrade SeaweedFS to version 4.34 or later. The patch addresses the vulnerability by extending request validation to inspect object keys within DeleteObjects request bodies for path traversal sequences before processing deletions. Verify the upgrade path with your SeaweedFS distribution and test in a non-production environment to ensure compatibility with custom configurations or extensions. Organizations unable to upgrade immediately should restrict S3 gateway access via network controls (e.g., firewall rules, VPC restrictions) to trusted internal applications and consider implementing read-only S3 policies where write-access-to-delete patterns are not essential.

Patch guidance

Apply SeaweedFS 4.34 or a later maintenance release. Review vendor advisories for any additional security hardening recommendations accompanying the patch. If your environment uses a patched third-party distribution or fork of SeaweedFS, confirm that the backport includes fixes for both the validateRequestPath middleware and the DeleteMultipleObjectsHandler. Testing should verify that (1) legitimate multi-object deletions within a bucket continue to function, (2) cross-bucket deletion attempts are blocked, and (3) no S3 API compatibility regressions occur for other delete operations.

Detection guidance

Monitor S3 gateway logs for DeleteObjects requests containing unusual key patterns, particularly those with ../ or similar directory-traversal sequences in the request body. Alert on any deletion operations followed by errors indicating authorization failures or unexpected bucket scope changes. In multi-tenant environments, implement centralized logging for all S3 operations and correlate deletion activity across buckets; sudden deletions in buckets outside an application's permitted scope may indicate exploitation. Network-level detection is difficult because the attack uses standard HTTPS S3 API traffic; focus on application-layer logging and audit trails within SeaweedFS itself.

Why prioritize this

This vulnerability scores CVSS 8.1 (HIGH) due to the combination of low attack complexity, low privilege requirements (write access to one bucket), and severe impact (integrity violation and availability loss across tenants). While not as critical as remote unauthenticated code execution, the cross-tenant data destruction capability in multi-tenant deployments makes it a priority for cloud storage operators and service providers. Organizations operating single-tenant SeaweedFS instances may see lower urgency, but multi-tenant platforms should treat this as critical and patch immediately.

Risk score, explained

The CVSS 3.1 score of 8.1 reflects: (1) network-accessible attack vector (AV:N), (2) low attack complexity requiring only standard API calls (AC:L), (3) low privilege requirement—the attacker needs only valid S3 credentials with write access to one bucket (PR:L), (4) no user interaction (UI:N), (5) unchanged scope—the attack does not escalate to other systems (S:U), (6) no confidentiality impact (C:N), and (7) high integrity and availability impact (I:H, A:H) through deletion of arbitrary objects. The score appropriately reflects a serious authorization bypass that does not require privilege escalation or cross-system compromise but does enable significant data destruction within the affected platform.

Frequently asked questions

Can an attacker without any S3 credentials exploit this vulnerability?

No. The vulnerability requires authentication—the attacker must possess valid S3 API credentials with at least write permission to one bucket. Unauthenticated access to the S3 gateway does not permit exploitation.

Does this affect single-tenant SeaweedFS deployments?

The vulnerability is technically exploitable in any deployment, but the impact is most severe in multi-tenant configurations where different customers or applications have isolated bucket access. In single-tenant deployments, the attacker would be deleting their own data, limiting practical harm. However, organizations should still patch to prevent misuse by internal accounts or compromised credentials.

What is the difference between the validateRequestPath middleware and request-body validation, and why does this matter?

The middleware validates the bucket and path extracted from the S3 request URL (e.g., /bucket-name/object-key), confirming the principal has access to that bucket. However, S3's DeleteObjects operation accepts multiple object keys in the request body as XML, not in the URL. The middleware never examines this body content, so attackers can inject keys with ../ sequences that bypass the authorization check and are resolved by the file system layer.

If I upgrade to SeaweedFS 4.34, do I need to rotate my S3 credentials?

Upgrading to 4.34 closes the vulnerability for future attacks but does not determine whether credentials were compromised in the past. Review S3 operation logs for signs of unauthorized deletion activity before and after the patch. If suspicious activity is found, rotate credentials and audit bucket contents for unexpected modifications. If no unauthorized deletions are detected, credential rotation is a best practice but not strictly required by this vulnerability alone.

This analysis is based on publicly available vulnerability data as of the publication date. Readers should verify patch availability and compatibility with their specific SeaweedFS distribution and configuration. No exploit code or weaponized proof-of-concept is provided. Organizations should consult official SeaweedFS project advisories and their vendor support channels for authoritative guidance on patch deployment. SEC.co does not guarantee the completeness or timeliness of this information and recommends independent security assessment for critical production systems. Source: NVD (public-domain), retrieved 2026-08-09. Analysis generated by SEC.co (claude-haiku-4-5).