Skip to main content
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify internet-exposed sshd on glibc Linux
  2. Delivery
    Open many concurrent TCP connections to port 22
  3. Exploit
    Stall SSH handshake past LoginGraceTime
  4. Execution
    Race SIGALRM handler to corrupt heap
  5. Persist
    Achieve code execution as root
  6. Impact
    Establish persistence and pivot internally

Vulnerability Assessment

Weakness
CWE
Exploitation Conditions

Target must be running OpenSSH portable sshd on a glibc-based Linux system (Ubuntu, RHEL/AlmaLinux, Debian, Amazon Linux, SUSE, or affected vendor appliances such as SonicWall SMA and NetApp ONTAP) with versions <4.4p1 or 8.5p1 through 9.7p1 inclusive, and sshd reachable over the network on its listening port (typically TCP/22). The LoginGraceTime directive must be non-zero (default is 120 seconds) - setting it to 0 eliminates the race. Exploitation requires the attacker to sustain thousands of connection attempts over a long window (Qualys reported 6-8 hours on 32-bit glibc systems, longer on 64-bit), so any tight network-level rate limiting, MaxStartups throttling, or short-lived IP allowlisting materially limits feasibility. OpenBSD's native sshd is not affected; FreeBSD/NetBSD and macOS are typically not exploitable via the same primitive due to differing allocator behavior, though they remain technically vulnerable to the race.

Impact

The CVSS vector AV:N/AC:H/PR:N/UI:N/C:H/I:H/A:H reflects a network-reachable, unauthenticated flaw with high attack complexity - accurately capturing that exploitation requires winning a tight race (Qualys' original PoC needed 6-8 hours of repeated connections on 32-bit glibc, longer on 64-bit). Despite the high complexity, EPSS at 48.06% (98th percentile) and publicly available exploit code make this a high-priority remediation target for any internet-exposed sshd. However, the CVE is notably absent from CISA KEV, suggesting that while widespread scanning has been observed, reliable mass exploitation in the wild has not been confirmed at scale - consistent with the multi-hour race-window requirement and architecture-specific exploitation primitives. The signals are partially conflicting: very high EPSS and public PoC point to elevated risk, but no KEV listing and high attack complexity moderate the immediacy versus a trivially weaponized RCE. Net assessment: high priority for internet-facing OpenSSH on glibc Linux, lower urgency for BSD-based or non-exposed deployments.

Exploit ScenarioDerived

An attacker on the internet repeatedly opens TCP connections to a victim's sshd on port 22 and deliberately stalls the SSH key exchange so that LoginGraceTime expires; over thousands of connection attempts spanning hours, they race the SIGALRM handler to corrupt heap state in a controlled way. Using the publicly available Qualys-derived PoC, the attacker eventually achieves remote code execution as root on the target glibc Linux host. From there they pivot into the internal network, harvest credentials, and establish persistence.

Act Now Prioritize within 24-48h. Why: HIGH severity + EPSS > 10%.
Patch available 48.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAI

Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to exploit a signal handler race condition by failing to authenticate within the LoginGraceTime window, potentially yielding root-level code execution on glibc-based Linux systems. The flaw - widely known as 'regreSSHion' - affects numerous distributions and vendor appliances including Ubuntu 23.10/24.04, AlmaLinux 9, SonicWall SMA firmware, Arista EOS, NetApp ONTAP, and others. Publicly available exploit code exists and EPSS scores it at 48.06% (98th percentile), reflecting very high exploitation likelihood, though it is not currently listed in CISA KEV.

RemediationAI

Apply the vendor-released patch: upgrade to OpenSSH 9.8p1 or later, which restructures signal handling to remove the race. Distribution-specific backported packages are available - apply updates from Canonical (Ubuntu USN), Red Hat (RHSA for RHEL/OpenShift), AlmaLinux, Debian, Amazon Linux, SUSE, and NetApp/SonicWall/Arista vendor advisories as soon as available; consult the Red Hat advisory at access.redhat.com and the Qualys disclosure at blog.qualys.com/vulnerabilities-threat-research/2024/07/01/regresshion-remote-unauthenticated-code-execution-vulnerability-in-openssh-server for cross-references. If immediate patching is not feasible, the documented workaround is to set LoginGraceTime 0 in sshd_config and restart sshd, which closes the race window but exposes sshd to denial-of-service via connection exhaustion (all MaxStartups slots can be held open indefinitely by attackers). Additional compensating controls include restricting sshd network exposure with firewall ACLs to known management ranges only, deploying rate-limiting via fail2ban or iptables connection-rate rules on TCP/22, and prioritizing patching for any internet-facing glibc Linux systems over BSD-based hosts.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is a CWE-364 (Signal Handler Race Condition) in OpenSSH's sshd privileged process. When a client fails to authenticate within LoginGraceTime (default 120 seconds), sshd's SIGALRM handler invokes functions that are not async-signal-safe (such as syslog() and its downstream malloc/free paths). An attacker who repeatedly opens TCP connections to port 22 and stalls authentication can race the signal handler against heap state, leading to memory corruption that on glibc Linux has been demonstrated to yield code execution as root. The underlying technology is the OpenSSH portable server (sshd), a regression reintroduced after CVE-2006-5051 in OpenSSH 8.5p1 when a critical logging guard was removed; versions prior to 4.4p1 and from 8.5p1 through 9.7p1 are affected. Non-glibc systems (OpenBSD, and possibly *BSD variants listed in CPE such as FreeBSD/NetBSD) are not exploitable in the same way due to differing malloc internals.

Know when Openssh gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionNVD

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.

Executive ViewAI

Why It Matters

OpenSSH sshd contains a critical signal handler race condition (CVE-2024-6387) enabling unauthenticated remote code execution as root on Linux systems including Ubuntu 23.10/24.04, AlmaLinux 9, and numerous vendor appliances. Publicly available exploit code combined with 98th percentile exploitation likelihood (EPSS 48.06%) creates immediate risk to any organization with internet-facing SSH services. Vendor patches are available and require urgent deployment.

Business Impact: Severe
Compensating Controls

Apply vendor patch. Interim mitigation while patching is deployed: restrict SSH access via firewall to approved administrative source networks, implement network segmentation isolating SSH services, and enable detailed logging of SSH authentication failures to detect exploitation attempts.

Threat Intelligence Overview

Threat Score
4.6/10
Composite threat intelligence
EPSS Score
48.1%
Top 2% exploitable
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Exploit-DB GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 48.1%
Patch available Yes
Active threat Yes
Deciding rule
HIGH severity + EPSS > 10%
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

108
Low Medium High Critical
KEV: 0
EPSS: +48
CVSS: +40
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)NVD

cpe:2.3:o:sonicwall:sma_6200_firmware:-:*:*:*:*:*:*:*
cpe:2.3:o:sonicwall:sma_7200_firmware:-:*:*:*:*:*:*:*
cpe:2.3:o:arista:eos:*:*:*:*:*:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:23.10:*:*:*:*:*:*:*
cpe:2.3:o:canonical:ubuntu_linux:24.04:*:*:*:lts:*:*:*
cpe:2.3:o:almalinux:almalinux:9.0:-:*:*:*:*:*:*
cpe:2.3:o:sonicwall:sma_6210_firmware:-:*:*:*:*:*:*:*
cpe:2.3:o:sonicwall:sma_7210_firmware:-:*:*:*:*:*:*:*
cpe:2.3:o:sonicwall:sma_8200v_firmware:-:*:*:*:*:*:*:*
cpe:2.3:o:sonicwall:sra_ex_7000_firmware:-:*:*:*:*:*:*:*
cpe:2.3:o:netapp:a1k_firmware:-:*:*:*:*:*:*:*
cpe:2.3:o:netapp:a70_firmware:-:*:*:*:*:*:*:*
cpe:2.3:o:netapp:a90_firmware:-:*:*:*:*:*:*:*
cpe:2.3:o:netapp:a700s_firmware:-:*:*:*:*:*:*:*
cpe:2.3:o:netapp:8300_firmware:-:*:*:*:*:*:*:*
cpe:2.3:o:netapp:8700_firmware:-:*:*:*:*:*:*:*
cpe:2.3:o:netapp:a400_firmware:-:*:*:*:*:*:*:*
cpe:2.3:o:netapp:c400_firmware:-:*:*:*:*:*:*:*
cpe:2.3:o:netapp:a250_firmware:-:*:*:*:*:*:*:*
cpe:2.3:o:netapp:500f_firmware:-:*:*:*:*:*:*:*
+ 72 more
CVE-2023-38408 CRITICAL POC
9.8 Jul 20

The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remot

CVE-2023-25136 MEDIUM POC
6.5 Feb 03

OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. Rated medium se

CVE-2016-6210 MEDIUM POC
5.9 Feb 13

sshd in OpenSSH before 7.3, when SHA256 or SHA512 are used for user password hashing, uses BLOWFISH hashing on a static

CVE-2015-5600 HIGH POC
8.1 Aug 03

The kbdint_next_device function in auth2-chall.c in sshd in OpenSSH through 6.9 does not properly restrict the processin

CVE-2016-6515 HIGH POC
7.5 Aug 07

The auth_password function in auth-passwd.c in sshd in OpenSSH before 7.3 does not limit password lengths for password a

CVE-2019-6111 MEDIUM POC
5.9 Jan 31

An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no

CVE-2025-26465 MEDIUM
6.8 Feb 18

A vulnerability was found in OpenSSH when the VerifyHostKeyDNS option is enabled. Rated medium severity (CVSS 6.8), this

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2016-0777 MEDIUM
6.5 Jan 14

The resend_bytes function in roaming_common.c in the client in OpenSSH 5.x, 6.x, and 7.x before 7.1p2 allows remote serv

CVE-2016-3115 MEDIUM POC
6.4 Mar 22

Multiple CRLF injection vulnerabilities in session.c in sshd in OpenSSH before 7.2p2 allow remote authenticated users to

CVE-2019-6110 MEDIUM POC
6.8 Jan 31

In OpenSSH 7.9, due to accepting and displaying arbitrary stderr output from the server, a malicious server (or Man-in-T

CVE-2025-26466 MEDIUM
5.9 Feb 28

A flaw was found in the OpenSSH package. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, n

References

Advisories & patches
PATCH http://www.openwall.com/lists/oss-security/2024/07/03/3 PATCH https://github.com/openela-main/openssh/commit/e1f438970e5a337a17070a637c1b9e19697cad09 PATCH https://lists.mindrot.org/pipermail/openssh-unix-dev/2024-July/041431.html PATCH https://news.ycombinator.com/item?id=40843778 ADVISORY https://vuldb.com/vuln/270041 REF http://seclists.org/fulldisclosure/2024/Jul/18 REF http://seclists.org/fulldisclosure/2024/Jul/19 REF http://seclists.org/fulldisclosure/2024/Jul/20 REF http://www.openwall.com/lists/oss-security/2024/07/01/12 REF http://www.openwall.com/lists/oss-security/2024/07/01/13 REF http://www.openwall.com/lists/oss-security/2024/07/02/1 REF http://www.openwall.com/lists/oss-security/2024/07/03/1 REF http://www.openwall.com/lists/oss-security/2024/07/03/2 REF http://www.openwall.com/lists/oss-security/2024/07/03/4 REF http://www.openwall.com/lists/oss-security/2024/07/03/5 REF http://www.openwall.com/lists/oss-security/2024/07/04/1 REF http://www.openwall.com/lists/oss-security/2024/07/08/3 REF http://www.openwall.com/lists/oss-security/2024/07/09/2 REF http://www.openwall.com/lists/oss-security/2024/07/10/2 REF http://www.openwall.com/lists/oss-security/2024/07/10/3 REF http://www.openwall.com/lists/oss-security/2024/07/10/4 REF http://www.openwall.com/lists/oss-security/2024/07/10/6 REF http://www.openwall.com/lists/oss-security/2024/07/11/1 REF http://www.openwall.com/lists/oss-security/2024/07/11/3 REF http://www.openwall.com/lists/oss-security/2024/07/23/4 REF http://www.openwall.com/lists/oss-security/2024/07/23/6 REF http://www.openwall.com/lists/oss-security/2024/07/28/2 REF http://www.openwall.com/lists/oss-security/2024/07/28/3 REF https://access.redhat.com/errata/RHSA-2024:4312 REF https://access.redhat.com/errata/RHSA-2024:4340 REF https://access.redhat.com/errata/RHSA-2024:4389 REF https://access.redhat.com/errata/RHSA-2024:4469 REF https://access.redhat.com/errata/RHSA-2024:4474 REF https://access.redhat.com/errata/RHSA-2024:4479 REF https://access.redhat.com/errata/RHSA-2024:4484 REF https://access.redhat.com/security/cve/CVE-2024-6387 REF https://archlinux.org/news/the-sshd-service-needs-to-be-restarted-after-upgrading-to-openssh-98p1/ REF https://arstechnica.com/security/2024/07/regresshion-vulnerability-in-openssh-gives-attackers-root-on-linux/ REF https://blog.qualys.com/vulnerabilities-threat-research/2024/07/01/regresshion-remote-unauthenticated-code-execution-vulnerability-in-openssh-server REF https://bugzilla.redhat.com/show_bug.cgi?id=2294604 REF https://cert-portal.siemens.com/productcert/html/ssa-082556.html REF https://cert-portal.siemens.com/productcert/html/ssa-446545.html REF https://explore.alas.aws.amazon.com/CVE-2024-6387.html REF https://forum.vmssoftware.com/viewtopic.php?f=8&t=9132 REF https://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2024-002.txt.asc REF https://github.com/AlmaLinux/updates/issues/629 REF https://github.com/Azure/AKS/issues/4379 REF https://github.com/PowerShell/Win32-OpenSSH/discussions/2248 REF https://github.com/PowerShell/Win32-OpenSSH/issues/2249 REF https://github.com/microsoft/azurelinux/issues/9555 REF https://github.com/oracle/oracle-linux/issues/149 REF https://github.com/rapier1/hpn-ssh/issues/87 REF https://lists.almalinux.org/archives/list/announce@lists.almalinux.org/thread/23BF5BMGFVEVUI2WNVAGMLKT557EU7VY/ REF https://lists.mindrot.org/pipermail/openssh-unix-announce/2024-July/000158.html REF https://packetstorm.news/files/id/190587/ REF https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0010 REF https://security-tracker.debian.org/tracker/CVE-2024-6387 REF https://security.netapp.com/advisory/ntap-20240701-0001/ REF https://sig-security.rocky.page/issues/CVE-2024-6387/ REF https://stackdiary.com/openssh-race-condition-in-sshd-allows-remote-code-execution/ REF https://support.apple.com/kb/HT214118 REF https://support.apple.com/kb/HT214119 REF https://support.apple.com/kb/HT214120 REF https://ubuntu.com/security/CVE-2024-6387 REF https://ubuntu.com/security/notices/USN-6859-1 REF https://www.akamai.com/blog/security-research/2024-openssh-vulnerability-regression-what-to-know-and-do REF https://www.arista.com/en/support/advisories-notices/security-advisory/19904-security-advisory-0100 REF https://www.freebsd.org/security/advisories/FreeBSD-SA-24:04.openssh.asc REF https://www.openssh.com/txt/release-9.8 REF https://www.splunk.com/en_us/blog/security/cve-2024-6387-regresshion-vulnerability.html REF https://www.suse.com/security/cve/CVE-2024-6387.html REF https://www.theregister.com/2024/07/01/regresshion_openssh/

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy