Vulnerability · Published Jul 1, 2024 · Assigned by redhat

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

High 8.1

In plain English

A high-severity security flaw in OpenSSH. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 99.5% (higher than 99.9% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)99.5%top 0.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:9openssh8.7p1-38.el9_4.1ALSA-2024:4312
AlmaLinux:9openssh-askpass8.7p1-38.el9_4.1ALSA-2024:4312
AlmaLinux:9openssh-clients8.7p1-38.el9_4.1ALSA-2024:4312
AlmaLinux:9openssh-keycat8.7p1-38.el9_4.1ALSA-2024:4312
AlmaLinux:9openssh-server8.7p1-38.el9_4.1ALSA-2024:4312
AlmaLinux:9pam_ssh_agent_auth0.10.4-5.38.el9_4.1ALSA-2024:4312
Alpine:v3.20openssh9.7_p1-r4ALPINE-CVE-2024-6387
Alpine:v3.21openssh9.8_p1-r0ALPINE-CVE-2024-6387
Alpine:v3.22openssh9.8_p1-r0ALPINE-CVE-2024-6387
Alpine:v3.23openssh9.8_p1-r0ALPINE-CVE-2024-6387
Alpine:v3.24openssh9.8_p1-r0ALPINE-CVE-2024-6387
Debian:12openssh1:9.2p1-2+deb12u3DSA-5724-1
Debian:12openssh1:9.2p1-2+deb12u3DEBIAN-CVE-2024-6387
Debian:13openssh1:9.7p1-7DEBIAN-CVE-2024-6387
Debian:14openssh1:9.7p1-7DEBIAN-CVE-2024-6387
Ubuntu:22.04:LTSopenssh1:8.9p1-3ubuntu0.10UBUNTU-CVE-2024-6387
Ubuntu:22.04:LTSopenssh1:8.9p1-3ubuntu0.10USN-6859-1
Ubuntu:24.04:LTSopenssh1:9.6p1-3ubuntu13.3UBUNTU-CVE-2024-6387
Ubuntu:24.04:LTSopenssh1:9.6p1-3ubuntu13.3USN-6859-1

Affected products (as reported)

Weakness: CWE-364 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

References