Rewrite: A new OpenSSH unauthenticated remote code execution (RCE) vulnerability dubbed…
- User
Rewrite: A new OpenSSH unauthenticated remote code execution (RCE) vulnerability dubbed "regreSSHion" gives root privileges on glibc-based Linux systems.
OpenSSH is a suite of networking utilities based on the Secure Shell (SSH) protocol. It is extensively used for secure remote login, remote server management and administration, and file transfers via SCP and SFTP.
The flaw, discovered by researchers at Qualys in May 2024, and assigned the identifier CVE-2024-6387, is due to a signal handler race condition in sshd that allows unauthenticated remote attackers to execute arbitrary code as root.
- Assistant
A newly discovered OpenSSH unauthenticated remote code execution (RCE) vulnerability, named "regreSSHion," grants root privileges on glibc-based Linux systems.
OpenSSH is a suite of networking utilities based on the Secure Shell (SSH) protocol, widely used for secure remote login, server management, administration, and file transfers via SCP and SFTP.
Researchers at Qualys identified the flaw in May 2024, assigning it the identifier CVE-2024-6387. The vulnerability stems from a signal handler race condition in sshd that permits unauthenticated remote attackers to execute arbitrary code with root privileges.
- User
Rewrite: If a client does not authenticate within LoginGraceTime seconds (120 by default), then sshd's SIGALRM handler is called asynchronously and calls various functions that are not async-signal-safe," explains a Debian security bulletin.
"A remote unauthenticated attacker can take advantage of this flaw to execute arbitrary code with root privileges."
Exploitation of regreSSHion can have severe consequences for the targeted servers, potentially leading to complete system takeover.
- Assistant
"If a client fails to authenticate within the LoginGraceTime period (set to 120 seconds by default), sshd's SIGALRM handler is triggered asynchronously and invokes various functions that are not async-signal-safe," according to a Debian security bulletin.
"A remote, unauthenticated attacker can exploit this flaw to execute arbitrary code with root privileges."
Exploiting the regreSSHion vulnerability could have dire consequences for the targeted servers, potentially allowing for complete system takeover.
- User
Rewrite: The regreSSHion flaw impacts OpenSSH servers on Linux from version 8.5p1 up to, but not including 9.8p1.
Versions 4.4p1 up to, but not including 8.5p1 are not vulnerable to CVE-2024-6387 thanks to a patch for CVE-2006-5051, which secured a previously unsafe function.
Versions older than 4.4p1 are vulnerable to regreSSHion unless they are patched for CVE-2006-5051 and CVE-2008-4109.
Qualys also notes that OpenBSD systems are not impacted by this flaw thanks to a secure mechanism introduced back in 2001.
- Assistant
The regreSSHion vulnerability affects OpenSSH servers on Linux from version 8.5p1 up to, but not including, 9.8p1.
Versions 4.4p1 up to, but not including, 8.5p1 are not vulnerable to CVE-2024-6387 due to a patch for CVE-2006-5051, which secured a previously unsafe function.
Versions older than 4.4p1 remain vulnerable to regreSSHion unless they have been patched for both CVE-2006-5051 and CVE-2008-4109.
Qualys also points out that OpenBSD systems are not affected by this flaw, thanks to a secure mechanism that was introduced back in 2001.
- User
Rewrite: To address or mitigate the regreSSHion vulnerability in OpenSSH, the following actions are recommended:
Apply the latest available update for the OpenSSH server (version 9.8p1), which fixes the vulnerability. Restrict SSH access using network-based controls such as firewalls and implement network segmentation to prevent lateral movement. If the OpenSSH server cannot be updated immediately, set the 'LoginGraceTime' to 0 in the sshd configuration file, but note that this can expose the server to denial-of-service attacks.
- Assistant
To address or mitigate the regreSSHion vulnerability in OpenSSH, the following actions are recommended:
- Apply the Latest Update: Upgrade the OpenSSH server to the latest available version (9.8p1), which includes a fix for the vulnerability.
- Implement Network Controls: Restrict SSH access using network-based controls such as firewalls, and employ network segmentation to limit lateral movement within the network.
- Adjust Configuration Temporarily: If an immediate update is not possible, set 'LoginGraceTime' to 0 in the sshd configuration file to mitigate the risk. However, be aware that this could expose the server to denial-of-service attacks.
- User
Rewrite: A remote unauthenticated attacker can take advantage of this flaw to execute arbitrary code with root privileges."
Exploitation of regreSSHion can have severe consequences for the targeted servers, potentially leading to complete system takeover.
- Assistant
"A remote, unauthenticated attacker can exploit this flaw to execute arbitrary code with root privileges."
Exploiting the regreSSHion vulnerability can have severe consequences for the targeted servers, potentially resulting in a complete system takeover.
- User
Rewrite: This vulnerability, if exploited, could lead to full system compromise where an attacker can execute arbitrary code with the highest privileges, resulting in a complete system takeover, installation of malware, data manipulation, and the creation of backdoors for persistent access. It could facilitate network propagation, allowing attackers to use a compromised system as a foothold to traverse and exploit other vulnerable systems within the organization
- Assistant
If exploited, this vulnerability could result in a full system compromise, enabling an attacker to execute arbitrary code with the highest privileges. This could lead to complete system takeover, malware installation, data manipulation, and the creation of backdoors for persistent access. Additionally, it could facilitate network propagation, allowing attackers to use the compromised system as a foothold to traverse and exploit other vulnerable systems within the organization.