HIGH 7.5

CVE-2025-27553

Apache Commons VFS Has Relative Path Traversal Vulnerability

Description

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.commons » commons-vfs2
< 2.10.0
2.10.0

Blast radius

1affected artifacts
41affected versions
18,299dependent artifacts (est.)
661,541dependent versions

94% of the dependent artifacts (17,261) still pull an affected version in their latest release.

DepthDependent versions
Direct
30,047
2 hops
91,819
3 hops
449,086
4 hops
38,038
5 hops
25,299
6 hops
27,252

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References

Advisorynvd.nist.gov
Packagegithub.com
Weblists.apache.org
Weblists.debian.org
Webopenwall.com