CVE-2025-24961: S3proxy Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-2ccp-vqmv-4r4x
CWE-22
Published
Advisory Summary

CVE-2025-24961 is a MODERATE path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting S3proxy libraries in the Maven ecosystem. The issue involves s3proxy allows insecure path traversal in filesystem and filesystem-nio2 storage backends. Remediation is available by upgrading affected packages to version 2.6.0.

CVE-2025-24961 at a Glance

CVE Identifier CVE-2025-24961
GHSA Identifier GHSA-2ccp-vqmv-4r4x
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product S3proxy
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-24961

To remediate this vulnerability, upgrade all affected S3proxy dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.gaul:s3proxy fixed: 2.6.0
<dependency>
    <groupId>org.gaul</groupId>
    <artifactId>s3proxy</artifactId>
    <version>2.6.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.gaul

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-24961, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.gaul

Analyze the terminal output to locate any version of S3proxy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.6.0), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.gaul command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In S3proxy, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact Users of the filesystem and filesystem-nio2 storage backends could unintentionally expose local files to authenticated clients. ### Patches Upgrade to S3Proxy 2.6.0 which includes apache/jclouds@b0819e0ef5e08c792a4d1724b938714ce9503aa3 and 86b6ee4749aa163a78e7898efc063617ed171980. ### Workarounds None ### References Privately reported by XBOW Team @xbow-security.

CVE-2025-24961 Affected S3proxy Versions

1 component(s)
Fixed Versions:
2.6.0
Product / Package Ecosystem Affected Versions Fixed Version
org.gaul:s3proxy
Maven
< 2.6.0
2.6.0

References

Frequently Asked Questions

What is CVE-2025-24961?
CVE-2025-24961 is a security vulnerability in S3proxy involving S3Proxy allows insecure path traversal in filesystem and filesystem-nio2 storage backends under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which S3proxy versions are affected?
Affected versions include releases prior to 2.6.0 across affected packages: org.gaul:s3proxy.
What version fixes CVE-2025-24961?
Upgrading to 2.6.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is s3proxy affected?
Yes, org.gaul:s3proxy is affected in releases prior to 2.6.0. Upgrade your dependency to 2.6.0 or later.
What CWE is associated with CVE-2025-24961?
CVE-2025-24961 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Maven dependencies for CVE-2025-24961?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.gaul'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2ccp-vqmv-4r4x",
  "modified" : "2025-02-04T17:17:49Z",
  "published" : "2025-02-03T17:56:03Z",
  "aliases" : [ "CVE-2025-24961" ],
  "summary" : "S3Proxy allows insecure path traversal in filesystem and filesystem-nio2 storage backends",
  "details" : "### Impact\nUsers of the filesystem and filesystem-nio2 storage backends could unintentionally expose local files to authenticated clients.\n\n### Patches\nUpgrade to S3Proxy 2.6.0 which includes apache/jclouds@b0819e0ef5e08c792a4d1724b938714ce9503aa3 and 86b6ee4749aa163a78e7898efc063617ed171980.\n\n### Workarounds\nNone\n\n### References\nPrivately reported by XBOW Team @xbow-security.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.gaul:s3proxy"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.6.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/gaul/s3proxy/security/advisories/GHSA-2ccp-vqmv-4r4x"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-24961"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/apache/jclouds/commit/b0819e0ef5e08c792a4d1724b938714ce9503aa3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/gaul/s3proxy/commit/86b6ee4749aa163a78e7898efc063617ed171980"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/gaul/s3proxy"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-02-03T17:56:03Z",
    "nvd_published_at" : "2025-02-03T21:15:16Z"
  }
}