CVE-2024-6387Openssh: regresshion - race condition in ssh allows rce/dos
- 8.1HighCVSS base score
- 99.5%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list an Exploit-DB entry for it. CISA's SSVC rates its exploitation: a proof of concept is public.
Show the exploits1
Exploit-DB1 entry
- OpenSSH server (sshd) 9.8p1 - Race Condition (Exploit-DB entry) (opens in a new tab)
EDB-ID 52269remote, linuxpublished 22 Apr 2025Not verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By redhat
- 4 days later
· 4 days later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 99.5% · top 0.1% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.1.
Affected products
OpenSSH
- affected 8.5p1 – ≤ 9.7p1
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:8.7p1-38.el9_4.1 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:8.7p1-38.el9_4.1 – < *
Red Hat · Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
- unaffected 0:8.7p1-12.el9_0.1 – < *
Red Hat · Red Hat Enterprise Linux 9.2 Extended Update Support
- unaffected 0:8.7p1-30.el9_2.4 – < *
Red Hat · Red Hat OpenShift Container Platform 4.13
- unaffected 413.92.202407091321-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.14
- unaffected 414.92.202407091253-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.15
- unaffected 415.92.202407091355-0 – < *
Red Hat · Red Hat OpenShift Container Platform 4.16
- unaffected 416.94.202407081958-0 – < *
Red Hat · Red Hat Ceph Storage 5
All versions: unaffected
Red Hat · Red Hat Ceph Storage 6
All versions: unaffected
Red Hat · Red Hat Ceph Storage 7
All versions: unaffected
Red Hat · Red Hat Enterprise Linux 10
All versions: unaffected
Red Hat · Red Hat Enterprise Linux 6
All versions: unaffected
Red Hat · Red Hat Enterprise Linux 7
All versions: unaffected
Red Hat · Red Hat Enterprise Linux 8
All versions: unaffected
Red Hat · Red Hat OpenShift Container Platform 4
All versions: affected
What to do
Workaround: The below process can protect against a Remote Code Execution attack by disabling the LoginGraceTime parameter on Red Hat Enterprise Linux 9. However, the sshd server is still vulnerable to a Denial of Service if an attacker exhausts all the connections. 1) As root user, open the /etc/ssh/sshd_config 2) Add or edit the parameter configuration: ~~~ LoginGraceTime 0 ~~~ 3) Save and close the file 4) Restart the sshd daemon: ~~~ systemctl restart sshd.service ~~~ Setting LoginGraceTime to 0 disables the SSHD server's ability to drop connections if authentication is not completed within the specified timeout. If this mitigation is implemented, it is highly recommended to use a tool like 'fail2ban' alongside a firewall to monitor log files and manage connections appropriately. If any of the mitigations mentioned above is used, please note that the removal of LoginGraceTime parameter from sshd_config is not automatic when the updated package is installed.
References
References81
- RHSA-2024:4312 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2024:4340 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2024:4389 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2024:4469 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2024:4474 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2024:4479 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2024:4484 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://access.redhat.com/security/cve/CVE-2024-6387 (opens in a new tab)vdb-entryx_refsource_REDHATx_transferred
- RHBZ#2294604 (opens in a new tab)issue-trackingx_refsource_REDHATx_transferred
- https://santandersecurityresearch.github.io/blog/sshing_the_masses.html (opens in a new tab)x_transferred
- https://www.openssh.com/txt/release-9.8 (opens in a new tab)x_transferred
- https://www.qualys.com/2024/07/01/cve-2024-6387/regresshion.txt (opens in a new tab)x_transferred
- https://www.vicarius.io/vsociety/posts/regresshion-an-openssh-regression-error-cve-2024-6387 (opens in a new tab)
- https://www.exploit-db.com/exploits/52269 (opens in a new tab)
- https://packetstorm.news/files/id/190587/ (opens in a new tab)
- http://www.openwall.com/lists/oss-security/2024/07/01/12 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/01/13 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/02/1 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/03/1 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/03/11 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/03/2 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/03/3 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/03/4 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/03/5 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/04/1 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/04/2 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/08/2 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/08/3 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/09/2 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/09/5 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/10/1 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/10/2 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/10/3 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/10/4 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/10/6 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/11/1 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/11/3 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/23/4 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/23/6 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/28/2 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/28/3 (opens in a new tab)x_transferred
- https://archlinux.org/news/the-sshd-service-needs-to-be-restarted-after-upgrading-to-openssh-98p1/ (opens in a new tab)x_transferred
- https://arstechnica.com/security/2024/07/regresshion-vulnerability-in-openssh-gives-attackers-root-on-linux/ (opens in a new tab)x_transferred
- https://blog.qualys.com/vulnerabilities-threat-research/2024/07/01/regresshion-remote-unauthenticated-code-execution-vulnerability-in-openssh-server (opens in a new tab)x_transferred
- https://explore.alas.aws.amazon.com/CVE-2024-6387.html (opens in a new tab)x_transferred
- https://forum.vmssoftware.com/viewtopic.php?f=8&t=9132 (opens in a new tab)x_transferred
- https://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2024-002.txt.asc (opens in a new tab)x_transferred
- https://github.com/AlmaLinux/updates/issues/629 (opens in a new tab)x_transferred
- https://github.com/Azure/AKS/issues/4379 (opens in a new tab)x_transferred
- https://github.com/PowerShell/Win32-OpenSSH/discussions/2248 (opens in a new tab)x_transferred
- https://github.com/PowerShell/Win32-OpenSSH/issues/2249 (opens in a new tab)x_transferred
- https://github.com/microsoft/azurelinux/issues/9555 (opens in a new tab)x_transferred
- https://github.com/openela-main/openssh/commit/e1f438970e5a337a17070a637c1b9e19697cad09 (opens in a new tab)x_transferred
- https://github.com/oracle/oracle-linux/issues/149 (opens in a new tab)x_transferred
- https://github.com/rapier1/hpn-ssh/issues/87 (opens in a new tab)x_transferred
- https://github.com/zgzhang/cve-2024-6387-poc (opens in a new tab)x_transferred
- https://lists.almalinux.org/archives/list/[email protected]/thread/23BF5BMGFVEVUI2WNVAGMLKT557EU7VY/ (opens in a new tab)x_transferred
- https://lists.mindrot.org/pipermail/openssh-unix-announce/2024-July/000158.html (opens in a new tab)x_transferred
- https://lists.mindrot.org/pipermail/openssh-unix-dev/2024-July/041431.html (opens in a new tab)x_transferred
- https://news.ycombinator.com/item?id=40843778 (opens in a new tab)x_transferred
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0010 (opens in a new tab)x_transferred
- https://security-tracker.debian.org/tracker/CVE-2024-6387 (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20240701-0001/ (opens in a new tab)x_transferred
- https://sig-security.rocky.page/issues/CVE-2024-6387/ (opens in a new tab)x_transferred
- https://stackdiary.com/openssh-race-condition-in-sshd-allows-remote-code-execution/ (opens in a new tab)x_transferred
- https://ubuntu.com/security/CVE-2024-6387 (opens in a new tab)x_transferred
- https://ubuntu.com/security/notices/USN-6859-1 (opens in a new tab)x_transferred
- https://www.akamai.com/blog/security-research/2024-openssh-vulnerability-regression-what-to-know-and-do (opens in a new tab)x_transferred
- https://www.arista.com/en/support/advisories-notices/security-advisory/19904-security-advisory-0100 (opens in a new tab)x_transferred
- https://www.freebsd.org/security/advisories/FreeBSD-SA-24:04.openssh.asc (opens in a new tab)x_transferred
- https://www.splunk.com/en_us/blog/security/cve-2024-6387-regresshion-vulnerability.html (opens in a new tab)x_transferred
- https://www.suse.com/security/cve/CVE-2024-6387.html (opens in a new tab)x_transferred
- https://www.theregister.com/2024/07/01/regresshion_openssh/ (opens in a new tab)x_transferred
- https://support.apple.com/kb/HT214119 (opens in a new tab)x_transferred
- https://support.apple.com/kb/HT214118 (opens in a new tab)x_transferred
- https://support.apple.com/kb/HT214120 (opens in a new tab)x_transferred
- http://seclists.org/fulldisclosure/2024/Jul/20 (opens in a new tab)x_transferred
- http://seclists.org/fulldisclosure/2024/Jul/18 (opens in a new tab)x_transferred
- http://seclists.org/fulldisclosure/2024/Jul/19 (opens in a new tab)x_transferred
- https://cert-portal.siemens.com/productcert/html/ssa-446545.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-47981 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-6387)Record last updated .