CVE-2016-5725
Improper Limitation of a Pathname to a Restricted Directory in JCraft JSch
Reported by mitre · Published January 19, 2017
jsch is fixed in 0.1.54 and 0.1.53 (Maven Central)
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 versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| com.jcraft:jsch | Maven Central | 0.1.54, 0.1.53 |
| hadoop-fips-3.3.6 | Chainguard | 3.3.6-r21 |
| jsch | jcraft | 0.1.53 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| chainguard | hadoop-fips-3.3.6 | 0 |
| Maven | com.jcraft:jsch | 0 |
| n/a | n/a | * |
Timeline
- Sep 22, 2016 PoC Published
- Jan 19, 2017 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (2 in total, the first dated here)
- Oct 7, 2026 Coalition ESS Score
- Oct 31, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-5725
vulnetix vdb fixes CVE-2016-5725
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-5725/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 20160921 CVE-2016-5725 - JCraft/JSch Java Secure Channel <= 0.1.53 recursive sftp-get path traversal (client-side, windows) mailing-listx_refsource_FULLDISC
- 93100 vdb-entryx_refsource_BID
- RHSA-2017:3115 vendor-advisoryx_refsource_REDHAT
- 40411 exploitx_refsource_EXPLOIT-DB
- [debian-lts-announce] 20200425 [SECURITY] [DLA 2184-1] jsch security update mailing-listx_refsource_MLIST
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_MISC
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2016-5725 advisory
- https://github.com/advisories/GHSA-q446-82vq-w674 advisory