What’s Vulnerable › Vulnerabilities
CVE-2025-30474: Apache Commons VFS: Failing to find an FTP file can reveal the URI's password in an error message
- Severity: medium (CVSS 5.0 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-03-23 · updated 2026-06-17
- Weakness: CWE-200
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
- Apache Software Foundation Apache Commons VFS: before 2.10.0 — fixed in 2.10.0
How to fix
Upgrade to a fixed version: Apache Software Foundation Apache Commons VFS 2.10.0. Check the vendor advisory for mitigations.
References
- https://issues.apache.org/jira/browse/VFS-169
- https://lists.apache.org/thread/w6ztgnbk6ccry3470x191g3xwrpgy6f4
- http://www.openwall.com/lists/oss-security/2025/03/23/2
Get alerted when CVE-2025-30474 or the next vulnerability affects your stack