7.5high
Apache Commons VFS: Possible path traversal issue when using NameScope.DESCENDENT
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.43% (higher than 73% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-9q4x-fr4m-jp86
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
| Product or package | Versions | Reported by |
|---|---|---|
| org.apache.commons:commons-vfs2 | before 2.10.0 | CVE List |
| org.apache.commons:commons-vfs2 (Maven) | before 2.10.0 | GitHub Advisory Database |
| apache commons_vfs | before 2.10.0 | NVD |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Vulnerabilidad de Path Traversal relativo en Apache Commons VFS anterior a la versión 2.10.0. La API FileObject de Commons VFS incluye un método "resolveFile" que utiliza el parámetro "scope". Especificar "NameScope.DESCENDENT" implica que se lanzará una excepción si el archivo resuelto no es descendiente del archivo base. Sin embargo, si la ruta contiene caracteres ".." codificados (por ejemplo, "%2E%2E/bar.txt"), podría devolver objetos de archivo que no son descendientes del archivo base, sin lanzar una excepción. Este problema afecta a Apache Commons VFS anterior a la versión 2.10.0. Se recomienda actualizar a la versión 2.10.0, que soluciona el problema.
References
| https://lists.apache.org/thread/cnzqowyw9r2pl263cylmxhnvh41hyjcb | mailing-list, vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2025/03/23/1 | mailing-list, third-party-advisory, web | |
| https://lists.debian.org/debian-lts-announce/2025/04/msg00006.html | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-27553 | advisory | |
| https://github.com/apache/commons-vfs | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-27553 changed 2025-04-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9q4x-fr4m-jp86 changed 2025-04-03 | CC-BY-4.0 |
| NVD | CVE-2025-27553 changed 2026-06-17 | Public domain |