{"answers":{"affected":"2 open source packages ship an affected version, including org.apache.commons:commons-vfs2. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-30474 in the wild and no public exploit code.","fix":"Upgrade org.apache.commons:commons-vfs2 to 2.10.0 or later.","what":"CVE-2025-30474 is a medium-severity vulnerability in Apache Commons VFS, published on 23 Mar 2025."},"fix_prompt":"Check this codebase for CVE-2025-30474 and fix it if it is affected.\n\nWhat it is: CVE-2025-30474 is a medium-severity vulnerability in Apache Commons VFS, published on 23 Mar 2025. \nExploitation: There is no known exploitation of CVE-2025-30474 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.apache.commons:commons-vfs2 (Maven): affected all versions; fixed in 2.10.0\n- org.apache.commons:commons-vfs2 (Maven): affected all versions; fixed in 2.10.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-30474/ (Markdown: https://insights.sbomify.com/CVE-2025-30474/index.md)","id":"CVE-2025-30474","markdown":"https://insights.sbomify.com/CVE-2025-30474/index.md","name":"CVE-2025-30474","record":{"aliases":["DEBIAN-CVE-2025-30474","GHSA-3936-3gx6-49c4","UBUNTU-CVE-2025-30474"],"analysis":null,"analysis_generated_by":null,"assigner":"apache","cpe":[{"product":"commons_vfs","vendor":"apache"}],"cvss":{"score":5,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"Exposure of Sensitive Information to an Unauthorized Actor vulnerability in Apache Commons VFS.\n\nThe 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\nThis issue affects Apache Commons VFS: before 2.10.0.\n\nUsers are recommended to upgrade to version 2.10.0, which fixes the issue.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Apache Commons VFS: Failing to find an FTP file can reveal the URI's password in an error message","id":"CVE-2025-30474","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":null,"year":"2025"},"n_packages":2,"n_references":2,"next":{"headline":"Privilege escalation in PowerScale InsightIQ","id":"CVE-2025-30475"},"packages":[{"ecosystem":"Maven","fixed":["2.10.0"],"introduced":["0"],"last_affected":[],"package":"org.apache.commons:commons-vfs2","purl":null,"source":"GHSA-3936-3gx6-49c4"},{"ecosystem":"Maven","fixed":["2.10.0"],"introduced":["0"],"last_affected":[],"package":"org.apache.commons:commons-vfs2","purl":"pkg:maven/org.apache.commons/commons-vfs2","source":"GHSA-3936-3gx6-49c4"}],"prev":{"headline":"Apache Airflow Common SQL Provider: Remote Code Execution via Sql Injection","id":"CVE-2025-30473"},"products":["Apache Commons VFS"],"published":"2025-03-23","related":[{"cvss_score":7.5,"headline":"Apache Commons VFS: Possible path traversal issue when using NameScope.DESCENDENT","id":"CVE-2025-27553","kev_date_added":null,"published":"2025-03-23"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-01","vendors":["Apache Software Foundation"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2025-30474/"}