VDB
Sign up
MEDIUM5.9

GHSA-q446-82vq-w674

Improper Limitation of a Pathname to a Restricted Directory in JCraft JSch

Quick fix

GHSA-q446-82vq-w674 — com.jcraft:jsch: upgrade to the fixed version with the command below.

# pom.xml: bump <version>0.1.54</version> for com.jcraft:jsch

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/com.jcraft:jsch
Introduced in: 0Fixed in: 0.1.54
Fix# pom.xml: bump <version>0.1.54</version> for com.jcraft:jsch

References