Rewterz Threat Advisory – CVE-2019-6111 – OpenSSH Arbitrary File Overwrite Vulnerability

Thursday, February 7, 2019





Analysis Summary

The vulnerability lies in the design of Secure Copy Protocol (SCP) tools and can be exploited by malicious servers to unexpectedly alter victims’ files on their client machines, in the context of the user running the affected application.

Exploitation of this vulnerability by a malicious SCP Server isn’t limited to alteration of the files which you fetched, but also expands to changing of access permissions, or downloading of extra documents. The SCP client fails to thoroughly check whether it’s getting the expected objects or not, which can be exploited by attackers to overwrite the user’s .bash_aliases file. This, in turn, would allow the attacker to run arbitrary commands on the victim’s device when they do routine stuff, like list a directory.

However, the scp client only performs cursory validation of the object name returned (only directory traversal attacks are prevented), while the server chooses which files/directories are sent to the client. If recursive operation (-r) is performed, the server can manipulate subdirectories as well (for example, to overwrite the .ssh/authorized_keys file).

OpenSSH 7.9 and prior versions are vulnerable. This issue affects the scp client shipped with openssh. The SSH protocol or the SSH client is not affected.


Changing of Access Permissions

Unauthorized File Downloads

Affected Products

OpenSSH 7.9 and prior


Find a quick patch by sintonen in the link below: A vendor patch is still not available.

Data Sheets

Corporate Brochure

Our Story



Managed Security

Upcoming Rewterz Trainings/Events

Rewterz News

  • 2, May 2019 Rewterz Threat Advisory – CVE-2019-2725 – WebLogic Server Vulnerability
  • 11, April 2019 Rewterz threat Advisory – Microsoft Internet Explorer Multiple Vulnerabilities
  • 11, April 2019 Rewterz Threat Advisory – Microsoft SharePoint Multiple Products Multiple Script Insertion Vulnerabilities
  • 11, April 2019 Rewterz Threat Advisory – Microsoft Exchange Server OWA Multiple Spoofing Vulnerabilities

Copyright © Rewterz. All rights reserved.