CVE-2024-6387 regreSSHion: Openssh: regresshion - race condition in ssh allows rce/dos
Unauthenticated remote attackers can exploit a race condition in OpenSSH to achieve remote code execution or cause denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-6387?
CVE-2024-6387 (regreSSHion) is a high-severity vulnerability in Apple Macos, published on 1 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2024-6387?
It affects 53 products.
Linux distribution packages (40)
openssh AlmaLinux:9 | All versions | 8.7p1-38.el9_4.1 |
openssh-askpass AlmaLinux:9 | All versions | 8.7p1-38.el9_4.1 |
openssh-clients AlmaLinux:9 | All versions | 8.7p1-38.el9_4.1 |
openssh-keycat AlmaLinux:9 | All versions | 8.7p1-38.el9_4.1 |
openssh-server AlmaLinux:9 | All versions | 8.7p1-38.el9_4.1 |
pam_ssh_agent_auth AlmaLinux:9 | All versions | 0.10.4-5.38.el9_4.1 |
openssh-askpass Red Hat:enterprise_linux:9::appstream | All versions | 0:8.7p1-38.el9_4.1 |
openssh-askpass-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:8.7p1-38.el9_4.1 |
openssh-clients-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:8.7p1-38.el9_4.1 |
openssh-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:8.7p1-38.el9_4.1 |
openssh-debugsource Red Hat:enterprise_linux:9::appstream | All versions | 0:8.7p1-38.el9_4.1 |
openssh-keycat-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:8.7p1-38.el9_4.1 |
openssh-server-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:8.7p1-38.el9_4.1 |
openssh-sk-dummy-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:8.7p1-38.el9_4.1 |
pam_ssh_agent_auth Red Hat:enterprise_linux:9::appstream | All versions | 0:0.10.4-5.38.el9_4.1 |
pam_ssh_agent_auth-debuginfo Red Hat:enterprise_linux:9::appstream | All versions | 0:0.10.4-5.38.el9_4.1 |
openssh Red Hat:enterprise_linux:9::baseos | All versions | 0:8.7p1-38.el9_4.1 |
openssh-askpass-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:8.7p1-38.el9_4.1 |
openssh-clients Red Hat:enterprise_linux:9::baseos | All versions | 0:8.7p1-38.el9_4.1 |
openssh-clients-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:8.7p1-38.el9_4.1 |
openssh-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:8.7p1-38.el9_4.1 |
openssh-debugsource Red Hat:enterprise_linux:9::baseos | All versions | 0:8.7p1-38.el9_4.1 |
openssh-keycat Red Hat:enterprise_linux:9::baseos | All versions | 0:8.7p1-38.el9_4.1 |
openssh-keycat-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:8.7p1-38.el9_4.1 |
openssh-server Red Hat:enterprise_linux:9::baseos | All versions | 0:8.7p1-38.el9_4.1 |
openssh-server-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:8.7p1-38.el9_4.1 |
openssh-sk-dummy-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:8.7p1-38.el9_4.1 |
pam_ssh_agent_auth-debuginfo Red Hat:enterprise_linux:9::baseos | All versions | 0:0.10.4-5.38.el9_4.1 |
openssh-askpass Red Hat:rhel_e4s:9.0::appstream | All versions | 0:8.7p1-12.el9_0.1 |
openssh-askpass-debuginfo Red Hat:rhel_e4s:9.0::appstream | All versions | 0:8.7p1-12.el9_0.1 |
openssh-clients-debuginfo Red Hat:rhel_e4s:9.0::appstream | All versions | 0:8.7p1-12.el9_0.1 |
openssh-debuginfo Red Hat:rhel_e4s:9.0::appstream | All versions | 0:8.7p1-12.el9_0.1 |
openssh-debugsource Red Hat:rhel_e4s:9.0::appstream | All versions | 0:8.7p1-12.el9_0.1 |
openssh-keycat-debuginfo Red Hat:rhel_e4s:9.0::appstream | All versions | 0:8.7p1-12.el9_0.1 |
openssh-server-debuginfo Red Hat:rhel_e4s:9.0::appstream | All versions | 0:8.7p1-12.el9_0.1 |
pam_ssh_agent_auth Red Hat:rhel_e4s:9.0::appstream | All versions | 0:0.10.4-4.12.el9_0.1 |
pam_ssh_agent_auth-debuginfo Red Hat:rhel_e4s:9.0::appstream | All versions | 0:0.10.4-4.12.el9_0.1 |
openssh Red Hat:rhel_e4s:9.0::baseos | All versions | 0:8.7p1-12.el9_0.1 |
openssh-askpass-debuginfo Red Hat:rhel_e4s:9.0::baseos | All versions | 0:8.7p1-12.el9_0.1 |
openssh-clients Red Hat:rhel_e4s:9.0::baseos | All versions | 0:8.7p1-12.el9_0.1 |
Products include Almalinux Almalinux, Amazon Amazon Linux, Apple Macos, Arista Eos, Canonical Ubuntu Linux, Debian Debian Linux and 47 more.
How do I fix CVE-2024-6387?
Apply the vendor's patch.
Is CVE-2024-6387 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6387 exists.
Public exploit code: 1 Exploit-DB entry and 97 proofs of concept on GitHub.
Other vulnerabilities in Apple Macos
- CVE-2024-12084 Rsync: heap buffer overflow in rsync due to improper checksum length handling
- CVE-2024-12085 Rsync: info leak via uninitialized stack contents
- CVE-2024-12087 Rsync: path traversal vulnerability in rsync
- CVE-2024-12088 Rsync: --safe-links option bypass leads to path traversal
- CVE-2024-12086 Rsync: rsync server leaks arbitrary client files
Sources
Also known as ALPINE-CVE-2024-6387, ALSA-2024:4312, AZL-43024, AZL-43030, BELL-CVE-2024-6387, CLSA-2024-1720093829 and 17 more.