MEDIUM5.9
GHSA-q446-82vq-w674
Improper Limitation of a Pathname to a Restricted Directory in JCraft JSch
Quick fix
GHSA-q446-82vq-w674 — com.jcraft:jsch: upgrade to the fixed version with the command below.
# pom.xml: bump <version>0.1.54</version> for com.jcraft:jschDetails
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Maven/com.jcraft:jsch
Introduced in:
0Fixed in: 0.1.54Fix
# pom.xml: bump <version>0.1.54</version> for com.jcraft:jschReferences
- https://nvd.nist.gov/vuln/detail/CVE-2016-5725[ADVISORY]
- https://access.redhat.com/errata/RHSA-2017:3115[WEB]
- https://github.com/tintinweb/pub/tree/master/pocs/cve-2016-5725[WEB]
- https://lists.debian.org/debian-lts-announce/2020/04/msg00017.html[WEB]
- https://www.exploit-db.com/exploits/40411[WEB]
- https://www.oracle.com/security-alerts/cpuApr2021.html[WEB]
- https://www.oracle.com/security-alerts/cpujan2021.html[WEB]
- https://www.oracle.com/security-alerts/cpuoct2020.html[WEB]
- http://packetstormsecurity.com/files/138809/jsch-0.1.53-Path-Traversal.html[WEB]
- http://seclists.org/fulldisclosure/2016/Sep/53[WEB]
- http://www.jcraft.com/jsch/ChangeLog[WEB]