{"schema_version":"1.9.0","id":"CVE-2024-6387","published":"2024-07-01T12:37:25.431Z","modified":"2026-09-11T03:48:20.270789547Z","related":["ALSA-2024:4312","SUSE-SU-2024:2275-1","SUSE-SU-2024:2275-2","SUSE-SU-2025:20009-1","openSUSE-SU-2024:14088-1"],"summary":"Openssh: regresshion - race condition in ssh allows rce/dos","details":"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":[{"ranges":[{"type":"GIT","repo":"https://github.com/openela-main/openssh","events":[{"introduced":"0"},{"fixed":"e1f438970e5a337a17070a637c1b9e19697cad09"}],"database_specific":{"source":"REFERENCES"}},{"type":"GIT","repo":"https://github.com/openssh/openssh-portable","events":[{"introduced":"0"},{"fixed":"6518797401f2f6951e7b3f76d8d9e75876be4361"},{"introduced":"e86968280e358e62649d268d41f698d64d0dc9fa"},{"last_affected":"6849957945754e6551e515f41e8cf3937cda222d"},{"last_affected":"e86968280e358e62649d268d41f698d64d0dc9fa"},{"introduced":"6518797401f2f6951e7b3f76d8d9e75876be4361"},{"last_affected":"d2afd717e62d76bb41ab5f3ab4ce6f885c8edc98"}],"database_specific":{"cpe":["cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:*","cpe:2.3:a:openbsd:openssh:8.6:-:*:*:*:*:*:*","cpe:2.3:a:openbsd:openssh:4.4:-:*:*:*:*:*:*","cpe:2.3:a:openbsd:openssh:8.5:p1:*:*:*:*:*:*"],"extracted_events":[{"introduced":"0"},{"fixed":"4.4"},{"introduced":"8.6"},{"last_affected":"9.8"},{"introduced":"8.6-NA"},{"last_affected":"8.6-NA"},{"introduced":"4.4-NA"},{"last_affected":"4.4-NA"},{"introduced":"8.5-p1"},{"last_affected":"8.5-p1"}],"source":["CPE_RANGE","CPE_STRING"]}},{"type":"GIT","repo":"https://github.com/powershell/win32-openssh","events":[{"introduced":"72e1c0ac8143b4e286850483e34aa5532bd9fb0c"},{"last_affected":"72e1c0ac8143b4e286850483e34aa5532bd9fb0c"}],"database_specific":{"cpe":"cpe:2.3:a:netapp:ontap_tools:10:*:*:*:*:vmware_vsphere:*:*","extracted_events":[{"introduced":"10"},{"last_affected":"10"}],"source":"CPE_STRING"}},{"type":"GIT","repo":"https://github.com/rapier1/hpn-ssh","events":[{"introduced":"2cd1b33995f0d2ba260689f75bea021af4022f61"},{"last_affected":"452d3ec07c08dcd3082506b22d1ecb1710a23991"}],"database_specific":{"cpe":["cpe:2.3:o:almalinux:almalinux:9.0:-:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*","cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_eus:9.4:*:*:*:*:*:*:*","cpe:2.3:o:redhat:enterprise_linux_server_aus:9.4:*:*:*:*:*:*:*","cpe:2.3:o:suse:linux_enterprise_micro:6.0:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"8.5p1"},{"last_affected":"9.7p1"},{"introduced":"9.0-NA"},{"last_affected":"9.0-NA"},{"introduced":"9.0"},{"last_affected":"9.0"},{"introduced":"4.0"},{"last_affected":"4.0"},{"introduced":"9.4"},{"last_affected":"9.4"},{"introduced":"6.0"},{"last_affected":"6.0"}],"source":["AFFECTED_FIELD","CPE_STRING"]}}],"versions":["10","4.0","4.4-NA","6.0","8.5-p1","9.0-NA","9.4","imports/el9/openssh-8.7p1-38.el9","imports/el9/openssh-8.7p1-34.el9_3.3","imports/el9/openssh-8.7p1-34.el9","imports/el9/openssh-8.7p1-30.el9_2","V_9_5_P1","V_9_2_P1","V_9_8_P1","V_9_7_P1","V_9_6_P1","V_9_3_P1","V_9_1_P1","V_9_0_P1","V_8_9_P1","V_8_8_P1","V_8_7_P1","V_8_6_P1","V_8_5_P1","V_8_4_P1","V_8_2_P1","V_8_1_P1","V_8_0_P1","V_7_9_P1","V_7_8_P1","V_7_7_P1","V_7_6_P1","V_7_5_P1","V_7_4_P1","V_7_3_P1","V_7_2_P1","V_7_1_P1","V_7_0_P1","V_6_9_P1","V_6_8_P1","V_6_6_P1","V_6_5_P1","V_6_2_P1","V_6_1_P1","V_6_0_P1","V_5_7_P1","V_5_5_P1","V_5_2_P1","V_5_1_P1","V_5_0_P1","V_4_2_P1","V_3_9_P1","V_3_8_P1","AFTER_KRB5_GSSAPI_MERGE","BEFORE_KRB5_GSSAPI_MERGE","POST_KRB4_REMOVAL","PRE_KRB4_REMOVAL","AFTER_FREEBSD_PAM_MERGE","BEFORE_FREEBSD_PAM_MERGE","V_3_6_1_P1","V_3_4_P1","V_3_2_2_P1","PRE_SW_KRBV","V_3_1_P1","V_3_0_1_P1","V_3_0_P1","V_2_5_2_P1","V_2_5_1_P2","V_2_5_1_P1","V_2_5_0_P1","PRE-REORDER","V_2_3_0_P1","PRE_CYGWIN_MERGE","V_2_2_0_P1","V_2_1_1_P4","V_2_1_1_P3","ABOUT_TO_ADD_INET_ATON","V_2_1_1_P2","V_2_1_1_P1","PRE_NEW_LOGIN_CODE","V_2_1_0_P3","V_2_1_0_P2","V_2_1_0_P1","V_2_1_0","V_2_0_0_BETA2","V_2_0_0_BETA1","V_2_0_0_TEST1","V_1_2_3_TEST3","V_1_2_3_TEST2","V_1_2_3_TEST1","V_1_2_3","V_1_2_3_PRE5","V_1_2_3_PRE4","V_1_2_3_PRE3","V_1_2_3_PRE2","V_1_2_3_PRE1","V_1_2_2_P1","V_1_2_2","V_1_2_2_PRE29","V_1_2_2_PRE28","V_1_2_1_PRE27","V_1_2_1_PRE26","PRE_IPV6","V_1_2_1_PRE25","V_1_2_1_PRE24","V_1_2_1_PRE23","V_1_2_1_PRE22","PRE_FIXPATHS_INTEGRATION","V_1_2_1_PRE21","V_1_2_1_PRE20","V_1_2_1_PRE19","PRE_HPUX_INTEGRATION","V_1_2_1_PRE18","V_1_2PRE17","V_1_2_PRE16","V_1_2_PRE15","V_1_2_PRE14","V_1_2_PRE13","V_1_2_PRE12","V_1_2_PRE11","V_1_2_PRE10","V_1_2_PRE9","V_1_2_PRE8","V_1_2_PRE7","V_1_2_PRE6","V_1_2_PRE5","V_1_2_PRE4","PRE_DAN_PATCH_MERGE","10_13_2015"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-6387.json"}}],"references":[{"type":"WEB","url":"http://seclists.org/fulldisclosure/2024/Jul/18"},{"type":"WEB","url":"http://seclists.org/fulldisclosure/2024/Jul/19"},{"type":"WEB","url":"http://seclists.org/fulldisclosure/2024/Jul/20"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/01/12"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/01/13"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/02/1"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/03/1"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/03/11"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/03/2"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/03/3"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/03/4"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/03/5"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/04/1"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/04/2"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/08/2"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/08/3"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/09/2"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/09/5"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/10/1"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/10/2"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/10/3"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/10/4"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/10/6"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/11/1"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/11/3"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/23/4"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/23/6"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/28/2"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2024/07/28/3"},{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://archlinux.org/news/the-sshd-service-needs-to-be-restarted-after-upgrading-to-openssh-98p1/"},{"type":"WEB","url":"https://arstechnica.com/security/2024/07/regresshion-vulnerability-in-openssh-gives-attackers-root-on-linux/"},{"type":"WEB","url":"https://catalog.redhat.com/software/containers/"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-446545.html"},{"type":"WEB","url":"https://explore.alas.aws.amazon.com/CVE-2024-6387.html"},{"type":"WEB","url":"https://forum.vmssoftware.com/viewtopic.php?f=8&t=9132"},{"type":"WEB","url":"https://github.com/PowerShell/Win32-OpenSSH/discussions/2248"},{"type":"WEB","url":"https://lists.almalinux.org/archives/list/announce@lists.almalinux.org/thread/23BF5BMGFVEVUI2WNVAGMLKT557EU7VY/"},{"type":"WEB","url":"https://lists.mindrot.org/pipermail/openssh-unix-announce/2024-July/000158.html"},{"type":"WEB","url":"https://lists.mindrot.org/pipermail/openssh-unix-dev/2024-July/041431.html"},{"type":"WEB","url":"https://news.ycombinator.com/item?id=40843778"},{"type":"WEB","url":"https://packetstorm.news/files/id/190587/"},{"type":"WEB","url":"https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0010"},{"type":"WEB","url":"https://security-tracker.debian.org/tracker/CVE-2024-6387"},{"type":"WEB","url":"https://sig-security.rocky.page/issues/CVE-2024-6387/"},{"type":"WEB","url":"https://stackdiary.com/openssh-race-condition-in-sshd-allows-remote-code-execution/"},{"type":"WEB","url":"https://support.apple.com/kb/HT214118"},{"type":"WEB","url":"https://support.apple.com/kb/HT214119"},{"type":"WEB","url":"https://support.apple.com/kb/HT214120"},{"type":"WEB","url":"https://ubuntu.com/security/CVE-2024-6387"},{"type":"WEB","url":"https://www.exploit-db.com/exploits/52269"},{"type":"WEB","url":"https://www.openssh.com/"},{"type":"WEB","url":"https://www.openssh.com/txt/release-9.8"},{"type":"WEB","url":"https://www.qualys.com/2024/07/01/cve-2024-6387/regresshion.txt"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2024-6387.html"},{"type":"WEB","url":"https://www.theregister.com/2024/07/01/regresshion_openssh/"},{"type":"WEB","url":"https://www.vicarius.io/vsociety/posts/regresshion-an-openssh-regression-error-cve-2024-6387"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4312"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4340"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4389"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4469"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4474"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4479"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4484"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2024-6387"},{"type":"ADVISORY","url":"https://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2024-002.txt.asc"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6387.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6387"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20240701-0001/"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6859-1"},{"type":"ADVISORY","url":"https://www.arista.com/en/support/advisories-notices/security-advisory/19904-security-advisory-0100"},{"type":"ADVISORY","url":"https://www.freebsd.org/security/advisories/FreeBSD-SA-24:04.openssh.asc"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2294604"},{"type":"REPORT","url":"https://github.com/AlmaLinux/updates/issues/629"},{"type":"REPORT","url":"https://github.com/Azure/AKS/issues/4379"},{"type":"REPORT","url":"https://github.com/PowerShell/Win32-OpenSSH/issues/2249"},{"type":"REPORT","url":"https://github.com/microsoft/azurelinux/issues/9555"},{"type":"REPORT","url":"https://github.com/oracle/oracle-linux/issues/149"},{"type":"REPORT","url":"https://github.com/rapier1/hpn-ssh/issues/87"},{"type":"FIX","url":"https://github.com/openela-main/openssh/commit/e1f438970e5a337a17070a637c1b9e19697cad09"},{"type":"PACKAGE","url":"https://anongit.mindrot.org/openssh.git"},{"type":"PACKAGE","url":"https://github.com/zgzhang/cve-2024-6387-poc"},{"type":"ARTICLE","url":"https://blog.qualys.com/vulnerabilities-threat-research/2024/07/01/regresshion-remote-unauthenticated-code-execution-vulnerability-in-openssh-server"},{"type":"ARTICLE","url":"https://santandersecurityresearch.github.io/blog/sshing_the_masses.html"},{"type":"ARTICLE","url":"https://www.akamai.com/blog/security-research/2024-openssh-vulnerability-regression-what-to-know-and-do"},{"type":"ARTICLE","url":"https://www.splunk.com/en_us/blog/security/cve-2024-6387-regresshion-vulnerability.html"}],"database_specific":{"cna_assigner":"redhat","cwe_ids":["CWE-364"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6387.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}