CVSS 3.1
8.1 highCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HHigh (8.1). EPSS 99.5% estimated probability of exploitation activity in the next 30 days.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:HExplain CVE-2024-6387 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-6387?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-6387?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-6387 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Fixed in |
|---|---|
| Red Hat Enterprise Linux 9 | 0:8.7p1-38.el9_4.1 |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | 0:8.7p1-12.el9_0.1 |
| Red Hat Enterprise Linux 9.2 Extended Update Support | 0:8.7p1-30.el9_2.4 |
| Red Hat OpenShift Container Platform 4.13 | 413.92.202407091321-0 |
| Red Hat OpenShift Container Platform 4.14 | 414.92.202407091253-0 |
| Red Hat OpenShift Container Platform 4.15 | 415.92.202407091355-0 |
| Red Hat OpenShift Container Platform 4.16 | 416.94.202407081958-0 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | openssh | 1:9.2p1-2+deb12u3 | DEBIAN-CVE-2024-6387 DSA-5724-1 |
| Debian | 13, 14 | openssh | 1:9.7p1-7 | DEBIAN-CVE-2024-6387 |
| Ubuntu | 22.04:LTS | openssh | 1:8.9p1-3ubuntu0.10 | UBUNTU-CVE-2024-6387 USN-6859-1 |
| Ubuntu | 24.04:LTS | openssh | 1:9.6p1-3ubuntu13.3 | UBUNTU-CVE-2024-6387 USN-6859-1 |
| Red Hat | enterprise_linux:9::appstream | openssh-askpass, openssh-debuginfo, openssh-debugsource and 5 more | 0:8.7p1-38.el9_4.1 | RHSA-2024:4312 |
| Red Hat | enterprise_linux:9::appstream | pam_ssh_agent_auth, pam_ssh_agent_auth-debuginfo | 0:0.10.4-5.38.el9_4.1 | RHSA-2024:4312 |
| Red Hat | enterprise_linux:9::baseos | openssh, openssh-keycat, openssh-server and 8 more | 0:8.7p1-38.el9_4.1 | RHSA-2024:4312 |
| Red Hat | enterprise_linux:9::baseos | pam_ssh_agent_auth-debuginfo | 0:0.10.4-5.38.el9_4.1 | RHSA-2024:4312 |
| Red Hat | rhel_e4s:9.0::appstream | openssh-askpass, openssh-debuginfo, openssh-debugsource and 4 more | 0:8.7p1-12.el9_0.1 | RHSA-2024:4389 |
| Red Hat | rhel_e4s:9.0::appstream | pam_ssh_agent_auth, pam_ssh_agent_auth-debuginfo | 0:0.10.4-4.12.el9_0.1 | RHSA-2024:4389 |
| Red Hat | rhel_e4s:9.0::baseos | openssh, openssh-keycat, openssh-server and 7 more | 0:8.7p1-12.el9_0.1 | RHSA-2024:4389 |
| Red Hat | rhel_e4s:9.0::baseos | pam_ssh_agent_auth-debuginfo | 0:0.10.4-4.12.el9_0.1 | RHSA-2024:4389 |
| Red Hat | rhel_eus:9.2::appstream | openssh-askpass, openssh-debuginfo, openssh-debugsource and 5 more | 0:8.7p1-30.el9_2.4 | RHSA-2024:4340 |
| Red Hat | rhel_eus:9.2::appstream | pam_ssh_agent_auth, pam_ssh_agent_auth-debuginfo | 0:0.10.4-5.30.el9_2.4 | RHSA-2024:4340 |
| Red Hat | rhel_eus:9.2::baseos | openssh, openssh-keycat, openssh-server and 8 more | 0:8.7p1-30.el9_2.4 | RHSA-2024:4340 |
| Red Hat | rhel_eus:9.2::baseos | pam_ssh_agent_auth-debuginfo | 0:0.10.4-5.30.el9_2.4 | RHSA-2024:4340 |
| SUSE | Linux Enterprise Module for Basesystem 15 SP6 | openssh | 9.6p1-150600.6.3.1 | SUSE-SU-2024:2275-1 |
| SUSE | Linux Enterprise Module for Desktop Applications 15 SP6 | openssh-askpass-gnome | 9.6p1-150600.6.3.1 | SUSE-SU-2024:2275-1 |
| SUSE | Linux Micro 6.0 | openssh | 9.6p1-2.1 | SUSE-SU-2025:20009-1 |
| openSUSE | Leap 15.6 | openssh, openssh-askpass-gnome | 9.6p1-150600.6.3.1 | SUSE-SU-2024:2275-1 SUSE-SU-2024:2275-2 |
| openSUSE | Tumbleweed | openssh | 9.6p1-10.1 | openSUSE-SU-2024:14088-1 |
| AlmaLinux | 9 | openssh, openssh-keycat, openssh-server and 2 more | 8.7p1-38.el9_4.1 | ALSA-2024:4312 |
| AlmaLinux | 9 | pam_ssh_agent_auth | 0.10.4-5.38.el9_4.1 | ALSA-2024:4312 |
| Alpine | v3.17 | openssh | 9.1_p1-r6 | ALPINE-CVE-2024-6387 |
| Alpine | v3.18 | openssh | 9.3_p2-r2 | ALPINE-CVE-2024-6387 |
| Alpine | v3.19 | openssh | 9.6_p1-r1 | ALPINE-CVE-2024-6387 |
| Alpine | v3.20 | openssh | 9.7_p1-r4 | ALPINE-CVE-2024-6387 |
| Alpine | v3.21, v3.22, v3.23 and 1 more | openssh | 9.8_p1-r0 | ALPINE-CVE-2024-6387 |
| Azure Linux | 2 | openssh | 8.9p1-6 | AZL-43030 |
| Azure Linux | 3 | openssh | 9.8p1-1 | AZL-43024 |
| Alpaquita | 23 | openssh | 9.1_p1-r8 | BELL-CVE-2024-6387 |
| Alpaquita | stream | openssh | 9.8_p1-r0 | BELL-CVE-2024-6387 |
| BellSoft Hardened Containers | 23 | openssh | 9.1_p1-r8 | BELL-CVE-2024-6387 |
| BellSoft Hardened Containers | stream | openssh | 9.8_p1-r0 | BELL-CVE-2024-6387 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.
Red Hat rates this Important.
Red Hat rates the severity of this flaw as Important for both Red Hat Enterprise Linux (RHEL) and OpenShift Container Platform (OCP). The most significant risk is Remote Code Execution, however this outcome requires significant resources to exploit. If mitigations are put in place, the consequences of exploitation are reduced. An attacker would then only be able to impact availability of the OpenSSH service.
The main factor preventing a higher impact rating is an unpredictable race condition. All actively supported versions of RHEL (and by extension OCP) have ExecShield (aka ASLR) enabled by default and utilize NX technology, reducing reliability of the attack. Attackers are forced to retry the attack thousands of times. This generates significant noise providing defenders with an opportunity to detect and disrupt potential attacks.
RHEL 9 is the only affected version. RHEL 6, 7, and 8 all utilize an older version of OpenSSH which was never affected by this vulnerability.
The affected versions of OCP are 4.13, 4.14, 4.15, and 4.16 as they include the affected version of OpenSSH in the underlying operating system Red Hat CoreOS (RHCOS). 4.12 and earlier versions of OCP are not affected.
The below process can protect against a Remote Code Execution attack by disabling the LoginGraceTime parameter on Red Hat Enterprise Linux 9. However, the sshd server is still vulnerable to a Denial of Service if an attacker exhausts all the connections.
1) As root user, open the /etc/ssh/sshd_config
2) Add or edit the parameter configuration:
~~~
LoginGraceTime 0
~~~
3) Save and close the file
4) Restart the sshd daemon:
~~~
systemctl restart sshd.service
~~~
Setting LoginGraceTime to 0 disables the SSHD server's ability to drop connections if authentication is not completed within the specified timeout. If this mitigation is implemented, it is highly recommended to use a tool like 'fail2ban' alongside a firewall to monitor log files and manage connections appropriately.
If any of the mitigations mentioned above is used, please note that the removal of LoginGraceTime parameter from sshd_config is not automatic when the updated package is installed.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 9 | openssh-0:8.7p1-38.el9_4.1 | Fixed 2024-07-03 | RHSA-2024:4312 |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | openssh-0:8.7p1-12.el9_0.1 | Fixed 2024-07-08 | RHSA-2024:4389 |
| Red Hat Enterprise Linux 9.2 Extended Update Support | openssh-0:8.7p1-30.el9_2.4 | Fixed 2024-07-05 | RHSA-2024:4340 |
| Red Hat OpenShift Container Platform 4.13 | openshift/ose-rhel-coreos-9:413.92.202407091321-0 | Fixed 2024-07-17 | RHSA-2024:4484 |
| Red Hat OpenShift Container Platform 4.14 | openshift/ose-rhel-coreos-9:414.92.202407091253-0 | Fixed 2024-07-17 | RHSA-2024:4479 |
| Red Hat OpenShift Container Platform 4.15 | openshift/ose-rhel-coreos-9:415.92.202407091355-0 | Fixed 2024-07-18 | RHSA-2024:4474 |
| Red Hat OpenShift Container Platform 4.16 | openshift/ose-rhel-coreos-9:416.94.202407081958-0 | Fixed 2024-07-16 | RHSA-2024:4469 |
| Red Hat Ceph Storage 5 | openssh | Not affected | |
| Red Hat Ceph Storage 6 | openssh | Not affected | |
| Red Hat Ceph Storage 7 | openssh | Not affected | |
| Red Hat Enterprise Linux 10 | openssh | Not affected | |
| Red Hat Enterprise Linux 6 | openssh | Not affected | |
| Red Hat Enterprise Linux 7 | openssh | Not affected | |
| Red Hat Enterprise Linux 8 | openssh | Not affected | |
| Red Hat OpenShift Container Platform 4 | openshift/ose-rhel-coreos-8 | Will not fix |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-6387.
| Advisory | Title | Published | Sectors | Affected | Fixed |
|---|---|---|---|---|---|
| ICSA-25-162-05 | Siemens SIMATIC S7-1500 CPU family | 2025-06-10 | Energy | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0), SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0), SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) and 2 more | none listed |
| ICSA-25-100-09 | ABB Arctic Wireless Gateways | 2025-04-07 | Energy | Arctic ARG600 with firmware version>=3.4.10 to <=3.4.13, Arctic ARC600 with firmware version>=3.4.10 to <=3.4.13, Arctic ARR600 with firmware version>=3.4.10 to <=3.4.13 and 1 more | none listed |
| ICSA-24-256-15 | Siemens Industrial Products | 2024-09-10 | Critical Manufacturing | Industrial Edge Management OS (IEM-OS), SINAMICS IIoT module, SINEMA Remote Connect Server and 1 more | none listed |
From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.
Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.
Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.