Vulnerability · Published Mar 23, 2025 · Assigned by apache

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

Medium 5.0

In plain English

A medium-severity information exposure in Apache Commons VFS from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.0Medium
Exploit odds (30 days)0.9%top 40.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12commons-vfs2.0-1DEBIAN-CVE-2025-30474
Debian:13commons-vfs2.0-1DEBIAN-CVE-2025-30474
Debian:14commons-vfs2.0-1DEBIAN-CVE-2025-30474
Mavenorg.apache.commons:commons-vfs22.10.0GHSA-3936-3gx6-49c4
Ubuntu:22.04:LTScommons-vfsno fix listedUBUNTU-CVE-2025-30474
Ubuntu:24.04:LTScommons-vfsno fix listedUBUNTU-CVE-2025-30474
Ubuntu:25.10commons-vfsno fix listedUBUNTU-CVE-2025-30474
Ubuntu:26.04:LTScommons-vfsno fix listedUBUNTU-CVE-2025-30474
Ubuntu:26.10commons-vfsno fix listedUBUNTU-CVE-2025-30474

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache Commons VFS 0 – before 2.10.0

Weakness: CWE-200 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L

References