CVE-2016-5725
Improper Limitation of a Pathname to a Restricted Directory in JCraft JSch
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.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| com.jcraft » jsch | < 0.1.54 | 0.1.54 |
Blast radius
61% of the dependent artifacts (8,830) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 17,772 |
| 2 hops | 159,370 |
| 3 hops | 207,624 |
| 4 hops | 177,296 |
| 5 hops | 99,569 |
| 6 hops | 55,049 |
Most used dependents
- org.apache.maven.plugins » maven-compiler-plugin126,333 usages
- org.apache.maven.plugins » maven-source-plugin87,037 usages
- org.apache.maven.plugins » maven-javadoc-plugin84,916 usages
- org.apache.maven.plugins » maven-surefire-plugin67,265 usages
- org.apache.maven.plugins » maven-jar-plugin59,787 usages
- org.apache.maven.plugins » maven-gpg-plugin50,913 usages
- org.apache.felix » maven-bundle-plugin31,882 usages
- org.apache.maven.plugins » maven-release-plugin29,114 usages
- org.apache.maven.plugins » maven-assembly-plugin28,314 usages
- org.apache.maven.plugins » maven-dependency-plugin26,231 usages
- org.apache.maven.plugins » maven-resources-plugin22,649 usages
- org.codehaus.mojo » build-helper-maven-plugin22,347 usages
- org.apache.maven.plugins » maven-enforcer-plugin16,359 usages
- org.apache.maven.plugins » maven-deploy-plugin16,277 usages
- org.apache.maven.plugins » maven-checkstyle-plugin11,720 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2016-5725
- Webhttps://access.redhat.com/errata/RHSA-2017:3115
- Webhttps://github.com/tintinweb/pub/tree/master/pocs/cve-2016-5725
- Webhttps://lists.debian.org/debian-lts-announce/2020/04/msg00017.html
- Webhttps://www.exploit-db.com/exploits/40411
- Webhttps://www.oracle.com/security-alerts/cpuApr2021.html
- Webhttps://www.oracle.com/security-alerts/cpujan2021.html
- Webhttps://www.oracle.com/security-alerts/cpuoct2020.html
- Webhttp://packetstormsecurity.com/files/138809/jsch-0.1.53-Path-Traversal.html
- Webhttp://seclists.org/fulldisclosure/2016/Sep/53
- Webhttp://www.jcraft.com/jsch/ChangeLog
