{"id":"CVE-2024-6387","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.","modified":"2026-04-16T04:38:03.474214683Z","published":"2024-07-01T13:15:06.467Z","related":["ALSA-2024:4312","SUSE-SU-2024:2275-1","SUSE-SU-2024:2275-2","SUSE-SU-2025:20009-1","openSUSE-SU-2024:14088-1"],"references":[{"type":"WEB","url":"https://packetstorm.news/files/id/190587/"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2024-6387"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4469"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4312"},{"type":"ADVISORY","url":"https://blog.qualys.com/vulnerabilities-threat-research/2024/07/01/regresshion-remote-unauthenticated-code-execution-vulnerability-in-openssh-server"},{"type":"ADVISORY","url":"https://lists.almalinux.org/archives/list/announce@lists.almalinux.org/thread/23BF5BMGFVEVUI2WNVAGMLKT557EU7VY/"},{"type":"ADVISORY","url":"https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0010"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2024-6387"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20240701-0001/"},{"type":"ADVISORY","url":"https://www.akamai.com/blog/security-research/2024-openssh-vulnerability-regression-what-to-know-and-do"},{"type":"ADVISORY","url":"https://www.suse.com/security/cve/CVE-2024-6387.html"},{"type":"ADVISORY","url":"https://www.splunk.com/en_us/blog/security/cve-2024-6387-regresshion-vulnerability.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4340"},{"type":"ADVISORY","url":"https://arstechnica.com/security/2024/07/regresshion-vulnerability-in-openssh-gives-attackers-root-on-linux/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4484"},{"type":"ADVISORY","url":"https://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2024-002.txt.asc"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT214120"},{"type":"ADVISORY","url":"https://www.arista.com/en/support/advisories-notices/security-advisory/19904-security-advisory-0100"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4389"},{"type":"ADVISORY","url":"https://explore.alas.aws.amazon.com/CVE-2024-6387.html"},{"type":"ADVISORY","url":"https://lists.mindrot.org/pipermail/openssh-unix-announce/2024-July/000158.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4479"},{"type":"ADVISORY","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2294604"},{"type":"ADVISORY","url":"https://www.openssh.com/txt/release-9.8"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6859-1"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT214119"},{"type":"ADVISORY","url":"https://github.com/zgzhang/cve-2024-6387-poc"},{"type":"ADVISORY","url":"https://sig-security.rocky.page/issues/CVE-2024-6387/"},{"type":"ADVISORY","url":"https://www.freebsd.org/security/advisories/FreeBSD-SA-24:04.openssh.asc"},{"type":"ADVISORY","url":"https://ubuntu.com/security/CVE-2024-6387"},{"type":"ADVISORY","url":"https://www.theregister.com/2024/07/01/regresshion_openssh/"},{"type":"ADVISORY","url":"https://archlinux.org/news/the-sshd-service-needs-to-be-restarted-after-upgrading-to-openssh-98p1/"},{"type":"ADVISORY","url":"https://stackdiary.com/openssh-race-condition-in-sshd-allows-remote-code-execution/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4474"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT214118"},{"type":"REPORT","url":"https://github.com/PowerShell/Win32-OpenSSH/discussions/2248"},{"type":"REPORT","url":"https://github.com/oracle/oracle-linux/issues/149"},{"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/rapier1/hpn-ssh/issues/87"},{"type":"REPORT","url":"https://forum.vmssoftware.com/viewtopic.php?f=8&t=9132"},{"type":"FIX","url":"http://www.openwall.com/lists/oss-security/2024/07/03/3"},{"type":"FIX","url":"https://github.com/openela-main/openssh/commit/e1f438970e5a337a17070a637c1b9e19697cad09"},{"type":"FIX","url":"https://news.ycombinator.com/item?id=40843778"},{"type":"FIX","url":"https://lists.mindrot.org/pipermail/openssh-unix-dev/2024-July/041431.html"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/28/2"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/10/2"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/11/1"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/03/2"},{"type":"ARTICLE","url":"http://seclists.org/fulldisclosure/2024/Jul/20"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/02/1"},{"type":"ARTICLE","url":"http://seclists.org/fulldisclosure/2024/Jul/19"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/09/2"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/10/4"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/11/3"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/01/12"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/01/13"},{"type":"ARTICLE","url":"http://seclists.org/fulldisclosure/2024/Jul/18"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/03/5"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/10/3"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/03/4"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/23/4"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/10/6"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/03/1"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/04/1"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/08/3"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/23/6"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/07/28/3"},{"type":"EVIDENCE","url":"http://www.openwall.com/lists/oss-security/2024/07/08/2"},{"type":"EVIDENCE","url":"http://www.openwall.com/lists/oss-security/2024/07/10/1"},{"type":"EVIDENCE","url":"https://www.vicarius.io/vsociety/posts/regresshion-an-openssh-regression-error-cve-2024-6387"},{"type":"EVIDENCE","url":"http://www.openwall.com/lists/oss-security/2024/07/09/5"},{"type":"EVIDENCE","url":"https://santandersecurityresearch.github.io/blog/sshing_the_masses.html"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/52269"},{"type":"EVIDENCE","url":"http://www.openwall.com/lists/oss-security/2024/07/03/11"},{"type":"EVIDENCE","url":"http://www.openwall.com/lists/oss-security/2024/07/04/2"},{"type":"EVIDENCE","url":"https://www.qualys.com/2024/07/01/cve-2024-6387/regresshion.txt"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/PowerShell/Win32-OpenSSH","events":[{"introduced":"0"},{"last_affected":"72e1c0ac8143b4e286850483e34aa5532bd9fb0c"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"10"}]}},{"type":"GIT","repo":"https://github.com/openela-main/openssh","events":[{"introduced":"0"},{"fixed":"e1f438970e5a337a17070a637c1b9e19697cad09"}]},{"type":"GIT","repo":"https://github.com/rapier1/hpn-ssh","events":[{"introduced":"0"},{"last_affected":"6eb6e6d2752c4aace9ee41f18fcc8fb599872c03"},{"introduced":"0"},{"fixed":"6518797401f2f6951e7b3f76d8d9e75876be4361"},{"introduced":"0c9fd5b0e7f68c8e55d8d45b112023c188038ad3"},{"last_affected":"5a7760cd329cd976f2ef90dbc66ca5e96a350d5d"},{"introduced":"0"},{"last_affected":"6518797401f2f6951e7b3f76d8d9e75876be4361"},{"introduced":"0"},{"last_affected":"2cd1b33995f0d2ba260689f75bea021af4022f61"},{"introduced":"0"},{"last_affected":"0c9fd5b0e7f68c8e55d8d45b112023c188038ad3"},{"introduced":"0"},{"last_affected":"485bab886137bbf8b7ec8df82bd66dc6e5654371"},{"introduced":"0"},{"last_affected":"6eb6e6d2752c4aace9ee41f18fcc8fb599872c03"},{"introduced":"0"},{"last_affected":"efe9b2ec825a21f90fe3cf858bef1a70ac1ce20b"},{"introduced":"0"},{"last_affected":"efe9b2ec825a21f90fe3cf858bef1a70ac1ce20b"},{"introduced":"0"},{"last_affected":"d5dacb43fa30c2f6d7eebbd4c5fcf906c3b5d5d8"}],"database_specific":{"versions":[{"introduced":"0"},{"last_affected":"9.0-NA"},{"introduced":"0"},{"fixed":"4.4"},{"introduced":"8.6"},{"last_affected":"9.8"},{"introduced":"0"},{"last_affected":"4.4-NA"},{"introduced":"0"},{"last_affected":"8.5-p1"},{"introduced":"0"},{"last_affected":"8.6-NA"},{"introduced":"0"},{"last_affected":"4.0"},{"introduced":"0"},{"last_affected":"9.0"},{"introduced":"0"},{"last_affected":"9.4"},{"introduced":"0"},{"last_affected":"9.4"},{"introduced":"0"},{"last_affected":"6.0"}]}}],"versions":["10_13_2015","ABOUT_TO_ADD_INET_ATON","AFTER_FREEBSD_PAM_MERGE","AFTER_KRB5_GSSAPI_MERGE","BEFORE_FREEBSD_PAM_MERGE","BEFORE_KRB5_GSSAPI_MERGE","DynamicWindow-9_7_P1","DynamicWindow-9_7_P3","POST_KRB4_REMOVAL","PRE-REORDER","PRE_CYGWIN_MERGE","PRE_DAN_PATCH_MERGE","PRE_FIXPATHS_INTEGRATION","PRE_HPUX_INTEGRATION","PRE_IPV6","PRE_KRB4_REMOVAL","PRE_NEW_LOGIN_CODE","PRE_SW_KRBV","V_1_2PRE17","V_1_2_1_PRE18","V_1_2_1_PRE19","V_1_2_1_PRE20","V_1_2_1_PRE21","V_1_2_1_PRE22","V_1_2_1_PRE23","V_1_2_1_PRE24","V_1_2_1_PRE25","V_1_2_1_PRE26","V_1_2_1_PRE27","V_1_2_2","V_1_2_2_P1","V_1_2_2_PRE28","V_1_2_2_PRE29","V_1_2_3","V_1_2_3_PRE1","V_1_2_3_PRE2","V_1_2_3_PRE3","V_1_2_3_PRE4","V_1_2_3_PRE5","V_1_2_3_TEST1","V_1_2_3_TEST2","V_1_2_3_TEST3","V_1_2_PRE10","V_1_2_PRE11","V_1_2_PRE12","V_1_2_PRE13","V_1_2_PRE14","V_1_2_PRE15","V_1_2_PRE16","V_1_2_PRE4","V_1_2_PRE5","V_1_2_PRE6","V_1_2_PRE7","V_1_2_PRE8","V_1_2_PRE9","V_2_0_0_BETA1","V_2_0_0_BETA2","V_2_0_0_TEST1","V_2_1_0","V_2_1_0_P1","V_2_1_0_P2","V_2_1_0_P3","V_2_1_1_P1","V_2_1_1_P2","V_2_1_1_P3","V_2_1_1_P4","V_2_2_0_P1","V_2_3_0_P1","V_2_5_0_P1","V_2_5_1_P1","V_2_5_1_P2","V_2_5_2_P1","V_3_0_1_P1","V_3_0_P1","V_3_1_P1","V_3_2_2_P1","V_3_4_P1","V_3_6_1_P1","V_3_8_P1","V_3_9_P1","V_4_0_P1","V_4_2_P1","V_4_4_P1","V_5_0_P1","V_5_1_P1","V_5_2_P1","V_5_5_P1","V_5_7_P1","V_6_0_P1","V_6_1_P1","V_6_2_P1","V_6_5_P1","V_6_6_P1","V_6_8_P1","V_6_9_P1","V_7_0_P1","V_7_1_P1","V_7_2_P1","V_7_3_P1","V_7_4_P1","V_7_5_P1","V_7_6_P1","V_7_7_P1","V_7_8_P1","V_7_9_P1","V_8_0_P1","V_8_1_P1","V_8_2_P1","V_8_3_P1","V_8_4_P1","V_8_5_P1","V_8_6_P1","V_8_7_P1","V_8_8_P1","V_8_9_P1","V_9_0_P1","V_9_1_P1","hpn-DyanmicWindow-9_5_P1","hpn-DynamicWindow-8_6_P1","hpn-DynamicWindow-9_0_P1","hpn-DynamicWindow-9_1_P1","hpn-DynamicWindow-9_2_P1","hpn-DynamicWindow-9_2_P2","hpn-DynamicWindow-9_3_P1","hpn-DynamicWindow-9_3_P2","hpn-DynamicWindow-9_4_P1","hpn-DynamicWindow-9_6_P1","hpn-DynamicWindow-9_7_P1","hpn-DynamicWindow-9_7_P2","hpn-DynamicWindow-9_7_P3","hpn-DynamicWindow-9_8_P1","hpn-ServerLog-8_3_P1","hpn-ServerLog-8_4_P1","hpn-ServerLog-8_5_P1","imports/el9/openssh-8.7p1-30.el9_2","imports/el9/openssh-8.7p1-34.el9","imports/el9/openssh-8.7p1-34.el9_3.3","imports/el9/openssh-8.7p1-38.el9"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-6387.json","unresolved_ranges":[{"events":[{"introduced":"4.32.0"},{"last_affected":"4.32.1f"}]},{"events":[{"introduced":"0"},{"last_affected":"23.10"}]},{"events":[{"introduced":"0"},{"last_affected":"24.04"}]},{"events":[{"introduced":"12.0"},{"fixed":"12.7.6"}]},{"events":[{"introduced":"13.0"},{"fixed":"13.6.8"}]},{"events":[{"introduced":"14.0"},{"fixed":"14.6"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0_aarch64"}]},{"events":[{"introduced":"0"},{"last_affected":"9.4_aarch64"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0_s390x"}]},{"events":[{"introduced":"0"},{"last_affected":"9.4_s390x"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0_ppc64le"}]},{"events":[{"introduced":"0"},{"last_affected":"9.4_ppc64le"}]},{"events":[{"introduced":"0"},{"last_affected":"12.0"}]},{"events":[{"introduced":"0"},{"last_affected":"22.04"}]},{"events":[{"introduced":"0"},{"last_affected":"22.10"}]},{"events":[{"introduced":"0"},{"last_affected":"23.04"}]},{"events":[{"introduced":"0"},{"last_affected":"2023.0"}]},{"events":[{"introduced":"11.0.0"},{"last_affected":"11.70.2"}]},{"events":[{"introduced":"0"},{"last_affected":"9"}]},{"events":[{"introduced":"0"},{"last_affected":"9"}]},{"events":[{"introduced":"0"},{"last_affected":"13.2-NA"}]},{"events":[{"introduced":"0"},{"last_affected":"13.2-p1"}]},{"events":[{"introduced":"0"},{"last_affected":"13.2-p10"}]},{"events":[{"introduced":"0"},{"last_affected":"13.2-p11"}]},{"events":[{"introduced":"0"},{"last_affected":"13.2-p2"}]},{"events":[{"introduced":"0"},{"last_affected":"13.2-p3"}]},{"events":[{"introduced":"0"},{"last_affected":"13.2-p4"}]},{"events":[{"introduced":"0"},{"last_affected":"13.2-p5"}]},{"events":[{"introduced":"0"},{"last_affected":"13.2-p6"}]},{"events":[{"introduced":"0"},{"last_affected":"13.2-p7"}]},{"events":[{"introduced":"0"},{"last_affected":"13.2-p8"}]},{"events":[{"introduced":"0"},{"last_affected":"13.2-p9"}]},{"events":[{"introduced":"0"},{"last_affected":"13.3-NA"}]},{"events":[{"introduced":"0"},{"last_affected":"13.3-p1"}]},{"events":[{"introduced":"0"},{"last_affected":"13.3-p2"}]},{"events":[{"introduced":"0"},{"last_affected":"13.3-p3"}]},{"events":[{"introduced":"0"},{"last_affected":"14.0-NA"}]},{"events":[{"introduced":"0"},{"last_affected":"14.0-beta5"}]},{"events":[{"introduced":"0"},{"last_affected":"14.0-p1"}]},{"events":[{"introduced":"0"},{"last_affected":"14.0-p2"}]},{"events":[{"introduced":"0"},{"last_affected":"14.0-p3"}]},{"events":[{"introduced":"0"},{"last_affected":"14.0-p4"}]},{"events":[{"introduced":"0"},{"last_affected":"14.0-p5"}]},{"events":[{"introduced":"0"},{"last_affected":"14.0-p6"}]},{"events":[{"introduced":"0"},{"last_affected":"14.0-p7"}]},{"events":[{"introduced":"0"},{"last_affected":"14.0-rc3"}]},{"events":[{"introduced":"0"},{"last_affected":"14.0-rc4\\-p1"}]},{"events":[{"introduced":"0"},{"last_affected":"14.1-NA"}]},{"events":[{"introduced":"0"},{"last_affected":"14.1-p1"}]},{"events":[{"introduced":"0"},{"last_affected":"10.0.0"}]}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}