Relative Path Traversal Affecting org.apache.commons:commons-vfs2 package, versions [,2.10.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Relative Path Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGAPACHECOMMONS-9511703
  • published25 Mar 2025
  • disclosed23 Mar 2025
  • creditArnout Engelen

Introduced: 23 Mar 2025

NewCVE-2025-27553  (opens in a new tab)
CWE-23  (opens in a new tab)

How to fix?

Upgrade org.apache.commons:commons-vfs2 to version 2.10.0 or higher.

Overview

Affected versions of this package are vulnerable to Relative Path Traversal via the resolveFile() method when the scope parameter is set to NameScope.DESCENDENT. An attacker can access files outside of the intended directory by including encoded directory traversal sequences such as %2E%2E in place of ... Files that are not descendents of the base file may be exposed without throwing the expected exception.

CVSS Base Scores

version 4.0
version 3.1