Apache Commons VFS: Possible path traversal issue when using NameScope.DESCENDENT
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-23 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Commons VFS | before 2.10.0 | 2.10.0 | Patch available | CNA |
| — | org.apache.commons:commons-vfs2 (Maven) | before 2.10.0 | 2.10.0 | Patch available | GHSA-9q4x-fr4m-jp86 |
- Apache Commons VFS VendorApache Affected before 2.10.0 Fixed in 2.10.0 Patch available CNA
- org.apache.commons:commons-vfs2 (Maven) Vendor— Affected before 2.10.0 Fixed in 2.10.0 Patch available GHSA-9q4x-fr4m-jp86
Remediation
- Fix · CNA Apache Commons VFS (Apache Software Foundation) Fixed in 2.10.0
- Fix · GHSA-9q4x-fr4m-jp86 org.apache.commons:commons-vfs2 (Maven) Fixed in 2.10.0 Advisory →
Red Hat 1 advisory
- RHSA-2025:10548 Released 2025-07-08 · Red Hat rating Moderateapache-commons-vfs security update
- Red Hat Enterprise Linux Server Optional (v. 7 ELS) apache-commons-vfs-2.0-11.el7_9.1, apache-commons-vfs-ant-2.0-11.el7_9.1, apache-commons-vfs-examples-2.0-11.el7_9.1 +1
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Apache Commons VFS 2.10.0
2 records Highest priority Priority MEDIUM 1 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2025-21774 Apache Commons VFS: Failing to find an FTP file can reveal the URI's password in an error messagePriority LOW 25
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux Server Optional (v. 7 ELS) | Fixed | RHSA-2025:10548 |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-27553
- 2026-10-03 Alias added: GHSA-9q4x-fr4m-jp86
References
More Apache Commons Vfs vulnerabilities
- TI-2025-21774 Apache Commons VFS: Failing to find an FTP file can reveal the URI's password in an error message CVSS 3.1MEDIUM 5.0
Sources
- CVE-2025-27553 · CVE Program
- CVE-2025-27553 · NVD
- FIRST EPSS
- GHSA-9q4x-fr4m-jp86 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-27553 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences