CVE-2016-5725 json
Improper Limitation of a Pathname to a Restricted Directory in JCraft JSch
published 2017-01-19 9 y ago modified 2026-09-10 1 mo ago also GHSA-q446-82vq-w674 , EUVD-2022-4872
- cvss
- 5.9
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 24.1%
- EPSS 24.1% chance of exploitation in 30 days, percentile 97%
- public exploits
- 1
- Exploit-DB
Summary
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.
Patch / fix
- maven com.jcraft:jsch 0.1.54
- jsch Debian 14, Debian 13, Debian 12 0.1.54-1
debian advisories DEBIAN-CVE-2016-5725
- jsch Manager Server 3.0 0.1.54-3.1
suse advisories SUSE-SU-2017:0715-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2016-5725 updated cvss 4.2
jsch: ChannelSftp path traversal vulnerability
-
Red Hat BPM Suite 6 jsch Red Hat JBoss A-MQ 6 jsch Red Hat JBoss BRMS 6 jsch Red Hat JBoss Data Virtualization 6 jsch Red Hat JBoss Fuse 6 jsch Red Hat JBoss Fuse Service Works 6 jschaffected: no fix planned “Will not fix”
-
Red Hat OpenShift Enterprise 2 jsch Red Hat Satellite 6 jsch Red Hat Virtualization 4 jsch, jsch-demo, jsch-javadocaffected: no fix available
-
Red Hat JBoss A-MQ 6.3 Red Hat JBoss Fuse 6.3fixed: vendor fix RHSA-2017:3115
-
Red Hat Enterprise Linux 5 jsch Red Hat Enterprise Linux 6 jsch, jsch-demo, jsch-javadoc Red Hat Enterprise Linux 7 jsch, jsch-demo, jsch-javadoc Red Hat JBoss Operations Network 3 jsch jsch Red Hat Software Collections rh-java-common-jsch, rh-java-common-jsch-demo, rh-java-common-jsch-javadocnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- First public exploit (EDB-40411)
- Published
Exploit prediction
24.14% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-40411 JCraft/JSch Java Secure Channel 0.1.53 - Recursive sftp-get Directory Traversal dos, 2016-09-22
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | com.jcraft:jsch | <0.1.54 |
0.1.54 |
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
exploit-db.com
/exploits/40411/
exploit, third-party-advisory, vdb-entry
-
access.redhat.com
/errata/RHSA-2017:3115
vendor-advisory, web
-
seclists.org
/fulldisclosure/2016/Sep/53
mailing-list, web, third-party-advisory
-
securityfocus.com
/bid/93100
vdb-entry, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2020/04/msg00017.html
mailing-list, web
-
oracle.com
/security-alerts/cpuoct2020.html
web
-
packetstormsecurity.com
/files/138809/jsch-0.1.53-Path-Traversal.html
web, third-party-advisory, vdb-entry
-
github.com
/tintinweb/pub/tree/master/pocs/cve-2016-5725
web, third-party-advisory
-
jcraft.com
/jsch/ChangeLog
web, release-notes
-
oracle.com
/security-alerts/cpujan2021.html
web
-
oracle.com
/security-alerts/cpuApr2021.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2016-5725
advisory
-
exploit-db.com
/exploits/40411
web
Sources
- CVE List CVE-2016-5725
- GitHub Advisory GHSA-q446-82vq-w674
- NVD CVE-2016-5725
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.