GHSA-9q4x-fr4m-jp86

Suggest an improvement
Source
https://github.com/advisories/GHSA-9q4x-fr4m-jp86
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-9q4x-fr4m-jp86/GHSA-9q4x-fr4m-jp86.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9q4x-fr4m-jp86
Aliases
Published
2025-03-23T15:30:33Z
Modified
2025-04-03T01:24:03.415749Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
Apache Commons VFS Has Relative Path Traversal Vulnerability
Details

Relative Path Traversal vulnerability in Apache Commons VFS before 2.10.0.

The FileObject API in Commons VFS has a 'resolveFile' method that takes a 'scope' parameter. Specifying 'NameScope.DESCENDENT' promises that "an exception is thrown if the resolved file is not a descendent of the base file". However, when the path contains encoded ".." characters (for example, "%2E%2E/bar.txt"), it might return file objects that are not a descendent of the base file, without throwing an exception. This issue affects Apache Commons VFS: before 2.10.0.

Users are recommended to upgrade to version 2.10.0, which fixes the issue.

Database specific
{
    "nvd_published_at": "2025-03-23T15:15:13Z",
    "cwe_ids": [
        "CWE-23"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2025-03-25T03:21:09Z"
}
References

Affected packages

Maven / org.apache.commons:commons-vfs2

Package

Name
org.apache.commons:commons-vfs2
View open source insights on deps.dev
Purl
pkg:maven/org.apache.commons/commons-vfs2

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.10.0

Affected versions

2.*

2.0
2.1
2.2
2.3
2.4
2.4.1
2.5.0
2.6.0
2.7.0
2.8.0
2.9.0