CVE-2024-6387
JSON

8.1high

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

Severity
8.1high CVSS:3.1 by redhat
Exploit likelihood
99.5% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat

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

Product or packageVersionsReported by
OpenSSHfrom 8.5p1 up to 9.7p1
Not affected: from 0:8.7p1-38.el9_4.1 before *, from 0:8.7p1-12.el9_0.1 before *, from 0:8.7p1-30.el9_2.4 before *
CVE List
openshift/ose-rhel-coreos-9Not specified
Not affected: from 413.92.202407091321-0 before *, from 414.92.202407091253-0 before *, from 415.92.202407091355-0 before *, from 416.94.202407081958-0 before *
CVE List
openshift/ose-rhel-coreos-8Not specifiedCVE List
sonicwall sma_6200_firmwareNot specifiedNVD
sonicwall sma_7200_firmwareNot specifiedNVD
arista eosfrom 4.32.0 up to 4.32.1fNVD
canonical ubuntu_linux23.10, 24.04, 22.04, 22.10, 23.04NVD
almalinux almalinux9.0NVD
sonicwall sma_6210_firmwareNot specifiedNVD
sonicwall sma_7210_firmwareNot specifiedNVD
sonicwall sma_8200v_firmwareNot specifiedNVD
sonicwall sra_ex_7000_firmwareNot specifiedNVD

All scores

redhat8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-362CWE-364

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Se encontró una condición de ejecución del controlador de señales en el servidor de OpenSSH (sshd), donde un cliente no se autentica dentro de los segundos de LoginGraceTime (120 de forma predeterminada, 600 en versiones anteriores de OpenSSH), luego se llama al controlador SIGALRM de sshd de forma asincrónica. Sin embargo, este controlador de señales llama a varias funciones que no son seguras para señales asíncronas, por ejemplo, syslog().

References

https://access.redhat.com/errata/RHSA-2024:4312third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2024:4340third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2024:4389third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2024:4469third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2024:4474third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2024:4479third-party-advisory, vendor-advisory
https://access.redhat.com/errata/RHSA-2024:4484third-party-advisory, vendor-advisory
https://access.redhat.com/security/cve/CVE-2024-6387third-party-advisory, vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2294604issue-tracking, third-party-advisory
https://santandersecurityresearch.github.io/blog/sshing_the_masses.htmlexploit, third-party-advisory
https://www.openssh.com/txt/release-9.8release-notes, third-party-advisory
https://www.qualys.com/2024/07/01/cve-2024-6387/regresshion.txtexploit, third-party-advisory

Sources

SourceRecordLicence
CVE ListCVE-2024-6387 changed 2026-11-23CVE Terms of Use
NVDCVE-2024-6387 changed 2026-11-23Public domain