CVE-2024-6387
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.
- Affected products
- Alt Linux, Almalinux, Astra Linux, Freebsd, Ibm Aix, Linuxmint, Apple Macos, Openssh
- Sonicwall Sma 6200 Firmware
- All versions
- Fix
- Available
- CVSS 3.1
- 8.1 HIGH
- EPSS
- 99.5% (100th percentile)
- Weakness
- CWE-362, CWE-364
- NVD status
- Modified
- Published
- 2024-07-01
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.
100 known exploits for CVE-2024-6387
Proof-of-concept code and exploit modules indexed by Sploitus