CVE-2019-6111
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).
How to fix
- freebsd freebsd12.0 or later
- fujitsu m10-1_firmwarexcp2361, xcp3070 or later
- fujitsu m10-4_firmwarexcp2361, xcp3070 or later
- fujitsu m10-4s_firmwarexcp2361, xcp3070 or later
- fujitsu m12-1_firmwarexcp2361, xcp3070 or later
- fujitsu m12-2_firmwarexcp2361, xcp3070 or later
- fujitsu m12-2s_firmwarexcp2361, xcp3070 or later
- siemens scalance_x204rna_firmware3.2.7 or later
- siemens scalance_x204rna_eec_firmware3.2.7 or later
- debian.org/security/2019/dsa-4387
- usn.ubuntu.com/3885-1/
- usn.ubuntu.com/3885-2/
- security.gentoo.org/glsa/201903-16
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W3YVQ2BPTOVDCFDVNC2GGF5P5ISFG37G/
- freebsd.org/security/advisories/FreeBSD-EN-19:10.scp.asc
- access.redhat.com/errata/RHSA-2019:3702
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| openbsd openssh | v ≤ 7.9 | — |
| winscp winscp | v ≤ 5.1.3 | — |
| canonical ubuntu_linux | 14.04, 16.04, 18.04, 18.10 | — |
| debian debian_linux | 8.0, 9.0 | — |
| redhat enterprise_linux | 7.0, 8.0 | — |
| redhat enterprise_linux_eus | 8.1, 8.2, 8.4, 8.6 | — |
| redhat enterprise_linux_server_aus | 8.2, 8.4, 8.6 | — |
| redhat enterprise_linux_server_tus | 8.2, 8.4, 8.6 | — |
| fedoraproject fedora | 30 | — |
| apache mina_sshd | 2.2.0 | — |
| freebsd freebsd | v < 12.0, 12.0 | 12.0 |
| fujitsu m10-1_firmware | v < xcp2361, v < xcp3070 | xcp2361, xcp3070 |
| fujitsu m10-4_firmware | v < xcp2361, v < xcp3070 | xcp2361, xcp3070 |
| fujitsu m10-4s_firmware | v < xcp2361, v < xcp3070 | xcp2361, xcp3070 |
| fujitsu m12-1_firmware | v < xcp2361, v < xcp3070 | xcp2361, xcp3070 |
| fujitsu m12-2_firmware | v < xcp2361, v < xcp3070 | xcp2361, xcp3070 |
| fujitsu m12-2s_firmware | v < xcp2361, v < xcp3070 | xcp2361, xcp3070 |
| siemens scalance_x204rna_firmware | v < 3.2.7 | 3.2.7 |
| siemens scalance_x204rna_eec_firmware | v < 3.2.7 | 3.2.7 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.