CVEfocus › CVE database › CVE-2020-12062

CVE-2020-12062

CVSS 7.5 HighEPSS 2.2% (higher than 83% of CVEs)Published 2020-06-01Updated 2026-10-14Assigner: mitre

The scp client in OpenSSH 8.2 incorrectly sends duplicate responses to the server upon a utimes system call failure, which allows a malicious unprivileged user on the remote server to overwrite arbitrary files in the client's download directory by creating a crafted subdirectory anywhere on the remote server. The victim must use the command scp -rp to download a file hierarchy containing, anywhere inside, this crafted subdirectory. NOTE: the vendor points out that "this attack can achieve no more than a hostile peer is already able to achieve within the scp protocol" and "utimes does not fail under normal circumstances.

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

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

3Fixed
3Fix pending
3Will not fix
24Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04opensshFix pendingUBUNTU-CVE-2020-12062
Ubuntu 20.04openssh-ssh1Will not fix
openssh-ssh1 is provided for compatibility with old devices that cannot be upgraded to modern protocols. Thus we may not provide security support for this…
UBUNTU-CVE-2020-12062
Ubuntu 18.04opensshFix pendingUBUNTU-CVE-2020-12062
Ubuntu 18.04openssh-ssh1Will not fix
openssh-ssh1 is provided for compatibility with old devices that cannot be upgraded to modern protocols. Thus we may not provide security support for this…
UBUNTU-CVE-2020-12062
Ubuntu 16.04opensshWill not fix
openssh-ssh1 is provided for compatibility with old devices that cannot be upgraded to modern protocols. Thus we may not provide security support for this…
UBUNTU-CVE-2020-12062
Ubuntu 14.04opensshFix pendingUBUNTU-CVE-2020-12062
Debian 14opensshFixed1:8.3p1-1DEBIAN-CVE-2020-12062
Debian 13opensshFixed1:8.3p1-1DEBIAN-CVE-2020-12062
Debian 12opensshFixed1:8.3p1-1DEBIAN-CVE-2020-12062
Red Hat Enterprise Linux 8opensshNot affected
Red Hat Enterprise Linux 8openssh-askpassNot affected
Red Hat Enterprise Linux 8openssh-cavsNot affected
Red Hat Enterprise Linux 8openssh-clientsNot affected
Red Hat Enterprise Linux 8openssh-keycatNot affected
Red Hat Enterprise Linux 8openssh-ldapNot affected
Red Hat Enterprise Linux 8openssh-serverNot affected
Red Hat Enterprise Linux 8pam_ssh_agent_authNot affected
Red Hat Enterprise Linux 7opensshNot affected
Red Hat Enterprise Linux 7openssh-askpassNot affected
Red Hat Enterprise Linux 7openssh-cavsNot affected
Red Hat Enterprise Linux 7openssh-clientsNot affected
Red Hat Enterprise Linux 7openssh-keycatNot affected
Red Hat Enterprise Linux 7openssh-ldapNot affected
Red Hat Enterprise Linux 7openssh-serverNot affected
Red Hat Enterprise Linux 7openssh-server-sysvinitNot affected
Red Hat Enterprise Linux 7pam_ssh_agent_authNot affected
Red Hat Enterprise Linux 6opensshNot affected
Red Hat Enterprise Linux 6openssh-askpassNot affected
Red Hat Enterprise Linux 6openssh-clientsNot affected
Red Hat Enterprise Linux 6openssh-ldapNot affected
Red Hat Enterprise Linux 6openssh-serverNot affected
Red Hat Enterprise Linux 6pam_ssh_agent_authNot affected
Red Hat Enterprise Linux 5opensshNot affected

References

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.