Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.commons/commons-vfs2
  4. ›
  5. CVE-2025-27553

CVE-2025-27553: Apache Commons VFS Has Relative Path Traversal Vulnerability

March 23, 2025 (updated April 3, 2025)

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.

References

  • github.com/advisories/GHSA-9q4x-fr4m-jp86
  • github.com/apache/commons-vfs
  • lists.apache.org/thread/cnzqowyw9r2pl263cylmxhnvh41hyjcb
  • lists.debian.org/debian-lts-announce/2025/04/msg00006.html
  • nvd.nist.gov/vuln/detail/CVE-2025-27553

Code Behaviors & Features

Detect and mitigate CVE-2025-27553 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.10.0

Fixed versions

  • 2.10.0

Solution

Upgrade to version 2.10.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-23: Relative Path Traversal

Source file

maven/org.apache.commons/commons-vfs2/CVE-2025-27553.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 13 May 2025 00:14:47 +0000.