OpenSSH regreSSHion Flaw Enables Potential Root RCE on Vulnerable Linux Systems

Summary
CVE-2024-6387 is a signal-handler race condition in OpenSSH that may enable root-level remote code execution on affected glibc-based Linux systems. Wiz reported 81% of cloud environments had a vulnerable instance; no in-the-wild exploitation was known as of July 1, 2024
Key points
- The unauthenticated flaw affects OpenSSH versions earlier than 4.4p1 and versions from 8.5p1 to before 9.8p1; exploitation is known under specific conditions on 32-bit glibc-based Linux.
- A SIGALRM handler can call non-async-signal-safe functions, potentially causing heap corruption that an attacker could exploit to execute code with sshd's root privileges.
- Wiz Research said widespread opportunistic exploitation appeared unlikely because exploits depend on distribution-specific conditions and may require hours of login attempts; patient attackers could spread attempts over time.
- Wiz data indicated that 81% of cloud environments had at least one OpenSSH instance in the vulnerable version range.
- As of July 1, 2024, no in-the-wild exploitation had been identified; exploitation had been demonstrated in lab conditions on 32-bit Linux/glibc systems, while 64-bit exploitation was unproven.
- Organizations should upgrade affected OpenSSH installations, prioritize internet-exposed systems, and restrict SSH access.
Article Details
- Vulnerability Types
- Signal handler race condition leading to heap corruption and potential remote code execution
- Severity
- Critical
- Affected Versions
- OpenSSH versions earlier than 4.4p1
- OpenSSH versions 8.5p1 to before 9.8p1
- Exploitation Status
- not_reported
- Exploit Availability
- public_poc
- Patch Status
- available
- Workarounds
- Restrict SSH access and do not expose OpenSSH servers to the internet.
CVE
CVE-2006-5051Apple · Mac os x; Apple · Mac os x server; +2 moreanalyzed the root cause and determined it to be a regression of an earlier vulnerability (CVE-2006-5051), meaning that the original vulnerability was accidentally reintroduced due to other code changes. CVE-2024-6387Red Hat · Red Hat Enterprise Linux 9; Red Hat · Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions; +13 moreAn unauthenticated RCE-as-root vulnerability was identified in OpenSSH server (sshd) by researchers from Qualys, assigned CVE-2024-6387 and dubbed regreSSHion.
Vendors
Products
OpenSSHAn unauthenticated RCE-as-root vulnerability was identified in OpenSSH server (sshd) by researchers from Qualys, assigned CVE-2024-6387 and dubbed regreSSHion.WizBased on what is currently known about this vulnerability, Wiz Research estimates that widespread exploitation is unlikely. Our reasoning is that currently known exploitations rely on distribution-specific conditions
