CVE-2024-6387
High 8.1No known exploitationPublic exploitFix availableOpenssh: regresshion - race condition in ssh allows rce/dos
Record last updated
CVSS score
High on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Among the highest-scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
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.
Weakness: CWE-364
Patching and mitigation
- Patch status
- Fix available (source: NVD (reference tagged Patch))
- Fix documented (source date)
- Mitigation
- 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. Source (opens in a new tab)
- Vendor guidance
- access.redhat.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Red Hat | Red Hat OpenShift Container Platform 4 | Not documented | Not documented | CVE Program |
| almalinux | almalinux | 9.0 | Not documented | NIST NVD |
| amazon | amazon_linux | 2023.0 | Not documented | NIST NVD |
| apple | macos | from 12.0 before 12.7.6 | 12.7.6 | NIST NVD |
| apple | macos | from 13.0 before 13.6.8 | 13.6.8 | NIST NVD |
| apple | macos | from 14.0 before 14.6 | 14.6 | NIST NVD |
| arista | eos | from 4.32.0 up to and including 4.32.1f | Not documented | NIST NVD |
| canonical | ubuntu_linux | 22.04 | Not documented | NIST NVD |
| canonical | ubuntu_linux | 22.10 | Not documented | NIST NVD |
| canonical | ubuntu_linux | 23.04 | Not documented | NIST NVD |
| canonical | ubuntu_linux | 23.10 | Not documented | NIST NVD |
| canonical | ubuntu_linux | 24.04 | Not documented | NIST NVD |
| debian | debian_linux | 12.0 | Not documented | NIST NVD |
| freebsd | freebsd | 13.2 | Not documented | NIST NVD |
| freebsd | freebsd | 13.2 | Not documented | NIST NVD |
| freebsd | freebsd | 13.2 | Not documented | NIST NVD |
| freebsd | freebsd | 13.2 | Not documented | NIST NVD |
| freebsd | freebsd | 13.2 | Not documented | NIST NVD |
| freebsd | freebsd | 13.2 | Not documented | NIST NVD |
| freebsd | freebsd | 13.2 | Not documented | NIST NVD |
| freebsd | freebsd | 13.2 | Not documented | NIST NVD |
| freebsd | freebsd | 13.2 | Not documented | NIST NVD |
| freebsd | freebsd | 13.2 | Not documented | NIST NVD |
| freebsd | freebsd | 13.2 | Not documented | NIST NVD |
| freebsd | freebsd | 13.2 | Not documented | NIST NVD |
| freebsd | freebsd | 13.3 | Not documented | NIST NVD |
| freebsd | freebsd | 13.3 | Not documented | NIST NVD |
| freebsd | freebsd | 13.3 | Not documented | NIST NVD |
| freebsd | freebsd | 13.3 | Not documented | NIST NVD |
| freebsd | freebsd | 14.0 | Not documented | NIST NVD |
| freebsd | freebsd | 14.0 | Not documented | NIST NVD |
| freebsd | freebsd | 14.0 | Not documented | NIST NVD |
| freebsd | freebsd | 14.0 | Not documented | NIST NVD |
| freebsd | freebsd | 14.0 | Not documented | NIST NVD |
| freebsd | freebsd | 14.0 | Not documented | NIST NVD |
| freebsd | freebsd | 14.0 | Not documented | NIST NVD |
| freebsd | freebsd | 14.0 | Not documented | NIST NVD |
| freebsd | freebsd | 14.0 | Not documented | NIST NVD |
| freebsd | freebsd | 14.0 | Not documented | NIST NVD |
| freebsd | freebsd | 14.0 | Not documented | NIST NVD |
| freebsd | freebsd | 14.1 | Not documented | NIST NVD |
| freebsd | freebsd | 14.1 | Not documented | NIST NVD |
| netapp | 500f_firmware | Not documented | Not documented | NIST NVD |
| netapp | 8300_firmware | Not documented | Not documented | NIST NVD |
| netapp | 8700_firmware | Not documented | Not documented | NIST NVD |
| netapp | a150_firmware | Not documented | Not documented | NIST NVD |
| netapp | a1k_firmware | Not documented | Not documented | NIST NVD |
| netapp | a220_firmware | Not documented | Not documented | NIST NVD |
| netapp | a250_firmware | Not documented | Not documented | NIST NVD |
| netapp | a400_firmware | Not documented | Not documented | NIST NVD |
| netapp | a700s_firmware | Not documented | Not documented | NIST NVD |
| netapp | a70_firmware | Not documented | Not documented | NIST NVD |
| netapp | a800_firmware | Not documented | Not documented | NIST NVD |
| netapp | a900_firmware | Not documented | Not documented | NIST NVD |
| netapp | a90_firmware | Not documented | Not documented | NIST NVD |
| netapp | a9500_firmware | Not documented | Not documented | NIST NVD |
| netapp | active_iq_unified_manager | Not documented | Not documented | NIST NVD |
| netapp | bootstrap_os | Not documented | Not documented | NIST NVD |
| netapp | c190_firmware | Not documented | Not documented | NIST NVD |
| netapp | c250_firmware | Not documented | Not documented | NIST NVD |
| netapp | c400_firmware | Not documented | Not documented | NIST NVD |
| netapp | c800_firmware | Not documented | Not documented | NIST NVD |
| netapp | e-series_santricity_os_controller | from 11.0.0 up to and including 11.70.2 | Not documented | NIST NVD |
| netapp | fas2720_firmware | Not documented | Not documented | NIST NVD |
| netapp | fas2750_firmware | Not documented | Not documented | NIST NVD |
| netapp | fas2820_firmware | Not documented | Not documented | NIST NVD |
| netapp | ontap | 9 | Not documented | NIST NVD |
| netapp | ontap_select_deploy_administration_utility | Not documented | Not documented | NIST NVD |
| netapp | ontap_tools | 10 | Not documented | NIST NVD |
| netapp | ontap_tools | 9 | Not documented | NIST NVD |
| netbsd | netbsd | all versions up to and including 10.0.0 | Not documented | NIST NVD |
| openbsd | openssh | from 8.6 up to and including 9.8 | Not documented | NIST NVD |
| openbsd | openssh | 4.4 | Not documented | NIST NVD |
| openbsd | openssh | 8.5 | Not documented | NIST NVD |
| openbsd | openssh | 8.6 | Not documented | NIST NVD |
| openbsd | openssh | all versions before 4.4 | 4.4 | NIST NVD |
| redhat | enterprise_linux | 9.0 | Not documented | NIST NVD |
| redhat | enterprise_linux_eus | 9.4 | Not documented | NIST NVD |
| redhat | enterprise_linux_for_arm_64 | 9.0_aarch64 | Not documented | NIST NVD |
| redhat | enterprise_linux_for_arm_64_eus | 9.4_aarch64 | Not documented | NIST NVD |
| redhat | enterprise_linux_for_ibm_z_systems | 9.0_s390x | Not documented | NIST NVD |
| redhat | enterprise_linux_for_ibm_z_systems_eus | 9.4_s390x | Not documented | NIST NVD |
| redhat | enterprise_linux_for_power_little_endian | 9.0_ppc64le | Not documented | NIST NVD |
| redhat | enterprise_linux_for_power_little_endian_eus | 9.4_ppc64le | Not documented | NIST NVD |
| redhat | enterprise_linux_server_aus | 9.4 | Not documented | NIST NVD |
| redhat | openshift_container_platform | 4.0 | Not documented | NIST NVD |
| sonicwall | sma_6200_firmware | Not documented | Not documented | NIST NVD |
| sonicwall | sma_6210_firmware | Not documented | Not documented | NIST NVD |
| sonicwall | sma_7200_firmware | Not documented | Not documented | NIST NVD |
| sonicwall | sma_7210_firmware | Not documented | Not documented | NIST NVD |
| sonicwall | sma_8200v_firmware | Not documented | Not documented | NIST NVD |
| sonicwall | sra_ex_7000_firmware | Not documented | Not documented | NIST NVD |
| suse | linux_enterprise_micro | 6.0 | Not documented | NIST NVD |
| Red Hat | Red Hat Ceph Storage 5 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Ceph Storage 6 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Ceph Storage 7 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 10 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 6 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 7 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 8 (status unknown) | Not documented | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9 (unaffected) | 0:8.7p1-38.el9_4.1 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9 (unaffected) | 0:8.7p1-38.el9_4.1 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions (unaffected) | 0:8.7p1-12.el9_0.1 | Not documented | CVE Program |
| Red Hat | Red Hat Enterprise Linux 9.2 Extended Update Support (unaffected) | 0:8.7p1-30.el9_2.4 | Not documented | CVE Program |
| Red Hat | Red Hat OpenShift Container Platform 4.13 (unaffected) | 413.92.202407091321-0 | Not documented | CVE Program |
| Red Hat | Red Hat OpenShift Container Platform 4.14 (unaffected) | 414.92.202407091253-0 | Not documented | CVE Program |
| Red Hat | Red Hat OpenShift Container Platform 4.15 (unaffected) | 415.92.202407091355-0 | Not documented | CVE Program |
| Red Hat | Red Hat OpenShift Container Platform 4.16 (unaffected) | 416.94.202407081958-0 | Not documented | CVE Program |
Timeline
Disclosure
CVE record published by redhat
Source: CVE Program (opens in a new tab)
Patch
Fix documented by NVD (reference tagged Patch)
Vendor guidance and references
- http://www.openwall.com/lists/oss-security/2024/07/03/3 (opens in a new tab)mailing list, patch, x_transferred
- RHSA-2024:4312 (opens in a new tab)third party advisory, vendor-advisory, x_refsource_redhat, x_transferred
- RHSA-2024:4340 (opens in a new tab)third party advisory, vendor-advisory, x_refsource_redhat, x_transferred
- RHSA-2024:4389 (opens in a new tab)third party advisory, vendor-advisory, x_refsource_redhat, x_transferred
- RHSA-2024:4469 (opens in a new tab)third party advisory, vendor-advisory, x_refsource_redhat, x_transferred
- RHSA-2024:4474 (opens in a new tab)third party advisory, vendor-advisory, x_refsource_redhat, x_transferred
- RHSA-2024:4479 (opens in a new tab)third party advisory, vendor-advisory, x_refsource_redhat, x_transferred
- RHSA-2024:4484 (opens in a new tab)third party advisory, vendor-advisory, x_refsource_redhat, x_transferred
- http://seclists.org/fulldisclosure/2024/Jul/18 (opens in a new tab)mailing list
- http://seclists.org/fulldisclosure/2024/Jul/19 (opens in a new tab)mailing list
- http://seclists.org/fulldisclosure/2024/Jul/20 (opens in a new tab)mailing list
- http://www.openwall.com/lists/oss-security/2024/07/01/12 (opens in a new tab)mailing list, x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/01/13 (opens in a new tab)mailing list, x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/02/1 (opens in a new tab)mailing list, x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/03/1 (opens in a new tab)mailing list, 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)mailing list, x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/03/4 (opens in a new tab)mailing list, x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/03/5 (opens in a new tab)mailing list, x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/04/1 (opens in a new tab)mailing list, 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)mailing list, x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/09/2 (opens in a new tab)mailing list, 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)mailing list, x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/10/3 (opens in a new tab)mailing list, x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/10/4 (opens in a new tab)mailing list, x_transferred
- http://www.openwall.com/lists/oss-security/2024/07/10/6 (opens in a new tab)mailing list, x_transferred
Public exploit code
Exploit or proof-of-concept code is publicly available on Exploit-DB. Shown as a prioritization and defensive-testing signal — treat exploit code as hostile and run it only against systems you are authorized to test.