CVE-2025-27553
Apache Commons VFS: Possible path traversal issue when using NameScope.DESCENDENT
Reported by apache · Published March 23, 2025
commons-vfs2 is fixed in 2.10.0 (Maven Central)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| org.apache.commons:commons-vfs2 | Maven Central | 2.10.0 |
| apache-commons-vfs-ant | Amazon Linux | 2.0-11.amzn2.0.2 |
| apache-commons-vfs-javadoc | Amazon Linux | 2.0-11.amzn2.0.2 |
| apache-commons-vfs | Amazon Linux | 2.0-11.amzn2.0.2 |
| apache-commons-vfs-examples | Amazon Linux | 2.0-11.amzn2.0.2 |
| commons_vfs | apache | 2.10.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Commons VFS | 0 |
| Maven | org.apache.commons:commons-vfs2 | 0 |
| amazon:2 | apache-commons-vfs-ant | 0 |
| amazon:2 | apache-commons-vfs-javadoc | 0 |
| amazon:2 | apache-commons-vfs | 0 |
| Apache Software Foundation | Apache Commons VFS | 0 |
| amazon:2 | apache-commons-vfs-examples | 0 |
Timeline
- Mar 23, 2025 CVE Published
- Mar 24, 2025 EPSS Score (30 in total, the first dated here)
- Mar 24, 2025 Coalition ESS Score (29 in total, the first dated here)
- Mar 17, 2026 Security Advisory (7 in total, the first dated here)
- Nov 2, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-27553
vulnetix vdb fixes CVE-2025-27553
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-27553/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart