CVE-2019-6111: Path Traversal
An issue was discovered in OpenSSH 7.9. Due to the scp implementation being derived from 1983 rcp, the server chooses which files/directories are sent to the client. However, the scp client only performs cursory validation of the object name returned (only directory traversal attacks are prevented). A malicious scp server (or Man-in-The-Middle attacker) can overwrite arbitrary files in the scp client target directory. If recursive operation (-r) is performed, the server can manipulate subdirectories as well (for example, to overwrite the .ssh/authorized_keys file).
Affected Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2019-6111?
CVE-2019-6111 is a vulnerability in OpenSSH that allows directory traversal attacks during file transfers using scp.
What is the severity of CVE-2019-6111?
CVE-2019-6111 has a severity score of 5.9, which is considered medium.
How does CVE-2019-6111 impact OpenSSH?
CVE-2019-6111 allows an attacker to potentially overwrite or retrieve arbitrary files on the server through scp file transfers.
Which versions of OpenSSH are affected by CVE-2019-6111?
OpenSSH versions 7.9 and prior are affected by CVE-2019-6111.
Is there a fix for CVE-2019-6111?
Yes, updating to OpenSSH version 7.9p1-10+deb10u2 or later will fix the vulnerability.