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).
What to do
Likely to be exploited: EPSS gives a 58% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | openssh | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | openssh-ssh1 | Will not fix openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support… | UBUNTU-CVE-2019-6111 | |
| Ubuntu 22.04 | openssh | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | openssh-ssh1 | Will not fix openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support… | UBUNTU-CVE-2019-6111 | |
| Ubuntu 20.04 | openssh-ssh1 | Will not fix openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support… | UBUNTU-CVE-2019-6111 | |
| Ubuntu 18.04 | openssh | Fixed | 1:7.6p1-4ubuntu0.3 | UBUNTU-CVE-2019-6111 |
| Ubuntu 18.04 | openssh-ssh1 | Will not fix openssh-ssh1 is only provided for compatibility with old devices that cannot be upgraded to modern protocols. We will not be providing any security support… | UBUNTU-CVE-2019-6111 | |
| Ubuntu 16.04 | openssh | Fixed | 1:7.2p2-4ubuntu2.8 | UBUNTU-CVE-2019-6111 |
| Ubuntu 14.04 | openssh | Fixed | 1:6.6p1-2ubuntu2.13 | UBUNTU-CVE-2019-6111 |
| Debian 14 | openssh | Fixed | 1:7.9p1-9 | DEBIAN-CVE-2019-6111 |
| Debian 13 | openssh | Fixed | 1:7.9p1-9 | DEBIAN-CVE-2019-6111 |
| Debian 12 | openssh | Fixed | 1:7.9p1-9 | DEBIAN-CVE-2019-6111 |
| Red Hat Enterprise Linux 8 | openssh | Fixed | 0:8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux 8 | openssh-askpass | Fixed | 0:8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux 8 | openssh-cavs | Fixed | 0:8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux 8 | openssh-clients | Fixed | 0:8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux 8 | openssh-keycat | Fixed | 0:8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux 8 | openssh-ldap | Fixed | 0:8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux 8 | openssh-server | Fixed | 0:8.0p1-3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux 8 | pam_ssh_agent_auth | Fixed | 0:0.10.3-7.3.el8 | RHSA-2019:3702 |
| Red Hat Enterprise Linux 7 | openssh | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | openssh-askpass | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | openssh-cavs | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | openssh-clients | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | openssh-keycat | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | openssh-ldap | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | openssh-server | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | openssh-server-sysvinit | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | pam_ssh_agent_auth | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | openssh | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openssh-askpass | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openssh-clients | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openssh-ldap | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | openssh-server | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | pam_ssh_agent_auth | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 5 | openssh | Will not fix Out of support scope | ||
| Rocky Linux 8 | openssh | Fixed | 0:8.0p1-30.el8_10 | RLSA-2019:3702 |
| Alpine Linux 3.24 | dropbear | Fixed | 2025.89-r0 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.24 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.23 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.22 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.21 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.20 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.19 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.18 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.17 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.16 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.15 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.14 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.13 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.12 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.11 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.10 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.9 | openssh | Fixed | 7.9_p1-r3 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.8 | openssh | Fixed | 7.7_p1-r4 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.7 | openssh | Fixed | 7.5_p1-r10 | ALPINE-CVE-2019-6111 |
| Alpine Linux 3.6 | openssh | Fixed | 7.5_p1-r4 | ALPINE-CVE-2019-6111 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://www.debian.org/security/2019/dsa-4387 (vendor-advisory)
- https://usn.ubuntu.com/3885-1/ (vendor-advisory)
- https://usn.ubuntu.com/3885-2/ (vendor-advisory)
- https://security.gentoo.org/glsa/201903-16 (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- http://lists.opensuse.org/opensuse-security-announce/2019-06/msg00058.html (vendor-advisory)
References
- https://www.debian.org/security/2019/dsa-4387
- https://security.netapp.com/advisory/ntap-20190213-0001/
- http://www.securityfocus.com/bid/106741
- https://cvsweb.openbsd.org/src/usr.bin/ssh/scp.c
- https://usn.ubuntu.com/3885-1/
- https://usn.ubuntu.com/3885-2/
- https://bugzilla.redhat.com/show_bug.cgi?id=1677794
- https://sintonen.fi/advisories/scp-client-multiple-vulnerabilities.txt
- https://www.exploit-db.com/exploits/46193/
- https://security.gentoo.org/glsa/201903-16
- https://lists.debian.org/debian-lts-announce/2019/03/msg00030.html
- http://www.openwall.com/lists/oss-security/2019/04/18/1
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W3YVQ2BPTOVDCFDVNC2GGF5P5ISFG37G/
- https://lists.apache.org/thread.html/c45d9bc90700354b58fb7455962873c44229841880dcb64842fa7d23%40%3Cdev.mina.apache.org%3E
- https://lists.apache.org/thread.html/c7301cab36a86825359e1b725fc40304d1df56dc6d107c1fe885148b%40%3Cdev.mina.apache.org%3E
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.