CVE-2016-5725
Improper Limitation of a Pathname to a Restricted Directory in JCraft JSch
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
5.9
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.
- Record
CVE-2016-5725- CVSS 3.0
- 5.9 Medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:P/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2016-5725- Updated
- 2026-11-02
EUVDEUVD-2022-4872 No score
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.
- Record
EUVD-2022-4872- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-q446-82vq-w674
5.9
Improper Limitation of a Pathname to a Restricted Directory in JCraft JSch
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.
- Record
GHSA-q446-82vq-w674- CVSS 3.0
- 5.9 Medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
OSV
5.9
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.
- Record
CVE-2016-5725- CVSS 3.0
- 5.9 Medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2016-5725
5.9
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.
- Record
DEBIAN-CVE-2016-5725- CVSS 3.0
- 5.9 Medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
OSVGHSA-q446-82vq-w674
5.9
Improper Limitation of a Pathname to a Restricted Directory in JCraft JSch
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.
- Record
GHSA-q446-82vq-w674- CVSS 3.0
- 5.9 Medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVMGASA-2016-0311 No score
Updated jsch packages fix security vulnerability
It was discovered that there was a path traversal vulnerability in jsch (CVE-2016-5725).
- Record
MGASA-2016-0311- Updated
- 2026-11-02
OSVSUSE-SU-2017:0715-1 No score
Security update for jsch
This update for jsch to version 0.1.54 fixes the following issues:
Security issues fixed:
- CVE-2016-5725: recursive sftp get client-side windows path traversal (bsc#997542).
Bugfixes:
- sftp-put may send the garbage data in some rare case.
- fixed a deadlock bug in KnownHosts#getHostKey().
- SftpProgressMonitor#init() was not invoked in sftp-put by using the output-stream.
- KnownHosts#setKnownHosts() should accept the non-existing file.
- excluding the user interaction time from the timeout value.
- addressing SFTP slow file transfer speed with Titan FTP.
- updating copyright messages; 2015 -> 2016
- Record
SUSE-SU-2017:0715-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
com.jcraft:jschMaven |
through 0.1.53 | 0.1.54 |
jschDebian:12 |
before 0.1.54-1 | 0.1.54-1 |
jschDebian:13 |
before 0.1.54-1 | 0.1.54-1 |
jschDebian:14 |
before 0.1.54-1 | 0.1.54-1 |
jschDebian:8 |
before 0.1.51-1+deb8u1, plus listed versions 0.1.51-1 |
0.1.51-1+deb8u1 |
jschDebian:7 |
before 0.1.42-2+deb7u1, plus listed versions 0.1.42-2 |
0.1.42-2+deb7u1 |
com.jcraft:jschMaven |
before 0.1.54, plus listed versions 0.1.230.1.240.1.250.1.270.1.29 Show 17 moreShow less0.1.310.1.380.1.410.1.420.1.430.1.43-10.1.440.1.44-10.1.450.1.460.1.470.1.480.1.490.1.500.1.510.1.520.1.53 |
0.1.54 |
jschMageia:5 |
before 0.1.51-4.1.mga5 | 0.1.51-4.1.mga5 |
jschSUSE:Manager Server 3.0 |
before 0.1.54-3.1 | 0.1.54-3.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Exploit-DB | JCraft/JSch Java Secure Channel 0.1.53 - Recursive sftp-get Directory Traversal | 2016-09-22 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, Exploit-DB, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-5725 is a medium vulnerability (CVSS 5.9) in Jcraft Jsch, published September 5, 2016. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 24.1%, the 97th percentile. Fixed in com.jcraft:jsch 0.1.54.
References
seclists.org/fulldisclosure/2016/Sep/53
securityfocus.com/bid/93100
access.redhat.com/errata/RHSA-2017:3115
exploit-db.com/exploits/40411
lists.debian.org/debian-lts-announce/2020/04/msg00017.html
oracle.com/security-alerts/cpuoct2020.html
Show 14 moreShow less
packetstormsecurity.com/files/138809/jsch-0.1.53-Path-Traversal.html
github.com/tintinweb/pub/tree/master/pocs/cve-2016-5725
jcraft.com/jsch/ChangeLog
oracle.com/security-alerts/cpujan2021.html
oracle.com/security-alerts/cpuApr2021.html
nvd.nist.gov/vuln/detail/CVE-2016-5725
github.com/advisories/GHSA-q446-82vq-w674
security-tracker.debian.org/tracker/CVE-2016-5725
advisories.mageia.org/MGASA-2016-0311.html
bugs.mageia.org/show_bug.cgi?id=19296
lwn.net/Alerts/699659
suse.com/support/update/announcement/2017/suse-su-20170715-1
bugzilla.suse.com/997542
suse.com/security/cve/CVE-2016-5725