Skip to content
OpenAdvisories
High · 7.5 CVE-2025-27553 EUVD-2025-7319GHSA-9q4x-fr4m-jp86

Apache Commons VFS: Possible path traversal issue when using NameScope.DESCENDENT

Published Mar 23, 2025 · Updated Apr 2, 2025 · Assigned by apache

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 products

VendorProductAffectedFixed
Apache Software Foundation Apache Commons VFS < 2.10.0 2.10.0

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 commons-vfs 2.1-5 —
Debian 13 commons-vfs 2.1-5 —
Debian 12 commons-vfs 2.1-4+deb12u1 —
Debian 11 commons-vfs 2.1-2+deb11u1 DLA-4111-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 commons-vfs No fix yet —
Ubuntu 26.04 LTS commons-vfs No fix yet —
Ubuntu 25.10 commons-vfs No fix yet —
Ubuntu 24.04 LTS commons-vfs No fix yet —
Ubuntu 22.04 LTS commons-vfs No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS commons-vfs No fix yet —
Ubuntu 18.04 LTS commons-vfs No fix yet —
Ubuntu 16.04 LTS commons-vfs No fix yet —
ReleasePackageFixed inAdvisory
RHEL 7 ELS apache-commons-vfs +3 2.0-11.el7_9.1 RHSA-2025:10548
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed apache-commons-vfs2 2.10.0-1.1 openSUSE-SU-2025:14929-1
openSUSE Leap 15.6 apache-commons-vfs2 2.10.0-150200.3.3.1 SUSE-SU-2025:1022-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 apache-commons-vfs +3 2.0-11.amzn2.0.2 ALAS2-2025-2842

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 7 apache-commons-vfs +3 2.0-11.0.1.el7 ELSA-2025-10548

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.commons:commons-vfs2 < 2.10.0 2.10.0 GHSA-9q4x-fr4m-jp86

Advisories 15

References