
CVE-2024-6387 is a critical vulnerability discovered in OpenSSH's server (sshd) that allows an attacker to potentially achieve unauthenticated remote code execution (RCE) as root. The vulnerability arises from a race condition in the signal handling process within sshd.
This vulnerability was discovered by Qualys, who noted that successful exploitation has been demonstrated on 32-bit Linux/glibc systems with address space layout randomization (ASLR) enabled. Under controlled conditions, the attack required an average of 6-8 hours of continuous connections, up to the maximum allowed by the server. Exploitation on 64-bit systems is believed to be possible but has not yet been demonstrated. There is a possibility that future attack improvements will make it more feasible on these systems.
It is important to note that while Windows typically runs SSH, most desktop versions should not be exposed to the internet in a way that makes them vulnerable. However, server versions accepting incoming requests could be at risk. Microsoft manages SSH updates through regular Windows updates, which currently lag behind the latest OpenSSH versions. For example, Windows systems with all applied updates may be running version OpenSSH_for_Windows_8.1p1.
Vulnerable Versions:
4.4p1 are vulnerable to this race condition unless patched for CVE-2006-5051 and CVE-2008-4109.8.5p1 up to, but not including, 9.8p1 are vulnerable due to the accidental removal of a critical component in a function.Not Vulnerable:
4.4p1 up to, but not including, 8.5p1 are not vulnerable due to a transformative patch for CVE-2006-5051.To protect against CVE-2024-6387, organizations should implement the following mitigations:
Patch Management:
Enhanced Access Control:
Network Segmentation and Intrusion Detection:
For organizations using OpenSSH on Windows, SSH management can be configured using Group Policy Objects (GPOs) as detailed in the Microsoft documentation.
Critical Insight
July 1, 2024