CVE Catalog

CVE-2019-6111

MediumCVSS 5.9
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Very high risk
58.20%

99th percentile - higher than 99% of all known CVEs

Summary

An issue was discovered in OpenSSH 7.9. Because the scp implementation derives from 1983 rcp, the server chooses which files and directories are sent to the client, while the scp client only performs cursory validation of the returned object name (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, and with recursive operation (-r) can manipulate subdirectories, for example to overwrite .ssh/authorized_keys.

Risk Assessment

An attacker can overwrite arbitrary files in the scp client target directory, including SSH authorized keys, potentially leading to account takeover or further escalation. The risk occurs when connecting to untrusted scp servers.

Recommendation

Upgrade OpenSSH to a version containing the fix or use a newer scp client with filename validation. Avoid recursive copies from untrusted servers and consider using SFTP instead of scp.

Other vulnerabilities in OpenSSH

See all
Original NVD description (English source)

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

Vulnerability data from NVD (NIST) · CISA KEV · EPSS