CVE-2020-12062
NixOS vulnerability analysis and mitigation

Overview

The scp client in OpenSSH 8.2 contains a vulnerability (CVE-2020-12062) where it incorrectly sends duplicate responses to the server upon a utimes system call failure. This vulnerability was discovered in early 2020 and affects the file transfer functionality of OpenSSH (NVD).

Technical details

The vulnerability occurs when receiving files through scp, where the client can become desynchronized if a utimes(2) system call fails. This desynchronization could allow file contents to be interpreted as file metadata, enabling an adversary to craft a file system that transfers different file names and contents compared to the actual file system layout when copied with scp in configurations causing utimes(2) to fail (e.g., under a SELinux policy or syscall sandbox). The vulnerability has been assigned a CVSS v3.1 base score of 7.5 HIGH (NVD, OpenSSH Release).

Impact

The impact of this vulnerability is limited as exploitation requires specific conditions. Successful exploitation is not silent - the output of scp would show transfer errors followed by the actual files received. Additionally, filenames returned from the peer are matched against the user's requested destination, preventing writes outside the user's selected target. The vendor notes that this attack cannot achieve more than what a hostile peer could already accomplish within the scp protocol (OpenSSH Release).

Mitigation and workarounds

The vulnerability was addressed in OpenSSH 8.3, released on May 27, 2020. The fix involves changes to how scp handles utimes failures and response synchronization. Users are recommended to upgrade to OpenSSH 8.3 or later versions (OpenSSH Release).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-32318HIGH8.8
  • NixOSNixOS
  • android
NoNoSep 05, 2025
CVE-2025-32320HIGH7.8
  • NixOSNixOS
  • android
NoNoSep 05, 2025
CVE-2025-32317MEDIUM5.5
  • NixOSNixOS
  • android
NoNoSep 05, 2025
CVE-2025-32316MEDIUM5.5
  • NixOSNixOS
  • android
NoNoSep 05, 2025
CVE-2025-26461LOW3.3
  • NixOSNixOS
  • android
NoNoSep 05, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management