regreSSHion OpenSSH Flaw Exposes Servers to Unauthenticated Root RCE
Active Exploitation · 5 sources · Updated 3mo ago · First seen Jul 22, 2025

A critical flaw in OpenSSH server, tracked as CVE-2024-6387 and dubbed regreSSHion, can allow an unauthenticated attacker to achieve remote code execution with root privileges under specific conditions. The issue affects OpenSSH versions 8.5p1 through 9.7p1, and public reporting says it has been actively exploited in the wild with proof-of-concept code available. Researchers and national defenders also highlighted related issues, including CVE-2024-6409, a less severe code-execution variant identified during analysis, and CVE-2024-7589, a FreeBSD-specific variant patched separately.
Defenders were urged to upgrade to OpenSSH 9.8p1 or later to remove exposure. Where immediate patching is not possible, guidance recommends temporarily restricting or disabling SSH access, or setting LoginGraceTime to 0 as a mitigation, while warning that this workaround can disrupt service availability and should be treated as temporary until systems are fully updated.
Why it matters
Impact assessment
CVE-2024-6387 exposes internet-reachable OpenSSH servers to unauthenticated remote code execution as root, creating immediate risk for Linux and other affected deployments that rely on SSH for administration and automation. The impact is severe because successful exploitation can result in full host compromise, follow-on lateral movement, service disruption, data theft, and reputational damage.
The exposure is broad because OpenSSH is widely deployed across enterprise servers, cloud workloads, appliances, and operational infrastructure. Public reporting states active exploitation in the wild and public proof-of-concept availability, which materially increases the likelihood of opportunistic scanning and rapid weaponization.
Affected populations and scope
- Affected product: OpenSSH server
- Primary affected versions for CVE-2024-6387: 8.5p1 through 9.7p1 inclusive
- Additional legacy exposure: versions older than 4.4p1 if fixes for CVE-2006-5051 and CVE-2008-4109 were not applied
- Related affected versions for CVE-2024-6409: 8.7p1 and 8.8p1
- FreeBSD-specific affected versions for CVE-2024-7589: older than 14.1-STABLE, 14.1-RELEASE-p3, 14.0-RELEASE-p9, 13.3-STABLE, and 13.3-RELEASE-p5
- OpenBSD is stated as not affected
Severity and business consequences
- Unauthenticated root RCE can lead to full system takeover
- Likely downstream impacts: credential theft, persistence, lateral movement, ransomware staging, and operational outage
- High-value targets include internet-facing servers, bastion hosts, cloud instances, managed hosting, and environments with centralized SSH administration
Evidence of exploitation
- Public reporting says CVE-2024-6387 has been actively exploited in the wild
- Public proof-of-concept exploit code is available
- Related flaws CVE-2024-6409 and CVE-2024-7589 indicate broader signal-handling weakness in affected OpenSSH code paths


