OpenSSH regreSSHion Flaw Enables Potential Root RCE on Vulnerable Linux Systems

· Original article ↗

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

Vendors

Products

Related Articles