{"id":"GHSA-q446-82vq-w674","summary":"Improper Limitation of a Pathname to a Restricted Directory in JCraft JSch","details":"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.","aliases":["CVE-2016-5725"],"modified":"2026-07-17T21:14:34.338459983Z","published":"2022-05-13T01:09:33Z","database_specific":{"cwe_ids":["CWE-22"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2022-07-06T19:44:21Z","nvd_published_at":"2017-01-19T22:59:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-5725"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2017:3115"},{"type":"WEB","url":"https://github.com/tintinweb/pub/tree/master/pocs/cve-2016-5725"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2020/04/msg00017.html"},{"type":"WEB","url":"https://www.exploit-db.com/exploits/40411"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpuApr2021.html"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpujan2021.html"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpuoct2020.html"},{"type":"WEB","url":"http://packetstormsecurity.com/files/138809/jsch-0.1.53-Path-Traversal.html"},{"type":"WEB","url":"http://seclists.org/fulldisclosure/2016/Sep/53"},{"type":"WEB","url":"http://www.jcraft.com/jsch/ChangeLog"}],"affected":[{"package":{"name":"com.jcraft:jsch","ecosystem":"Maven","purl":"pkg:maven/com.jcraft/jsch"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.1.54"}]}],"versions":["0.1.23","0.1.24","0.1.25","0.1.27","0.1.29","0.1.31","0.1.38","0.1.41","0.1.42","0.1.43","0.1.43-1","0.1.44","0.1.44-1","0.1.45","0.1.46","0.1.47","0.1.48","0.1.49","0.1.50","0.1.51","0.1.52","0.1.53"],"database_specific":{"last_known_affected_version_range":"\u003c= 0.1.53","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-q446-82vq-w674/GHSA-q446-82vq-w674.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}