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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | jsch | 0.1.54-1 | — |
| Debian 13 | jsch | 0.1.54-1 | — |
| Debian 12 | jsch | 0.1.54-1 | — |
| Debian 8 | jsch | 0.1.51-1+deb8u1 | DLA-2184-1 |
| Debian 7 | jsch | 0.1.42-2+deb7u1 | DLA-611-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Manager Server 3.0 | jsch | 0.1.54-3.1 | SUSE-SU-2017:0715-1 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- JCraft/JSch Java Secure Channel 0.1.53 - Recursive sftp-get Directory Traversal EDB-40411 · dos · Sep 22, 2016 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | com.jcraft:jsch | < 0.1.54 | 0.1.54 | GHSA-q446-82vq-w674 |
Advisories 4
- DLA-611-1 jsch - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-2184-1 jsch - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2017:0715-1 Security update for jsch SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2023-0720 Red Hat JBoss: Mehrere Schwachstellen BSI CERT-Bund (WID) · Mar 22, 2023
References
- 20160921 CVE-2016-5725 - JCraft/JSch Java Secure Channel <= 0.1.53 recursive sftp-get path traversal (client-side, windows) mailing-list
- 93100 vdb-entry
- RHSA-2017:3115 vendor-advisory
- 40411 exploit
- [debian-lts-announce] 20200425 [SECURITY] [DLA 2184-1] jsch security update mailing-list
- https://www.oracle.com/security-alerts/cpuoct2020.html
- http://packetstormsecurity.com/files/138809/jsch-0.1.53-Path-Traversal.html
- https://github.com/tintinweb/pub/tree/master/pocs/cve-2016-5725
- http://www.jcraft.com/jsch/ChangeLog
- https://www.oracle.com/security-alerts/cpujan2021.html
- https://www.oracle.com/security-alerts/cpuApr2021.html