{"id":"UBUNTU-CVE-2020-15778","details":"scp in OpenSSH through 8.3p1 allows command injection in the scp.c toremote function, as demonstrated by backtick characters in the destination argument. NOTE: the vendor reportedly has stated that they intentionally omit validation of \"anomalous argument transfers\" because that could \"stand a great chance of breaking existing workflows.\"","modified":"2026-09-22T22:49:28.295133835Z","published":"2020-07-24T14:15:00Z","upstream":["CVE-2020-15778"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-15778"},{"type":"REPORT","url":"https://github.com/cpandya2909/CVE-2020-15778"},{"type":"REPORT","url":"https://www.openssh.com/security.html"},{"type":"REPORT","url":"https://lwn.net/Articles/835962/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-15778"}],"affected":[{"package":{"name":"openssh","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/openssh?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:6.2p2-6","1:6.2p2-6ubuntu1","1:6.4p1-1","1:6.4p1-2","1:6.5p1-1","1:6.5p1-2","1:6.5p1-3","1:6.5p1-4","1:6.5p1-6","1:6.6p1-1","1:6.6p1-2","1:6.6p1-2ubuntu1","1:6.6p1-2ubuntu2","1:6.6p1-2ubuntu2.2","1:6.6p1-2ubuntu2.3","1:6.6p1-2ubuntu2.4","1:6.6p1-2ubuntu2.6","1:6.6p1-2ubuntu2.7","1:6.6p1-2ubuntu2.8","1:6.6p1-2ubuntu2.10","1:6.6p1-2ubuntu2.11","1:6.6p1-2ubuntu2.12","1:6.6p1-2ubuntu2.13","1:6.6p1-2ubuntu2.13+esm1","1:6.6p1-2ubuntu2.13+esm2","1:6.6p1-2ubuntu2.13+esm3","1:6.6p1-2ubuntu2.13+esm4"],"ecosystem_specific":{"binaries":[{"binary_version":"1:6.6p1-2ubuntu2.13+esm4","binary_name":"openssh-client"},{"binary_name":"openssh-server","binary_version":"1:6.6p1-2ubuntu2.13+esm4"},{"binary_name":"openssh-sftp-server","binary_version":"1:6.6p1-2ubuntu2.13+esm4"},{"binary_name":"ssh","binary_version":"1:6.6p1-2ubuntu2.13+esm4"},{"binary_name":"ssh-askpass-gnome","binary_version":"1:6.6p1-2ubuntu2.13+esm4"},{"binary_name":"ssh-krb5","binary_version":"1:6.6p1-2ubuntu2.13+esm4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-15778.json"}},{"package":{"name":"openssh","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/openssh?arch=source&distro=esm-infra-legacy%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:6.9p1-2","1:6.9p1-3","1:7.1p1-1","1:7.1p1-3","1:7.1p1-4","1:7.1p1-6","1:7.1p2-1","1:7.1p2-2","1:7.2p1-1","1:7.2p2-1","1:7.2p2-2","1:7.2p2-3","1:7.2p2-4","1:7.2p2-4ubuntu1","1:7.2p2-4ubuntu2.1","1:7.2p2-4ubuntu2.2","1:7.2p2-4ubuntu2.4","1:7.2p2-4ubuntu2.5","1:7.2p2-4ubuntu2.6","1:7.2p2-4ubuntu2.7","1:7.2p2-4ubuntu2.8","1:7.2p2-4ubuntu2.10","1:7.2p2-4ubuntu2.10+esm1","1:7.2p2-4ubuntu2.10+esm2","1:7.2p2-4ubuntu2.10+esm3","1:7.2p2-4ubuntu2.10+esm4","1:7.2p2-4ubuntu2.10+esm5","1:7.2p2-4ubuntu2.10+esm6","1:7.2p2-4ubuntu2.10+esm7","1:7.2p2-4ubuntu2.10+esm8","1:7.2p2-4ubuntu2.10+esm9","1:7.2p2-4ubuntu2.10+esm10"],"ecosystem_specific":{"binaries":[{"binary_name":"openssh-client","binary_version":"1:7.2p2-4ubuntu2.10+esm10"},{"binary_name":"openssh-client-ssh1","binary_version":"1:7.2p2-4ubuntu2.10+esm10"},{"binary_name":"openssh-server","binary_version":"1:7.2p2-4ubuntu2.10+esm10"},{"binary_version":"1:7.2p2-4ubuntu2.10+esm10","binary_name":"openssh-sftp-server"},{"binary_version":"1:7.2p2-4ubuntu2.10+esm10","binary_name":"ssh"},{"binary_name":"ssh-askpass-gnome","binary_version":"1:7.2p2-4ubuntu2.10+esm10"},{"binary_name":"ssh-krb5","binary_version":"1:7.2p2-4ubuntu2.10+esm10"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-15778.json"}},{"package":{"name":"openssh","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/openssh?arch=source&distro=esm-infra%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:7.5p1-10","1:7.6p1-4","1:7.6p1-4ubuntu0.1","1:7.6p1-4ubuntu0.2","1:7.6p1-4ubuntu0.3","1:7.6p1-4ubuntu0.5","1:7.6p1-4ubuntu0.6","1:7.6p1-4ubuntu0.7","1:7.6p1-4ubuntu0.7+esm1","1:7.6p1-4ubuntu0.7+esm2","1:7.6p1-4ubuntu0.7+esm3","1:7.6p1-4ubuntu0.7+esm4","1:7.6p1-4ubuntu0.7+esm5","1:7.6p1-4ubuntu0.7+esm6"],"ecosystem_specific":{"binaries":[{"binary_version":"1:7.6p1-4ubuntu0.7+esm6","binary_name":"openssh-client"},{"binary_name":"openssh-server","binary_version":"1:7.6p1-4ubuntu0.7+esm6"},{"binary_name":"openssh-sftp-server","binary_version":"1:7.6p1-4ubuntu0.7+esm6"},{"binary_name":"ssh","binary_version":"1:7.6p1-4ubuntu0.7+esm6"},{"binary_name":"ssh-askpass-gnome","binary_version":"1:7.6p1-4ubuntu0.7+esm6"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-15778.json"}},{"package":{"name":"openssh-ssh1","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/openssh-ssh1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:7.5p1-8","1:7.5p1-9","1:7.5p1-9build1","1:7.5p1-10"],"ecosystem_specific":{"binaries":[{"binary_version":"1:7.5p1-10","binary_name":"openssh-client-ssh1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-15778.json"}},{"package":{"name":"openssh","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/openssh?arch=source&distro=esm-infra%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:8.0p1-6build1","1:8.1p1-1","1:8.1p1-5","1:8.2p1-4","1:8.2p1-4ubuntu0.1","1:8.2p1-4ubuntu0.2","1:8.2p1-4ubuntu0.3","1:8.2p1-4ubuntu0.4","1:8.2p1-4ubuntu0.5","1:8.2p1-4ubuntu0.7","1:8.2p1-4ubuntu0.8","1:8.2p1-4ubuntu0.9","1:8.2p1-4ubuntu0.10","1:8.2p1-4ubuntu0.11","1:8.2p1-4ubuntu0.12","1:8.2p1-4ubuntu0.13","1:8.2p1-4ubuntu0.13+esm1","1:8.2p1-4ubuntu0.13+esm2","1:8.2p1-4ubuntu0.13+esm3"],"ecosystem_specific":{"binaries":[{"binary_version":"1:8.2p1-4ubuntu0.13+esm3","binary_name":"openssh-client"},{"binary_name":"openssh-server","binary_version":"1:8.2p1-4ubuntu0.13+esm3"},{"binary_name":"openssh-sftp-server","binary_version":"1:8.2p1-4ubuntu0.13+esm3"},{"binary_name":"openssh-tests","binary_version":"1:8.2p1-4ubuntu0.13+esm3"},{"binary_name":"ssh","binary_version":"1:8.2p1-4ubuntu0.13+esm3"},{"binary_name":"ssh-askpass-gnome","binary_version":"1:8.2p1-4ubuntu0.13+esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-15778.json"}},{"package":{"name":"openssh-ssh1","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/openssh-ssh1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:7.5p1-11build1"],"ecosystem_specific":{"binaries":[{"binary_name":"openssh-client-ssh1","binary_version":"1:7.5p1-11build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-15778.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"low"}]}