Skip to content
OpenAdvisories
Medium · 5.0 CVE-2025-30474 EUVD-2025-7320GHSA-3936-3gx6-49c4

Apache Commons VFS: Failing to find an FTP file can reveal the URI's password in an error message

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

Description

Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Commons VFS.

The FtpFileObject class can throw an exception when a file is not found, revealing the original URI in its message, which may include a password. The fix is to mask the password in the exception message
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.0-1 —
Debian 13 commons-vfs 2.0-1 —
Debian 12 commons-vfs 2.0-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
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.1 ALAS2-2025-2819

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.commons:commons-vfs2 < 2.10.0 2.10.0 GHSA-3936-3gx6-49c4

Advisories 4

References