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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | commons-vfs | 2.0-1 | DEBIAN-CVE-2025-30474 |
| Debian:13 | commons-vfs | 2.0-1 | DEBIAN-CVE-2025-30474 |
| Debian:14 | commons-vfs | 2.0-1 | DEBIAN-CVE-2025-30474 |
| Maven | org.apache.commons:commons-vfs2 | 2.10.0 | GHSA-3936-3gx6-49c4 |
| Ubuntu:22.04:LTS | commons-vfs | no fix listed | UBUNTU-CVE-2025-30474 |
| Ubuntu:24.04:LTS | commons-vfs | no fix listed | UBUNTU-CVE-2025-30474 |
| Ubuntu:25.10 | commons-vfs | no fix listed | UBUNTU-CVE-2025-30474 |
| Ubuntu:26.04:LTS | commons-vfs | no fix listed | UBUNTU-CVE-2025-30474 |
| Ubuntu:26.10 | commons-vfs | no fix listed | UBUNTU-CVE-2025-30474 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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