CVEvulnerability

CVE-2019-6111

5.9 MEDIUM Published 2019-01-31 Modified 2026-10-14 Official page ↗
Status
Modified
Published
2019-01-31
Last modified
2026-10-14
Assigner
[email protected]
CVSS 3.1 ([email protected])
5.9 MEDIUM — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
5.9 MEDIUM — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
CVSS 2.0 ([email protected])
5.8 MEDIUM — AV:N/AC:M/Au:N/C:N/I:P/A:P
Weaknesses
CWE-22

Description

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 configurations

• openbsd openssh (<= 7.9) • winscp winscp (<= 5.1.3) • canonical ubuntu linux 14.04 • canonical ubuntu linux 16.04 • canonical ubuntu linux 18.04 • canonical ubuntu linux 18.10 • debian debian linux 8.0 • debian debian linux 9.0 • redhat enterprise linux 7.0 • redhat enterprise linux 8.0 • redhat enterprise linux eus 8.1 • redhat enterprise linux eus 8.2 • redhat enterprise linux eus 8.4 • redhat enterprise linux eus 8.6 • redhat enterprise linux server aus 8.2 • redhat enterprise linux server aus 8.4 • redhat enterprise linux server aus 8.6 • redhat enterprise linux server tus 8.2 • redhat enterprise linux server tus 8.4 • redhat enterprise linux server tus 8.6 • fedoraproject fedora 30 • apache mina sshd 2.2.0 • freebsd freebsd (< 12.0) • freebsd freebsd 12.0 • fujitsu m10-1 firmware (< xcp2361) • fujitsu m10-4 firmware (< xcp2361) • fujitsu m10-4s firmware (< xcp2361) • fujitsu m12-1 firmware (< xcp2361) • fujitsu m12-2 firmware (< xcp2361) • fujitsu m12-2s firmware (< xcp2361) • fujitsu m10-1 firmware (< xcp3070) • fujitsu m10-4 firmware (< xcp3070) • fujitsu m10-4s firmware (< xcp3070) • fujitsu m12-1 firmware (< xcp3070) • fujitsu m12-2 firmware (< xcp3070) • fujitsu m12-2s firmware (< xcp3070) • siemens scalance x204rna firmware (< 3.2.7) • siemens scalance x204rna eec firmware (< 3.2.7)

Related

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References