CVE-2024-6387: OpenSSH regreSSHion Attack (CVE-2024-6387)

Published Jun 27, 2024
·
Updated

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.

Other sources

A security regressionwas 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.

— F5

Accounts. The issue was addressed with improved checks.

— Apple

AirDrop. This issue was addressed through improved state management.

— Apple

apache. This is a vulnerability in open source code and Apple Software is among the affected projects. The CVE-ID was assigned by a third party. Learn more about the issue and CVE-ID at cve.org.

— Apple

APFS. The issue was addressed with improved restriction of data container access.

— Apple

Credit

CVE-2024-6387, sqrtpwn, Minghao Lin(Zhejiang University), Jiaxun Zhu(Zhejiang University), Patrick Wardle(DoubleYou), Adam M., Mickey Jin@@patch1t, Zhongquan Li@@Guluisacat(Dawn Security Lab of JingDong), Csaba Fitzl@@theevilbit(Kandji), Claudio Bozzato(Cisco Talos), Francesco Benvenuto(Cisco Talos), CVE-2024-23296, Yadhu Krishna M(Cyber Security At Suma Soft Pvt), Narendra Bhati(Cyber Security At Suma Soft Pvt), Manager(Cyber Security At Suma Soft Pvt), Pune (India), Kirin@@Pwnrin, Joshua Jones, an anonymous researcher, Marcio Almeida(Tanto Security), Jiahui Hu (梅零落)(NorthSea), Meng Zhang (鲸落)(NorthSea), Matthew Loewen, Michael DePlante@@izobashi(Trend Micro Zero Day Initiative), D4m0n, Amir Bazine(CrowdStrike Counter Adversary Operations), Karsten König(CrowdStrike Counter Adversary Operations), CVE-2024-2004, CVE-2024-2379, CVE-2024-2398, CVE-2024-2466, CVE-2023-6277, CVE-2023-52356, Yisumi, Minghao Lin(Baidu Security), (Baidu Security), Ye Zhang@@VAR10CK(Baidu Security), Junsung Lee(Trend Micro Zero Day Initiative), Gandalf4a, Bistrit Dahal, Srijan Poudel, Abhay Kailasia@@abhay_kailasia(Lakshmi Narain College of Technology Bhopal India), w0wbox, Linwz(DEVCORE), IES Red Team(ByteDance), Yeto, CertiK SkyFall Team, Wang Yu(Cyberserval), (CrowdStrike Counter Adversary Operations), Yann Gascuel(Alter Solutions), CVE-2024-40805, Rodolphe BRUNETTI@@eisw0lf

Affected Software

199 affected componentsFixes available
Microsoft Azure Arc Resource Bridge
Microsoft Azure Arc Resource Bridge
Microsoft Azure Arc Resource Bridge
Apple macOS Sonoma<14.6
14.6
Microsoft CBL Mariner 2.0 ARM
Microsoft CBL Mariner 2.0 x64
F5 BIG-IP Next>=20.1.0<=20.2.1
F5 BIG-IP Next Central Manager>=20.1.0<=20.2.1
F5 BIG-IP Next SPK>=1.7.0<=1.9.2
F5 BIG-IP Next CNF>=1.1.0<=1.3.1
Microsoft Azure Kubernetes Service Node on Ubuntu Linux
Microsoft Azure Kubernetes Service Node on Azure Linux
Apple macOS Monterey<12.7.6
12.7.6
Apple macOS Ventura<13.6.8
13.6.8
Fortinet FortiADC>=7.4.0<=7.4.4
Fortinet FortiADC>=7.2.0<=7.2.6
Fortinet FortiAIOps>=2.0.0<=2.0.1
Fortinet FortiAnalyzer>=7.4.0<=7.4.3
Fortinet FortiAnalyzer>=7.2.0<=7.2.5
Fortinet FortiAnalyzer>=7.0.0<=7.0.12
Fortinet FortiAnalyzer>=6.4.0<=6.4.14
Fortinet FortiAnalyzer-BigData=.
Fortinet FortiAuthenticator>=6.6.0<=6.6.1
Fortinet FortiDDoS>=5.7.0<=5.7.3
Fortinet FortiDDoS-F>=7.0.0<=7.0.1
Fortinet FortiDeceptor>=5.3.0<=5.3.1
Fortinet FortiDeceptor=.
Fortinet FortiExtender>=7.4.0<=7.4.5
Fortinet FortiExtender>=7.2.0<=7.2.5
Fortinet FortiExtender>=7.0.0<=7.0.5
Fortinet FortiGuest=.
Fortinet FortiGuest>=1.2.0<=1.2.1
Fortinet FortiGuest>=1.1
Fortinet FortiGuest>=1.0
Fortinet FortiMail>=7.4.0<=7.4.2
Fortinet FortiMail>=7.2.0<=7.2.6
Fortinet FortiMail>=7.0.0<=7.0.7
Fortinet FortiMail>=6.4.0<=6.4.8
Fortinet FortiManager>=7.4.0<=7.4.3
Fortinet FortiManager>=7.2.0<=7.2.5
Fortinet FortiManager>=7.0.0<=7.0.12
Fortinet FortiManager>=6.4.0<=6.4.14
Fortinet FortiManager Cloud>=7.2.3<=7.2.4
Fortinet FortiManager Cloud=.
Fortinet FortiManager Cloud=.
Fortinet FortiManager Cloud>=7.0.6<=7.0.7
Fortinet FortiNAC-F=.
Fortinet FortiNAC-F>=7.2.0<=7.2.6
Fortinet FortiRecorder>=7.2.0<=7.2.1
Fortinet FortiRecorder>=7.0.0<=7.0.4
Fortinet FortiRecorder>=6.4.0<=6.4.5
Fortinet FortiRecorder>=6.0.0<=6.0.12
Fortinet FortiSandbox>=4.4.0<=4.4.6
Fortinet FortiSandbox>=4.2.0<=4.2.7
Fortinet FortiSandbox>=4.0.0<=4.0.5
Fortinet FortiSandbox>=3.2
Fortinet FortiSwitch>=7.4.0<=7.4.3
Fortinet FortiSwitch>=7.2.0<=7.2.8
Fortinet FortiVoice>=7.0.0<=7.0.2
Fortinet FortiVoice>=6.4.0<=6.4.9
Fortinet FortiWLC>=8.6.0<=8.6.7
Fortinet FortiWeb=.
Fortinet FortiWeb>=7.4.0<=7.4.4
Fortinet FortiWeb>=7.2.0<=7.2.9
redhat/openssh 8.7p1<38
38
alpine/openssh>=8.6<9.1_p1-r6
9.1_p1-r6
alpine/openssh>=8.6<9.3_p2-r2
9.3_p2-r2
alpine/openssh>=8.6<9.6_p1-r1
9.6_p1-r1
alpine/openssh>=8.6<9.7_p1-r4
9.7_p1-r4
alpine/openssh>=8.6<9.8_p1-r0
9.8_p1-r0
alpine/openssh>=8.6<9.8_p1-r0
9.8_p1-r0
alpine/openssh>=8.6<9.8_p1-r0
9.8_p1-r0
alpine/openssh>=8.6<9.8_p1-r0
9.8_p1-r0
All of the following
SonicWall Sma 6200 Firmware
SonicWall Sma 6200
All of the following
SonicWall Sma 7200 Firmware
SonicWall Sma 7200
Arista EOS>=4.32.0<=4.32.1f
Canonical Ubuntu Linux=23.10
Canonical Ubuntu Linux=24.04
AlmaLinux Almalinux=9.0
All of the following
SonicWall Sma 6210 Firmware
SonicWall Sma 6210
All of the following
SonicWall Sma 7210 Firmware
SonicWall Sma 7210
All of the following
SonicWall Sma 8200v Firmware
SonicWall Sma 8200v
All of the following
SonicWall Sra Ex 7000 Firmware
SonicWall Sra Ex 7000
All of the following
NetApp A1k Firmware
NetApp A1k
All of the following
NetApp A70 Firmware
NetApp A70
All of the following
NetApp A90 Firmware
NetApp A90
All of the following
NetApp A700s Firmware
NetApp A700s
All of the following
NetApp 8300 Firmware
NetApp 8300
All of the following
NetApp 8700 Firmware
NetApp 8700
All of the following
NetApp A400 Firmware
NetApp A400
All of the following
NetApp C400 Firmware
NetApp C400
All of the following
NetApp A250 Firmware
NetApp A250
All of the following
NetApp 500f Firmware
NetApp 500f
All of the following
NetApp C250 Firmware
NetApp C250
All of the following
NetApp A800 Firmware
NetApp A800
All of the following
NetApp C800 Firmware
NetApp C800
All of the following
NetApp A900 Firmware
NetApp A900
All of the following
NetApp A9500 Firmware
NetApp A9500
All of the following
NetApp C190 Firmware
NetApp C190
All of the following
NetApp A150 Firmware
NetApp A150
All of the following
NetApp A220 Firmware
NetApp A220
All of the following
NetApp Fas2720 Firmware
NetApp Fas2720
All of the following
NetApp Fas2750 Firmware
NetApp Fas2750
All of the following
NetApp Fas2820 Firmware
NetApp Fas2820
All of the following
NetApp Bootstrap Os
NetApp Hci Compute Node
Apple macOS>=12.0<12.7.6
Apple macOS>=13.0<13.6.8
Apple macOS>=14.0<14.6
OpenBSD OpenSSH<4.4
OpenBSD OpenSSH>=8.6<=9.8
OpenBSD OpenSSH=4.4
OpenBSD OpenSSH=8.5-p1
OpenBSD OpenSSH=8.6
redhat OpenShift Container Platform=4.0
redhat Enterprise Linux=9.0
redhat Enterprise Linux Eus=9.4
redhat Enterprise Linux For Arm 64=9.0_aarch64
redhat Enterprise Linux For Arm 64 Eus=9.4_aarch64
redhat Enterprise Linux For Ibm Z Systems=9.0_s390x
redhat Enterprise Linux For Ibm Z Systems Eus=9.4_s390x
redhat Enterprise Linux For Power Little Endian=9.0_ppc64le
redhat Enterprise Linux For Power Little Endian Eus=9.4_ppc64le
redhat Enterprise Linux Server Aus=9.4
SUSE Linux Enterprise Micro=6.0
Debian Debian Linux=12.0
Canonical Ubuntu Linux=22.04
Canonical Ubuntu Linux=22.10
Canonical Ubuntu Linux=23.04
Amazon Amazon Linux=2023.0
NetApp Active Iq Unified Manager Vmware Vsphere
NetApp E-Series SANtricity OS Controller>=11.0.0<=11.70.2
NetApp Ontap=9
NetApp ONTAP Select Deploy administration utility
NetApp Ontap Tools Vmware Vsphere=9
NetApp Ontap Tools Vmware Vsphere=10
FreeBSD FreeBSD=13.2
FreeBSD FreeBSD=13.2-p1
FreeBSD FreeBSD=13.2-p10
FreeBSD FreeBSD=13.2-p11
FreeBSD FreeBSD=13.2-p2
FreeBSD FreeBSD=13.2-p3
FreeBSD FreeBSD=13.2-p4
FreeBSD FreeBSD=13.2-p5
FreeBSD FreeBSD=13.2-p6
FreeBSD FreeBSD=13.2-p7
FreeBSD FreeBSD=13.2-p8
FreeBSD FreeBSD=13.2-p9
FreeBSD FreeBSD=13.3
FreeBSD FreeBSD=13.3-p1
FreeBSD FreeBSD=13.3-p2
FreeBSD FreeBSD=13.3-p3
FreeBSD FreeBSD=14.0
FreeBSD FreeBSD=14.0-beta5
FreeBSD FreeBSD=14.0-p1
FreeBSD FreeBSD=14.0-p2
FreeBSD FreeBSD=14.0-p3
FreeBSD FreeBSD=14.0-p4
FreeBSD FreeBSD=14.0-p5
FreeBSD FreeBSD=14.0-p6
FreeBSD FreeBSD=14.0-p7
FreeBSD FreeBSD=14.0-rc3
FreeBSD FreeBSD=14.0-rc4-p1
FreeBSD FreeBSD=14.1
FreeBSD FreeBSD=14.1-p1
NetBSD NetBSD<=10.0.0
debian/openssh
1:9.2p1-2+deb12u31:9.7p1-7
debian/openssh<1:9.2p1-2+deb12u3
1:9.2p1-2+deb12u3
debian/openssh<1:9.7p1-7
1:9.7p1-7
debian/openssh<1:9.7p1-7
1:9.7p1-7
ubuntu/openssh<1:8.9p1-3ubuntu0.10
1:8.9p1-3ubuntu0.10
ubuntu/openssh<1:9.6p1-3ubuntu13.3
1:9.6p1-3ubuntu13.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apple macOS to a version that resolves this vulnerability.

    Fixed in 14.6
  2. Upgrade

    Upgrade macOS to a version that resolves this vulnerability.

    Fixed in 12.7.6
  3. Upgrade

    Upgrade macOS Ventura to a version that resolves this vulnerability.

    Fixed in 13.6.8
  4. Upgrade

    Upgrade redhat/openssh 8.7p1 to a version that resolves this vulnerability.

    Fixed in 38
  5. Upgrade

    Upgrade alpine/openssh to a version that resolves this vulnerability.

    Fixed in 9.1_p1-r6
  6. Upgrade

    Upgrade alpine/openssh to a version that resolves this vulnerability.

    Fixed in 9.3_p2-r2
  7. Upgrade

    Upgrade alpine/openssh to a version that resolves this vulnerability.

    Fixed in 9.6_p1-r1
  8. Upgrade

    Upgrade alpine/openssh to a version that resolves this vulnerability.

    Fixed in 9.7_p1-r4
  9. Upgrade

    Upgrade alpine/openssh to a version that resolves this vulnerability.

    Fixed in 9.8_p1-r0
  10. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 14.6
  11. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 12.7.6
  12. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 13.6.8
  13. Upgrade

    Upgrade debian/openssh to a version that resolves this vulnerability.

    Fixed in 1:9.2p1-2+deb12u3Fixed in 1:9.7p1-7
  14. Upgrade

    Upgrade debian/openssh to a version that resolves this vulnerability.

    Fixed in 1:9.2p1-2+deb12u3
  15. Upgrade

    Upgrade debian/openssh to a version that resolves this vulnerability.

    Fixed in 1:9.7p1-7
  16. Upgrade

    Upgrade ubuntu/openssh to a version that resolves this vulnerability.

    Fixed in 1:8.9p1-3ubuntu0.10
  17. Upgrade

    Upgrade ubuntu/openssh to a version that resolves this vulnerability.

    Fixed in 1:9.6p1-3ubuntu13.3
  18. Configuration

    Set LoginGraceTime to 0 in /etc/ssh/sshd_config to make sshd safe from this vulnerability.

    OpenSSH sshd LoginGraceTime = 0

Event History

Jun 27, 2024
Data Sourced
via Red Hat·03:50 PM
DescriptionSeverityAffected Software
Jul 1, 2024
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·12:00 AM
DescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
Updated
via Ubuntu·12:00 AM
Affected Software
Updated
via Ubuntu·12:00 AM
DescriptionAffected Software
Exploit Published
via GitHub·10:42 AM
CVE Published
via MITRE·12:37 PM
Data Sourced
via MITRE·12:37 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeakness
News Published
via BleepingComputer·01:37 PM
News Published
via The Register·02:01 PM
Advisory Published
via F5·06:06 PM
Data Sourced
via F5·06:06 PM
DescriptionSeverityWeaknessAffected Software
Jul 2, 2024
News Published
via ZDNet·01:02 PM
News Published
via ZDNet·01:02 PM
Jul 3, 2024
Updated
via NVD·10:15 PM
Description
Jul 4, 2024
Updated
via MITRE·09:22 AM
Description
Jul 5, 2024
Data Sourced
via NVD·03:53 PM
RemedyAffected Software
Updated
via NVD·03:53 PM
SeverityWeakness
Updated
via NVD·11:15 PM
Affected Software
Jul 6, 2024
Updated
via NVD·05:15 AM
Affected Software
Jul 8, 2024
Updated
via NVD·06:15 PM
Affected Software
Updated
via NVD·11:15 PM
Affected Software
Jul 9, 2024
Advisory Published
via FortiGuard·12:00 AM
Data Sourced
via FortiGuard·12:00 AM
DescriptionSeverityWeaknessAffected Software
Updated
via FortiGuard·12:00 AM
DescriptionSeverityWeaknessAffected Software
Updated
via FortiGuard·12:00 AM
Affected Software
Updated
via FortiGuard·12:00 AM
DescriptionAffected Software
Updated
via NVD·06:15 AM
Affected Software
Updated
via NVD·12:15 PM
Affected Software
Jul 10, 2024
Updated
via NVD·01:15 AM
Affected Software
Updated
via NVD·04:15 PM
Affected Software
Updated
via NVD·05:15 PM
Affected Software
Updated
via NVD·06:15 PM
Affected Software
Updated
via NVD·10:15 PM
Affected Software
Updated
via NVD·11:15 PM
Affected Software
Jul 11, 2024
Updated
via NVD·01:15 AM
Affected Software
Updated
via NVD·04:15 AM
Affected Software
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·07:00 AM
Affected Software
Updated
via NVD·02:15 PM
Affected Software
News Published
via The Register·07:13 PM
Updated
via NVD·08:15 PM
Affected Software
Jul 14, 2024
Updated
via NVD·05:15 PM
DescriptionAffected Software
Jul 16, 2024
Updated
via NVD·10:15 PM
Affected Software
Jul 17, 2024
Updated
via MITRE·04:26 AM
Description
Updated
via NVD·05:15 AM
Affected Software
Updated
via NVD·05:15 AM
DescriptionAffected Software
Updated
via Red Hat·05:17 AM
Affected Software
Jul 18, 2024
Updated
via NVD·10:15 PM
Affected Software
Jul 23, 2024
Updated
via NVD·09:15 PM
Affected Software
Updated
via NVD·10:15 PM
Affected Software
Jul 24, 2024
Advisory Published
via F5·05:22 PM
Updated
via NVD·06:07 PM
Affected Software
Jul 25, 2024
Event
via FIRST·12:00 AM
Jul 28, 2024
Updated
via NVD·09:15 PM
Affected Software
Jul 29, 2024
Data Sourced
via Apple·12:00 AM
DescriptionWeaknessAffected Software
Updated
via Apple·12:00 AM
Affected Software
Updated
via NVD·09:15 AM
Affected Software
Updated
via NVD·10:15 PM
Affected Software
Jul 30, 2024
Updated
via NVD·01:15 AM
Affected Software
Updated
via NVD·02:15 AM
Affected Software
Sep 14, 2024
Updated
via NVD·03:15 AM
Affected Software
Oct 15, 2024
Updated
via Apple·12:00 AM
Affected Software
Nov 13, 2024
Updated
via Apple·12:00 AM
Affected Software
Feb 18, 2025
News Published
via The Hacker News·03:34 PM
Mar 20, 2025
Updated
via Apple·12:00 AM
Affected Software
Apr 24, 2025
Updated
via NVD·07:15 PM
Affected Software
Aug 26, 2025
Updated
via Ubuntu·12:00 AM
Description
Sep 30, 2025
Updated
via NVD·01:52 PM
Affected Software
Aug 13, 2026
News Published
via The Hacker News·03:00 PM
Oct 29, 2026
Data Sourced
via OSV·10:45 AM
Weakness

Frequently Asked Questions

1

What is the severity of CVE-2024-6387?

CVE-2024-6387 is considered a critical vulnerability due to the potential for remote code execution in OpenSSH.

2

How do I fix CVE-2024-6387?

To mitigate CVE-2024-6387, update OpenSSH to the latest version provided by your vendor.

3

Which OpenSSH versions are affected by CVE-2024-6387?

CVE-2024-6387 affects various OpenSSH versions, but specifically those versions before the fixed releases should be considered vulnerable.

4

What types of systems are impacted by CVE-2024-6387?

CVE-2024-6387 impacts systems running vulnerable versions of OpenSSH, including servers and devices using CBL Mariner, Fortinet products, and various Linux distributions.

5

Can CVE-2024-6387 be exploited remotely?

Yes, CVE-2024-6387 can be exploited by an unauthenticated remote attacker under specific conditions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203