Path Traversal in Apache Mina Sshd

CVE-2019-6111

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 class: Path Traversal (Directory Traversal)

EPSS: 0.582 (99.0th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2019-6111?
CVE-2019-6111 is a medium-severity vulnerability in Apache Mina Sshd, classified under Path Traversal. CVSS score: 5.9/10. Published 2019-01-31.
How severe is CVE-2019-6111?
Medium severity. CVSS v3 base score is 5.9 out of 10.
Is CVE-2019-6111 known to be exploited?
41 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.