CVE-2024-6387
openssh: regreSSHion - race condition in SSH allows RCE/DoS
Overview
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.
Source: OX vulnerability database
Severity
8.1 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-364, CWE-362
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Julia | OpenSSH_jll | >=8.9.0+0, <9.9.1+0 | 9.9.1+0 |
Open a package to see all its vulnerabilities.
Operating systems · 33 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | openssh | 0:9.8p1-1.azl3 |
Oracle Linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 9 | pam-ssh-agent-auth | 0.10.4-5.38.0.2.el9_4.1 |
| 9 | openssh +4 | 8.7p1-38.0.2.el9_4.1 |
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | openssh +3 | 8.9p1-8.ph4 |
| 5.0 | openssh +3 | 9.3p2-9.ph5 |
Red Hat 3 releases · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | openshift-ose-rhel-coreos-8 +1 | wont fix | — |
| 8 | openshift-ose-rhel-coreos-8 +1 | wont fix | — |
| 9 | openshift-ose-rhel-coreos-8 +1 | wont fix | — |
| 9 | pam-ssh-agent-auth | 0:0.10.4-4.12.el9_0.1 | RHSA-2024:4389 |
| 9 | pam-ssh-agent-auth | 0:0.10.4-5.30.el9_2.4 | RHSA-2024:4340 |
| 9 | pam-ssh-agent-auth | 0:0.10.4-5.38.el9_4.1 | RHSA-2024:4312 |
3 more rows
SUSE Linux Enterprise 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.6 | openssh +7 | 9.6p1-150600.6.3.1 | SUSE-SU-2024:2275-1 |
SUSE Linux Enterprise Micro 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 6.0 | openssh +5 | 9.6p1-2.1 | SUSE-SU-2025:20009-1 |
alma 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 9 | pam-ssh-agent-auth | 0.10.4-5.38.el9_4.1 |
| 9 | openssh +4 | 8.7p1-38.el9_4.1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | openssh | 9.8_p1-r0 |
| 3.23 | openssh | 9.8_p1-r0 |
| 3.24 | openssh | 9.8_p1-r0 |
| edge | openssh | 9.8_p1-r0 |
amazon linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | pam-ssh-agent-auth +1 | 0.10.4-4.8.amzn2023.0.11 |
| 2023 | openssh +8 | 8.7p1-8.amzn2023.0.11 |
debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | openssh | 1:9.2p1-2+deb12u3 |
| 13 | openssh | 1:9.7p1-7 |
| 14 | openssh | 1:9.7p1-7 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| openssh | 1:9.2p1-2+deb12u3 |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | openssh +7 | 9.6p1-10.1 | openSUSE-SU-2024:14088-1 |
root.io debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-openssh | 1:9.2p1-2+deb12u3 |
| 13 | rootio-openssh | 1:9.7p1-7 |
ubuntu 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | openssh | 1:8.9p1-3ubuntu0.10 |
| 24.04 | openssh | 1:9.6p1-3ubuntu13.3 |
References
- seclists.org http://seclists.org/fulldisclosure/2024/Jul/18
- seclists.org http://seclists.org/fulldisclosure/2024/Jul/19
- seclists.org http://seclists.org/fulldisclosure/2024/Jul/20
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/01/12
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/01/13
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/02/1
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/03/1
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/03/11
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/03/2
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/03/3
Show all 88 references
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/03/4
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/03/5
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/04/1
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/04/2
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/08/2
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/08/3
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/09/2
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/09/5
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/10/1
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/10/2
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/10/3
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/10/4
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/10/6
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/11/1
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/11/3
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/23/4
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/23/6
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/28/2
- www.openwall.com http://www.openwall.com/lists/oss-security/2024/07/28/3
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:4312
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:4340
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:4389
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:4469
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:4474
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:4479
- access.redhat.com https://access.redhat.com/errata/RHSA-2024:4484
- access.redhat.com https://access.redhat.com/security/cve/CVE-2024-6387
- archlinux.org https://archlinux.org/news/the-sshd-service-needs-to-be-restarted-after-upgrading-to-openssh-98p1/
- arstechnica.com https://arstechnica.com/security/2024/07/regresshion-vulnerability-in-openssh-gives-attackers-root-on-linux/
- blog.qualys.com https://blog.qualys.com/vulnerabilities-threat-research/2024/07/01/regresshion-remote-unauthenticated-code-execution-vulnerability-in-openssh-server
- bugzilla.redhat.com https://bugzilla.redhat.com/2294604
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2294604
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-082556.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-446545.html
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2024-4312.html
- explore.alas.aws.amazon.com https://explore.alas.aws.amazon.com/CVE-2024-6387.html
- forum.vmssoftware.com https://forum.vmssoftware.com/viewtopic.php?f=8&t=9132
- ftp.netbsd.org https://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2024-002.txt.asc
- github.com https://github.com/AlmaLinux/updates/issues/629
- github.com https://github.com/Azure/AKS/issues/4379
- github.com https://github.com/PowerShell/Win32-OpenSSH/discussions/2248
- github.com https://github.com/PowerShell/Win32-OpenSSH/issues/2249
- github.com https://github.com/microsoft/azurelinux/issues/9555
- github.com https://github.com/openela-main/openssh/commit/e1f438970e5a337a17070a637c1b9e19697cad09
- github.com https://github.com/oracle/oracle-linux/issues/149
- github.com https://github.com/rapier1/hpn-ssh/issues/87
- github.com https://github.com/zgzhang/cve-2024-6387-poc
- linux.oracle.com https://linux.oracle.com/cve/CVE-2024-6387.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2024-4312.html
- lists.almalinux.org https://lists.almalinux.org/archives/list/announce@lists.almalinux.org/thread/23BF5BMGFVEVUI2WNVAGMLKT557EU7VY/
- lists.mindrot.org https://lists.mindrot.org/pipermail/openssh-unix-announce/2024-July/000158.html
- lists.mindrot.org https://lists.mindrot.org/pipermail/openssh-unix-dev/2024-July/041431.html
- news.ycombinator.com https://news.ycombinator.com/item?id=40843778
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2024-6387
- packetstorm.news https://packetstorm.news/files/id/190587/
- psirt.global.sonicwall.com https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0010
- santandersecurityresearch.github.io https://santandersecurityresearch.github.io/blog/sshing_the_masses.html
- security-tracker.debian.org https://security-tracker.debian.org/tracker/CVE-2024-6387
- security.netapp.com https://security.netapp.com/advisory/ntap-20240701-0001/
- sig-security.rocky.page https://sig-security.rocky.page/issues/CVE-2024-6387/
- stackdiary.com https://stackdiary.com/openssh-race-condition-in-sshd-allows-remote-code-execution/
- support.apple.com https://support.apple.com/kb/HT214118
- support.apple.com https://support.apple.com/kb/HT214119
- support.apple.com https://support.apple.com/kb/HT214120
- ubuntu.com https://ubuntu.com/blog/ubuntu-regresshion-security-fix
- ubuntu.com https://ubuntu.com/security/CVE-2024-6387
- ubuntu.com https://ubuntu.com/security/notices/USN-6859-1
- www.akamai.com https://www.akamai.com/blog/security-research/2024-openssh-vulnerability-regression-what-to-know-and-do
- www.arista.com https://www.arista.com/en/support/advisories-notices/security-advisory/19904-security-advisory-0100
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2024-6387
- www.exploit-db.com https://www.exploit-db.com/exploits/52269
- www.freebsd.org https://www.freebsd.org/security/advisories/FreeBSD-SA-24:04.openssh.asc
- www.openssh.com https://www.openssh.com/txt/release-9.8
- www.qualys.com https://www.qualys.com/2024/07/01/cve-2024-6387/regresshion.txt
- www.splunk.com https://www.splunk.com/en_us/blog/security/cve-2024-6387-regresshion-vulnerability.html
- www.suse.com https://www.suse.com/security/cve/CVE-2024-6387.html
- www.theregister.com https://www.theregister.com/2024/07/01/regresshion_openssh/
- www.vicarius.io https://www.vicarius.io/vsociety/posts/regresshion-an-openssh-regression-error-cve-2024-6387
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.