CVE-2024-6387 regreSSHion: Openssh: regresshion - race condition in ssh allows rce/dos

High 8.1 Published Updated

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.

Weakness: CWE-362, CWE-364

Which versions are affected by CVE-2024-6387?

It affects 53 products.

Linux distribution packages (40)
openssh AlmaLinux:9All versions8.7p1-38.el9_4.1
openssh-askpass AlmaLinux:9All versions8.7p1-38.el9_4.1
openssh-clients AlmaLinux:9All versions8.7p1-38.el9_4.1
openssh-keycat AlmaLinux:9All versions8.7p1-38.el9_4.1
openssh-server AlmaLinux:9All versions8.7p1-38.el9_4.1
pam_ssh_agent_auth AlmaLinux:9All versions0.10.4-5.38.el9_4.1
openssh-askpass Red Hat:enterprise_linux:9::appstreamAll versions0:8.7p1-38.el9_4.1
openssh-askpass-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:8.7p1-38.el9_4.1
openssh-clients-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:8.7p1-38.el9_4.1
openssh-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:8.7p1-38.el9_4.1
openssh-debugsource Red Hat:enterprise_linux:9::appstreamAll versions0:8.7p1-38.el9_4.1
openssh-keycat-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:8.7p1-38.el9_4.1
openssh-server-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:8.7p1-38.el9_4.1
openssh-sk-dummy-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:8.7p1-38.el9_4.1
pam_ssh_agent_auth Red Hat:enterprise_linux:9::appstreamAll versions0:0.10.4-5.38.el9_4.1
pam_ssh_agent_auth-debuginfo Red Hat:enterprise_linux:9::appstreamAll versions0:0.10.4-5.38.el9_4.1
openssh Red Hat:enterprise_linux:9::baseosAll versions0:8.7p1-38.el9_4.1
openssh-askpass-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:8.7p1-38.el9_4.1
openssh-clients Red Hat:enterprise_linux:9::baseosAll versions0:8.7p1-38.el9_4.1
openssh-clients-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:8.7p1-38.el9_4.1
openssh-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:8.7p1-38.el9_4.1
openssh-debugsource Red Hat:enterprise_linux:9::baseosAll versions0:8.7p1-38.el9_4.1
openssh-keycat Red Hat:enterprise_linux:9::baseosAll versions0:8.7p1-38.el9_4.1
openssh-keycat-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:8.7p1-38.el9_4.1
openssh-server Red Hat:enterprise_linux:9::baseosAll versions0:8.7p1-38.el9_4.1
openssh-server-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:8.7p1-38.el9_4.1
openssh-sk-dummy-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:8.7p1-38.el9_4.1
pam_ssh_agent_auth-debuginfo Red Hat:enterprise_linux:9::baseosAll versions0:0.10.4-5.38.el9_4.1
openssh-askpass Red Hat:rhel_e4s:9.0::appstreamAll versions0:8.7p1-12.el9_0.1
openssh-askpass-debuginfo Red Hat:rhel_e4s:9.0::appstreamAll versions0:8.7p1-12.el9_0.1
openssh-clients-debuginfo Red Hat:rhel_e4s:9.0::appstreamAll versions0:8.7p1-12.el9_0.1
openssh-debuginfo Red Hat:rhel_e4s:9.0::appstreamAll versions0:8.7p1-12.el9_0.1
openssh-debugsource Red Hat:rhel_e4s:9.0::appstreamAll versions0:8.7p1-12.el9_0.1
openssh-keycat-debuginfo Red Hat:rhel_e4s:9.0::appstreamAll versions0:8.7p1-12.el9_0.1
openssh-server-debuginfo Red Hat:rhel_e4s:9.0::appstreamAll versions0:8.7p1-12.el9_0.1
pam_ssh_agent_auth Red Hat:rhel_e4s:9.0::appstreamAll versions0:0.10.4-4.12.el9_0.1
pam_ssh_agent_auth-debuginfo Red Hat:rhel_e4s:9.0::appstreamAll versions0:0.10.4-4.12.el9_0.1
openssh Red Hat:rhel_e4s:9.0::baseosAll versions0:8.7p1-12.el9_0.1
openssh-askpass-debuginfo Red Hat:rhel_e4s:9.0::baseosAll versions0:8.7p1-12.el9_0.1
openssh-clients Red Hat:rhel_e4s:9.0::baseosAll versions0: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.

All Apple Macos vulnerabilities

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.

Is CVE-2024-6387 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free