{"answers":{"affected":"2 open source packages ship an affected version, including com.jcraft:jsch. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2016-5725 exists.","fix":"Upgrade com.jcraft:jsch to 0.1.54 or later.","what":"CVE-2016-5725 is a medium-severity path traversal vulnerability in n/a, published on 19 Jan 2017. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2016-5725 and fix it if it is affected.\n\nWhat it is: CVE-2016-5725 is a medium-severity path traversal vulnerability in n/a, published on 19 Jan 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2016-5725 exists.\n\nAffected packages and fixed versions:\n- com.jcraft:jsch (Maven): affected all versions; fixed in 0.1.54\n- com.jcraft:jsch (Maven): affected all versions; fixed in 0.1.54\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-2016-5725/ (Markdown: https://insights.sbomify.com/CVE-2016-5725/index.md)","id":"CVE-2016-5725","markdown":"https://insights.sbomify.com/CVE-2016-5725/index.md","name":"CVE-2016-5725","record":{"aliases":["DEBIAN-CVE-2016-5725","DLA-2184-1","DLA-611-1","GHSA-q446-82vq-w674","MGASA-2016-0311","SUSE-SU-2017:0715-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Java SFTP library","requires_auth":"none","summary":"A malicious SFTP server can write arbitrary files on Windows clients using JSch in overwrite mode via directory traversal in recursive GET responses.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"jsch","vendor":"jcraft"}],"cvss":{"score":5.9,"severity":"medium","source":"nvd","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Directory traversal vulnerability in JCraft JSch before 0.1.54 on Windows, when the mode is ChannelSftp.OVERWRITE, allows remote SFTP servers to write to arbitrary files via a ..\\ (dot dot backslash) in a response to a recursive GET command.","ecosystems":["Maven","SUSE:Manager Server 3.0"],"exploits":{"exploitdb":1,"first_seen":"2016-09-22","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2016-09-22","kind":"exploitdb","ref":"40411","stars":null,"title":"JCraft/JSch Java Secure Channel 0.1.53 - Recursive sftp-get Directory Traversal"}],"tier":"weaponised"},"has_fix":true,"headline":"Improper Limitation of a Pathname to a Restricted Directory in JCraft JSch","id":"CVE-2016-5725","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":null,"products":[],"type":"path_traversal","year":"2016"},"n_packages":3,"n_references":11,"next":{"headline":"Code injection in n/a","id":"CVE-2016-5726"},"packages":[{"ecosystem":"Maven","fixed":["0.1.54"],"introduced":["0"],"last_affected":[],"package":"com.jcraft:jsch","purl":null,"source":"GHSA-q446-82vq-w674"},{"ecosystem":"Maven","fixed":["0.1.54"],"introduced":["0"],"last_affected":[],"package":"com.jcraft:jsch","purl":"pkg:maven/com.jcraft/jsch","source":"GHSA-q446-82vq-w674"},{"ecosystem":"SUSE:Manager Server 3.0","fixed":["0.1.54-3.1"],"introduced":["0"],"last_affected":[],"package":"jsch","purl":"pkg:rpm/suse/jsch\u0026distro=SUSE%20Manager%20Server%203.0","source":"SUSE-SU-2017:0715-1"}],"prev":{"headline":"Information disclosure in n/a","id":"CVE-2016-5724"},"products":["n/a"],"published":"2017-01-19","related":[],"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":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"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)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-06","vendors":["n/a"]},"summary":"A malicious SFTP server can write arbitrary files on Windows clients using JSch in overwrite mode via directory traversal in recursive GET responses.","url":"https://insights.sbomify.com/CVE-2016-5725/"}