Skip to main content
Mallory
← Back to News
actively-exploited-vulnerabilityproof-of-concept-releasewidely-deployed-product-advisoryrapid-weaponization

regreSSHion OpenSSH Flaw Exposes Servers to Unauthenticated Root RCE

Active Exploitation · 5 sources · Updated 3mo ago · First seen Jul 22, 2025

regreSSHion OpenSSH Flaw Exposes Servers to Unauthenticated Root RCE

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
This is being exploited nowSee which actors are running it and whether you're in range.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

6 events · Oct 1, 2020 – Jul 22, 2025
  1. Jul 22, 20251y ago

    OpenSSH 9.8p1 released to fix CVE-2024-6387

    The references state that administrators should upgrade to OpenSSH 9.8p1 or later to remediate CVE-2024-6387, indicating that version 9.8p1 was released with a fix for the issue.

    Remote Unauthenticated Code Execution Vulnerability in OpenSSH Server (regreSSHion)
  2. Aug 13, 20242y ago

    CSIRT.SK warns CVE-2024-6387 is actively exploited

    On August 13, 2024, CSIRT.SK published an alert stating that CVE-2024-6387 was being actively exploited in the wild and that public proof-of-concept code was available.

    Kritická bezpečnostná zraniteľnosť v OpenSSH | CSIRT.SK
  3. Aug 13, 20242y ago

    FreeBSD-specific variant CVE-2024-7589 patched

    The CSIRT.SK reference says a FreeBSD-specific variant, CVE-2024-7589, was identified and patched separately by FreeBSD developers.

    Kritická bezpečnostná zraniteľnosť v OpenSSH | CSIRT.SK
  4. Aug 13, 20242y ago

    Researchers identify related flaw CVE-2024-6409

    During analysis of CVE-2024-6387, researchers identified a related but less severe code-execution issue, tracked as CVE-2024-6409.

    Kritická bezpečnostná zraniteľnosť v OpenSSH | CSIRT.SK
  5. Jul 1, 20242y ago

    Qualys discloses CVE-2024-6387 in OpenSSH

    On July 1, 2024, Qualys publicly disclosed CVE-2024-6387 ("regreSSHion"), describing it as a remote unauthenticated code execution vulnerability affecting OpenSSH servers from 8.5p1 through 9.7p1.

    Remote Unauthenticated Code Execution Vulnerability in OpenSSH Server (regreSSHion)
  6. Oct 1, 20206y ago

    OpenSSH regression reintroduces signal-handler RCE flaw

    Qualys reported that a regression introduced in October 2020 (OpenSSH 8.5p1) reintroduced a previously fixed signal-handler vulnerability, later tracked as CVE-2024-6387 or "regreSSHion." The flaw can enable unauthenticated remote code execution as root under specific conditions.

    Remote Unauthenticated Code Execution Vulnerability in OpenSSH Server (regreSSHion)
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Vulnerabilities

1 linked

Affected products

1 linked
Openssh
Do you run this?Correlate live exploitation activity against the software you actually run, and see where you're exposed.
See Who's Exploiting This
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.