CVE-2020-12062 Path traversal in n/a
A malicious remote user can overwrite arbitrary files in the client's download directory via crafted subdirectories during scp -rp transfers.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-12062?
CVE-2020-12062 is a high-severity path traversal vulnerability in OpenSSH, published on 1 Jun 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-20
Which versions are affected by CVE-2020-12062?
It affects 1 product.
Products include OpenSSH.
How do I fix CVE-2020-12062?
Apply the vendor's patch.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2020-12062 being exploited?
There is no known exploitation of CVE-2020-12062 in the wild and no public exploit code.
Other vulnerabilities in OpenSSH
Sources
Also known as DEBIAN-CVE-2020-12062, GHSA-843q-w84q-c7qg, UBUNTU-CVE-2020-12062.