← Vulnerability feed

Vulnerability record · CVE-2024-6387 · published 1 July 2024

CVE-2024-6387: OpenSSH sshd signal handler race condition allows unauthenticated remote code execution

Sonicwall · Sma 6200 Firmware

A security regression of CVE-2006-5051 in OpenSSH's sshd creates a race condition where signals are handled unsafely. An unauthenticated remote attacker can trigger it by failing to authenticate within a set time period, potentially leading to remote code execution as root. The flaw affects a broad set of Linux and BSD distributions and network appliances that ship OpenSSH.

8.1 CVSS 3.1 High EPSS 100% · top 0.1% CWE-364 · CWE-364CWE-362 · Race condition
8.1CVSS 3.1 base score
100%EPSS exploitation probability, 30 days
NoNot in CISA KEV
53Affected product versions listed by NVD
93References, 11 tagged exploit
1 Sep 2026Last modified by NVD

Description

A security regression (CVE-2006-5051) was discovered in OpenSSH's server (sshd). There is a race condition which can lead sshd to handle some signals in an unsafe manner. An unauthenticated, remote attacker may be able to trigger it by failing to authenticate within a set time period.

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 17 September 2026. Confidence: high.

high priorityCVSS 8.1 with network reachability, no authentication, and high EPSS plus public exploit references make this a high-priority patching target despite the high attack complexity.

What it is

A security regression of CVE-2006-5051 in OpenSSH's sshd creates a race condition where signals are handled unsafely. An unauthenticated remote attacker can trigger it by failing to authenticate within a set time period, potentially leading to remote code execution as root. The flaw affects a broad set of Linux and BSD distributions and network appliances that ship OpenSSH.

Impact

Successful exploitation can give an unauthenticated remote attacker code execution in the context of the sshd process, typically root, on the target host. This can lead to full system compromise, data theft, or use of the host as a pivot point.

Attack surface

Reachable over the network via the SSH service (CVSS AV:N) with no authentication (PR:N) and no user interaction (UI:N). The attacker only needs to connect and fail authentication within the required time window to trigger the race.

Exploitation

Not listed in CISA KEV, but EPSS is extremely high (0.995 probability, 0.999 percentile) and multiple references are tagged Exploit, indicating public exploit activity. No ransomware group usage is documented in the record.

What to do

  • Patch OpenSSH to version 9.8 or later, or apply the vendor-supplied fix for your distribution or appliance.
  • If immediate patching is not possible, set LoginGraceTime to 0 in sshd_config to remove the timing window, accepting the risk of connection exhaustion.
  • Restrict SSH access to trusted networks and management interfaces using firewall rules or network ACLs.
  • Monitor vendor advisories for appliance firmware (SonicWall, Arista, NetApp, Apple, etc.) and update as fixes become available.
  • Consider using SSH key-only authentication and disabling password authentication to reduce exposure, though this does not fully remove the race condition.

Detection

  • Monitor sshd logs for repeated authentication failures or connections that time out without completing authentication, especially in bursts.
  • Look for unusual child process crashes, core dumps, or signal-related errors in sshd logs.
  • Use network monitoring to detect high volumes of SSH connection attempts from single or distributed sources that fail to authenticate.
  • Check for unexpected processes or outbound connections originating from SSH servers that could indicate post-exploitation activity.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

53 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
https://access.redhat.com/errata/RHSA-2024:4312 Third Party Advisory
https://access.redhat.com/errata/RHSA-2024:4340 Third Party Advisory
https://access.redhat.com/errata/RHSA-2024:4389 Third Party Advisory
https://access.redhat.com/errata/RHSA-2024:4469 Third Party Advisory
https://access.redhat.com/errata/RHSA-2024:4474 Third Party Advisory
https://access.redhat.com/errata/RHSA-2024:4479 Third Party Advisory
https://access.redhat.com/errata/RHSA-2024:4484 Third Party Advisory
https://access.redhat.com/security/cve/CVE-2024-6387 Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=2294604 Third Party Advisory
https://santandersecurityresearch.github.io/blog/sshing_the_masses.html ExploitThird Party Advisory
https://www.openssh.com/txt/release-9.8 Release NotesThird Party Advisory
https://www.qualys.com/2024/07/01/cve-2024-6387/regresshion.txt ExploitThird Party Advisory
http://seclists.org/fulldisclosure/2024/Jul/18 Mailing List
http://seclists.org/fulldisclosure/2024/Jul/19 Mailing List
http://seclists.org/fulldisclosure/2024/Jul/20 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/01/12 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/01/13 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/02/1 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/03/1 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/03/11 ExploitMailing List
http://www.openwall.com/lists/oss-security/2024/07/03/2 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/03/3 Mailing ListPatch
http://www.openwall.com/lists/oss-security/2024/07/03/4 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/03/5 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/04/1 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/04/2 ExploitMailing List
http://www.openwall.com/lists/oss-security/2024/07/08/2 ExploitMailing List
http://www.openwall.com/lists/oss-security/2024/07/08/3 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/09/2 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/09/5 ExploitMailing List
http://www.openwall.com/lists/oss-security/2024/07/10/1 ExploitMailing List
http://www.openwall.com/lists/oss-security/2024/07/10/2 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/10/3 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/10/4 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/10/6 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/11/1 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/11/3 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/23/4 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/23/6 Mailing List
http://www.openwall.com/lists/oss-security/2024/07/28/2 Mailing List

Track CVE-2024-6387 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-43300Apple iOS, iPadOS and macOS out-of-bounds write via malicious imageAn out-of-bounds write in Apple iOS, iPadOS and macOS is triggered when processing a malicious image file, causing memory corruption. Apple states th…KEVEPSS 22%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2025-24085Apple iOS, iPadOS, macOS, tvOS, visionOS, watchOS Use-After-Free Privilege EscalationA use-after-free flaw in Apple's operating systems was fixed through improved memory management in iOS 18.3, iPadOS 18.3 and 17.7.6, macOS Sequoia 15…KEVEPSS 18%analysed9.8CVE-2026-65400Apple macOS Screen Sharing authentication bypassAn improper authentication flaw in Apple macOS Screen Sharing allows a network attacker to authenticate without valid credentials. Apple fixed it via…KEVEPSS 1.2%analysed9.8CVE-2025-31200Apple OS media parsing memory corruption allows code executionA memory corruption flaw in Apple's audio stream processing was fixed with improved bounds checking across iOS, iPadOS, macOS, tvOS, visionOS and wat…KEVEPSS 19%analysed9.8CVE-2025-31201Apple OS Pointer Authentication bypass via arbitrary read/writeApple removed vulnerable code that allowed an attacker holding arbitrary read and write capability to bypass Pointer Authentication across iOS, iPadO…KEVEPSS 14%analysed9.8CVE-2022-22587Apple iOS, iPadOS and macOS kernel memory corruption via out-of-bounds writeAn out-of-bounds write (CWE-787) in Apple iOS, iPadOS and macOS is caused by insufficient input validation and can corrupt memory. Apple states it is…KEVEPSS 12%analysed9.8CVE-2021-1870Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions, affecting macOS Big Sur, Catalina, Mojave, iOS and iPadOS, plus WebKitGTK a…KEVEPSS 7.7%analysed

Source: NIST National Vulnerability Database (record CVE-2024-6387), CISA KEV, FIRST EPSS (scores of 2026-09-20). This page is refreshed as NVD updates the record.