Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2024-6387: regreSSHion

Published Jul 1, 2024 · Updated 26 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS8.1High · v3.1
EPSS60.5%99th percentile
CISA KEVNoNot listed
In the wildReported3 exploitation records in Mallory
Vendors
NetAppAlmalinuxAmazon Web ServicesDebian ProjectRed HatArista NetworksFreebsdSuse
IdentifiersCVE-2024-6387CWE-364 · Signal Handler Race Condition

regreSSHion (CVE-2024-6387) is a pre-authentication signal-handler race condition in the OpenSSH server, sshd, that regresses the fix for CVE-2006-5051. When a client fails to authenticate within LoginGraceTime, the SIGALRM handler invokes functions that are not async-signal-safe, including syslog(). On affected glibc-based Linux systems, these calls can invoke malloc() or free() and interrupt heap operations, potentially causing exploitable heap corruption in the root-privileged server process. The modern upstream affected range is OpenSSH 8.5p1 through 9.7p1; OpenSSH 9.8p1 fixes the regression. Legacy releases before 4.4p1 may also be vulnerable without the applicable historical fixes. OpenBSD is unaffected. OpenSSH clients alone are not affected.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can allow unauthenticated remote execution of arbitrary code with root privileges, compromising system confidentiality, integrity, and availability. Attackers could access or alter sensitive data, install malware, create privileged accounts, establish persistence, and use the compromised host for lateral movement. Exploitation attempts can also crash the service or otherwise cause denial of service. Practical code execution was demonstrated on specific 32-bit glibc-based Linux systems with ASLR enabled; equivalent exploitability across all affected platforms is not established.

Mitigation

If you can’t patch tonight, do this now.

If patching is not immediately possible, set LoginGraceTime to 0 in the SSH server configuration and restart the service. This prevents the vulnerable authentication-timeout signal path but increases denial-of-service exposure because unauthenticated connections can exhaust MaxStartups capacity. Disable SSH where unnecessary; otherwise restrict access to trusted hosts or management networks using firewall rules or ACLs, and remove direct internet exposure. Monitor for unusually large numbers of authentication timeouts and repeated unauthenticated connections. Connection-abuse controls can reduce attempts but do not replace patching.

Remediation

Patch, then assume compromise.

Upgrade upstream OpenSSH to 9.8p1 or later, or install the operating-system or appliance vendor's fixed package or firmware containing the backported correction. The fix removes unsafe operations from the asynchronous SIGALRM handling path. Restart the SSH service after applying updates as required by the vendor. Assess exposure using distribution-specific package and build information rather than upstream version strings alone, because vendor backports can fix older-numbered releases. Replace or update legacy releases lacking the fixes for CVE-2006-5051 and CVE-2008-4109. Prioritize internet-accessible servers and management interfaces.

Public exploits

Exploits

27 exploits validated by Mallory's analysis. Hidden: 34 rejected by Mallory's analysis as not a working exploit; 5 not yet analyzed, such as Exploit-DB entries. Showing the 25 most capable, earliest first.

View more in app →
ssh_exploiter_CVE-2024-6387This repository contains a Python exploit script ('ssh_exploiter_cve-2024-6387') and a README. The script targets CVE-2024-6387, a race condition vulnerability in OpenSSH (versions 8.5 through 9.7, except for certain patched distributions). The exploit operates in two phases: first, it scans provided IP addresses (or ranges, or files containing IPs) for SSH servers, retrieves their version banners, and checks if they are likely vulnerable. Second, for each vulnerable server, it attempts to exploit the race condition by sending specially crafted packets and memory structures, aiming to achieve remote code execution. The script is multithreaded for efficient scanning and supports custom ports and timeouts. The payload is a placeholder shellcode, indicating the exploit is operational but may require customization for real-world use. The main attack vector is network-based, targeting SSH (typically port 22). The script outputs a summary of scan results and exploitation attempts. No hardcoded IPs or domains are present; targets are user-supplied via command line or file.AiGptCode · Disclosed Jul 2, 2024 · python · networkOperationalregreSSHionThis repository provides a proof-of-concept (PoC) exploit for CVE-2024-6387 (regreSSHion), a critical remote code execution vulnerability in OpenSSH's server (sshd) on glibc-based Linux systems. The exploit targets a race condition in the SIGALRM signal handler, which can be triggered by unauthenticated remote attackers to execute arbitrary code as root. The main exploit logic is implemented in 'exploit.c', which attempts to exploit the race condition by repeatedly connecting to the target SSH server and sending crafted packets, adjusting timing and heap layout to maximize the chance of successful exploitation. The payload is customizable shellcode (default: spawns a /bin/sh shell). The exploit requires knowledge of the target's IP and port, and may require tuning for specific glibc/OpenSSH versions. The repository also includes a shell script ('compile.sh') for building the exploit and a detailed security advisory explaining the vulnerability and its impact. No hardcoded IPs or domains are present; the exploit is generic and targets user-specified endpoints. The code is operational and can be adapted for weaponization by modifying the shellcode or automation logic.xonoxitron · Disclosed Jul 2, 2024 · c · bash · networkOperationalCVE-2024-6387-CheckerThis repository contains two main Python scripts and a README for CVE-2024-6387 (regreSSHion), a critical OpenSSH vulnerability. - 'CVE-2024-6387.py' is a multi-threaded scanner that checks if given IPs, domains, or CIDR ranges are running vulnerable OpenSSH versions by retrieving SSH banners and comparing them to a list of known vulnerable and excluded versions. It outputs a summary of vulnerable, non-vulnerable, and unreachable hosts. - 'CVE-2024-6387_poc.py' is a proof-of-concept exploit that attempts to trigger the race condition in OpenSSH by manipulating heap allocations and timing, with the goal of achieving remote code execution. The script includes a placeholder for shellcode, which must be replaced with actual payload code for exploitation. It is designed to be run against a specific IP and port. The repository is focused on both detection and exploitation of CVE-2024-6387, targeting OpenSSH servers accessible over the network. No hardcoded IPs or domains are present; all targets are user-supplied. The code is written in Python and is operational, with the exploit requiring further payload customization for weaponization.RickGeex · Disclosed Jul 2, 2024 · python · networkOperationalCVE-2024-6387This repository provides a Python exploit for CVE-2024-6387, a critical remote code execution vulnerability in OpenSSH. The main exploit file, CVE-2024-6387.py, implements a sophisticated attack that manipulates the heap on the target SSH server, leverages a race condition, and ultimately attempts to execute attacker-supplied shellcode. The exploit works by establishing a TCP connection to the target's SSH port (default 22), performing the SSH handshake, sending a series of crafted packets to prepare the heap, and then timing the delivery of a final malicious packet to trigger the vulnerability. The shellcode is currently a placeholder and must be replaced by the attacker with actual payload code. The YAML file (CVE-2024-6387.yaml) provides a detection template for identifying vulnerable OpenSSH versions, indicating the exploit's dual use for both exploitation and detection. The repository is well-structured, with clear separation between exploit code, detection template, and documentation. The README.md provides a detailed explanation of the vulnerability, exploitation steps, and the code's workflow. Overall, this repository demonstrates a practical, operational exploit for a high-impact OpenSSH vulnerability, requiring only network access to the target SSH service.Symbolexe · Disclosed Jul 3, 2024 · python · yaml · networkOperationalCVE-2024-6387This repository provides a working proof-of-concept exploit for CVE-2024-6387 (regreSSHion), a critical remote code execution vulnerability in OpenSSH affecting versions 1.2.2p1 through 4.4 and 8.5p1 through 9.8. The main exploit script, 'regreSSHion.py', is a Python tool that connects to a target SSH server, performs a crafted handshake and heap manipulation, and delivers a customizable shellcode payload. By default, the payload opens a bind shell on port 9999 using netcat, granting the attacker remote shell access. The repository also includes 'send_socket.py' for testing shellcode delivery and a 'shellcode' file containing the default payload. The exploit is operational and allows for payload customization, making it suitable for real-world exploitation scenarios. The README provides detailed usage instructions, payload customization guidance, and example outputs. The exploit targets network-accessible SSH servers and requires the attacker to specify the target's IP and port. No hardcoded IPs or domains are present; all targeting is user-supplied at runtime.l-urk · Disclosed Jul 30, 2024 · python · assembly · networkOperationalCVE-2024-6387_CheckThis repository provides a comprehensive toolkit for exploiting and detecting CVE-2024-6387 (regreSSHion), a critical race condition vulnerability in OpenSSH's sshd on glibc-based Linux systems. The repository contains three main code files: 1. '7etsuo-regreSSHion.c' is a C-language exploit that targets the vulnerable OpenSSH server. It attempts to exploit a race condition in the SIGALRM handler to achieve remote code execution as root. The exploit is highly configurable, requiring the user to adjust shellcode, glibc base addresses, and timing parameters for the target system. The shellcode is a placeholder and must be replaced by the user with the desired payload. 2. 'CVE-2024-6387.py' is a Python script that serves both as a scanner and an exploit tool. It can scan single or multiple targets for vulnerable OpenSSH versions by grabbing the SSH banner and comparing it against a list of known vulnerable and patched versions. It also includes an 'exploit' mode, which attempts to exploit the vulnerability, though the actual exploitation logic is less detailed than the C exploit. 3. 'CVE-2024-6387_Check.py' is a Python-based vulnerability checker. It scans hosts for the presence of the vulnerability by connecting to their SSH service, retrieving the banner, and checking for vulnerable versions. It supports multi-threaded scanning and provides detailed output on vulnerable, not vulnerable, and unknown hosts. The repository is structured for both offensive (exploitation) and defensive (detection) use. The main attack vector is network-based, targeting the SSH service (typically TCP port 22). No hardcoded IP addresses or domains are present; the tools require the user to specify target IPs and ports. The exploit is operational, requiring some manual configuration and payload insertion, but is not fully weaponized (i.e., not part of a framework with automated payload handling).HadesNull123 · Disclosed Aug 26, 2024 · c · python · networkOperationalCVE-2024-6387-poc-1This repository provides both a vulnerability checker and an exploit for CVE-2024-6387 (regreSSHion), a critical race condition in OpenSSH's signal handling that can allow unauthenticated remote code execution as root on glibc-based Linux systems. The repository contains four files: a README.md with background and usage instructions, a LICENSE, Checker.py (a Python script to scan and categorize SSH servers as SAFE, VULNERABLE, UNKNOWN, or ERROR based on their banner and version), and exploit.py (a Python script that attempts to exploit the race condition by sending crafted SSH handshake and payload data to the target's SSH port, using multithreading to increase the chance of success). The exploit is operational, requiring the attacker to specify the target's IP, port, and optionally glibc base address. The main attack vector is network-based, targeting the SSH service (typically port 22) on vulnerable OpenSSH versions. No hardcoded IPs or domains are present; the scripts are designed for user-supplied targets.anhvutuan · Disclosed Oct 22, 2024 · python · networkOperationalCVE-2024-6387_PoCThis repository provides both a proof-of-concept exploit and a scanner for CVE-2024-6387 (regreSSHion), a critical remote code execution vulnerability in OpenSSH (primarily affecting 32-bit, glibc-based Linux systems). The main files are: - '7etsuo-regreSSHion.c': A C-language exploit that targets the race condition in sshd's SIGALRM handler, attempting to achieve unauthenticated remote code execution as root. The exploit requires the attacker to specify the target IP and port, and it repeatedly attempts to win the race condition, using a placeholder for shellcode (which must be replaced with a real payload for weaponization). The exploit is statistical in nature and may require thousands of attempts. - 'CVE-2024-6387.py': A Python script that can scan single or multiple targets (IP, domain, or CIDR) for vulnerable OpenSSH versions by grabbing SSH banners and checking against a list of known vulnerable and patched versions. It also supports an 'exploit' mode, which attempts to exploit the vulnerability, and provides multi-threaded scanning, output formatting, and optional hostname resolution. - 'Dockerfile': Sets up a vulnerable OpenSSH 9.2p1 environment on a 32-bit Ubuntu system for testing, with root login enabled and ASLR disabled for easier exploitation. - 'README.md': Contains detailed usage instructions, environment setup, and mitigation advice. It emphasizes that the exploit is only effective against 32-bit OpenSSH servers and that many attempts may be required for success. The repository is not part of a framework and is intended for security research and testing. The exploit is operational, requiring some manual adjustment (e.g., shellcode insertion, timing tweaks) for specific targets. The scanner is robust and can be used to identify potentially vulnerable systems across networks.YassDEV221608 · Disclosed Jan 4, 2025 · c · python · networkOperationalNoregresshNO REGRESSH is a comprehensive Python-based penetration testing framework focused on exploiting OpenSSH regressions and several SSH-related CVEs, most notably CVE-2024-6387 (regreSSHion). The repository contains modular code for scanning networks, detecting vulnerable SSH services, and launching targeted exploits. It supports multiple payloads (reverse shell, bind shell, custom shellcode) in various languages (bash, python, powershell, perl), and includes a listener manager for handling incoming connections. The framework provides post-exploitation features such as file transfer, screenshot capture, and keylogging. The main entry point is 'no_regresh_launcher.py', which launches a menu-driven interface for scanning, exploitation, listener management, and system checks. The tool is operational and suitable for authorized penetration testing against OpenSSH versions 7.4 through 9.7, targeting both remote code execution and username enumeration vulnerabilities. The code is well-structured, with clear separation of modules for scanning, exploitation, listening, and system management.OhDamnn · Disclosed Sep 13, 2025 · Framework: NO REGRESSH · python · bash · networkOperationalNoregresshNoregressh is a standalone Python penetration-testing toolkit centered on OpenSSH vulnerability discovery and exploitation workflows, especially CVE-2024-6387 (regreSSHion), with additional checks for CVE-2020-14145, CVE-2021-28041, CVE-2019-16905, and CVE-2018-15473. The repository contains 10 files, primarily Python modules: a launcher, menu/UI, core framework, scanner, exploit manager, listener manager, system checker, setup script, plus README and requirements. Repository structure and purpose: - no_regresh_launcher.py: simple startup wrapper that imports the menu system and launches the framework. - no_regresh_menu.py: interactive CLI front-end exposing scanner, exploitation, listener, system status, and log viewing workflows. - no_regresh_main.py: core framework utilities including logging, signal handling, banner display, SSH banner grabbing, and version-to-CVE matching logic. - no_regresh_scanner.py: multithreaded network scanner for IP ranges or single hosts, focused on SSH service discovery and banner-based vulnerability assessment, with export/report support. - no_regresh_exploit.py: exploit/payload module. It defines payload configuration/result structures and generates multiple shell payload variants (bash, Python, PowerShell, Perl, bind shell, shellcode stubs). It also includes post-exploitation helper routines for persistence, exfiltration prep, lateral movement prep, and cleanup steps. - no_regresh_listener.py: local listener subsystem implementing a Python TCP listener and management for active listeners, intended to receive reverse-shell connections and provide an interactive shell-like session. - no_regresh_system.py: environment validation and reporting, checking Python version, modules, tools, permissions, connectivity, firewall/AV status, and generating JSON system reports. - setup.py: installer/bootstrap script that installs Python dependencies, checks for external tools, optionally installs packages via apt/yum, creates directories, and prepares the environment. Main exploit capabilities: 1. Network reconnaissance: scans IP ranges with threading, probes SSH banners, and identifies likely vulnerable OpenSSH versions. 2. Vulnerability targeting: maps observed OpenSSH banners to supported CVEs and drives targeted workflows. 3. Payload generation: creates reverse-shell payloads for multiple interpreters and a Python bind-shell payload; includes base64-encoded bash and simple shellcode placeholders. 4. Listener operations: starts local listeners on configurable ports, defaulting to 0.0.0.0 and commonly 4444, to catch reverse connections. 5. Post-exploitation support: includes helper logic and operator guidance for file transfer, screenshots, keylogging, persistence, exfiltration, lateral movement, and cleanup. The code appears to be an operational offensive toolkit rather than a pure detector. However, based on the visible content, the vulnerability identification is largely banner/version based, and the actual exploit reliability for CVE-2024-6387 is not fully verifiable from the truncated excerpts. Still, the repository clearly contains exploit-oriented payload and listener functionality beyond simple detection.OHHDamnBRO · Disclosed Sep 26, 2025 · python · markdown · network · localOperationalssh-enumThis repository is a Python-based SSH user-enumeration research and detection project rather than a single weaponized exploit. Its offensive capability is network-based probing of SSH services to determine whether usernames can be distinguished through authentication behavior, timing differences, or tool-assisted enumeration. The main orchestrator is run_investigation.py, which executes a multi-stage pipeline: raw SSH banner grabbing and version parsing, repeated Paramiko authentication attempts against candidate usernames, statistical timing analysis for CVE-2016-6210-style leakage, and auth.log-based detection engineering. Repository structure is split cleanly into attack_tools and detection_tools. attack_tools/banner_fingerprinter.py opens a raw TCP socket to the SSH port, captures the pre-auth banner, extracts implementation/version/OS hints, and maps versions against a small local CVE registry including CVE-2016-6210, CVE-2023-38408, and CVE-2024-6387. attack_tools/manual_ssh.py is the core probing component: it uses Paramiko to attempt password authentication for each username, records elapsed time until AuthenticationException or connection failure, caches the remote SSH banner, and saves structured JSON results. attack_tools/hydra_automation.py and attack_tools/metasploit_scanner.py are wrappers around external tools; they automate Hydra and Metasploit auxiliary/scanner/ssh/ssh_enumuser respectively, parse outputs, and save findings. The detection side is substantial. detection_tools/log_parser.py parses SSH-related auth.log events such as failed password, invalid user, accepted login, and disconnects. detection_tools/pattern_detector.py identifies rapid username cycling from one IP, wordlist correlation, evenly spaced attempts suggesting automation, and distributed probing of the same username from multiple IPs. detection_tools/response_analyzer.py performs Welch’s t-test and Cohen’s d calculations to decide whether valid and invalid usernames are distinguishable by timing. alerting_system.py formats alerts. The repository also includes notebooks for exploratory analysis, wordlists of common usernames, saved JSON outputs from prior runs, and unit tests. Main exploit capabilities: (1) unauthenticated SSH banner fingerprinting over TCP/22; (2) repeated password-auth attempts against many usernames to test for enumeration leakage; (3) optional automation of Hydra and Metasploit enumeration workflows; (4) statistical determination of whether timing differences imply username existence; and (5) post-event detection/reporting from SSH logs. There is no custom RCE payload or shell delivery. The practical result is reconnaissance and validation of SSH username enumeration exposure, plus defender-focused detection artifacts. Based on the included results, the tested OpenSSH 8.9p1 target did not appear vulnerable to timing-based username enumeration, though its banner exposed version information and matched CVE ranges in the local triage registry.Alisha-chaudhary · Disclosed Apr 30, 2026 · python · json · networkOperationalCVE-2024-6387Small repository containing a minimal README and a single C exploit source for CVE-2024-6387 (the OpenSSH 'regreSSHion' signal-handler race condition). The code is a standalone network exploit, not tied to a common framework. Its purpose is to repeatedly connect to a target SSH service, perform enough of the SSH handshake to reach the vulnerable pre-authentication code path, shape heap state, estimate parsing timing, and then attempt to trigger a SIGALRM race at a precise moment to obtain remote code execution as root. Repository structure is simple: README.md only names the CVE, while exploit.c contains all logic. The source defines constants such as MAX_PACKET_SIZE, LOGIN_GRACE_TIME, and MAX_STARTUPS; candidate glibc base addresses for ASLR bypass; and a placeholder shellcode buffer. Declared/visible functions indicate the exploit workflow: setup_connection establishes a non-blocking TCP socket; send_ssh_version/receive_ssh_version and send_kex_init/receive_kex_init support SSH handshake; prepare_heap performs heap grooming; time_final_packet measures parsing timing; create_public_key_packet and create_fake_file_structure craft attacker-controlled protocol data and fake memory structures; attempt_race_condition performs the timed trigger. Operationally, main accepts an IP and port, iterates over guessed glibc base addresses, and performs up to 20,000 attempts with short delays between tries. A second visible routine, perform_exploit, repeats similar logic with a feedback-based timing adjustment loop over 10,000 attempts, suggesting iterative tuning to improve race reliability. The exploit comments explicitly note that shellcode, glibc bases, heap layout, timing parameters, and file structure offsets require target-specific adjustment. That makes this more than a pure PoC, but still not turnkey weaponization: it contains exploitation scaffolding and attack logic, yet the payload is incomplete and success handling is limited to printing a possible success message. No hardcoded external URLs, domains, or IPs are embedded in the visible code. The only network target is the operator-supplied SSH server address and port. Overall, this is a standalone remote exploit implementation for vulnerable OpenSSH on glibc-based Linux systems, focused on pre-authentication heap manipulation and race-condition timing to achieve root-level code execution.hasan8babiker · Disclosed Aug 6, 2026 · c · markdown · networkOperationalCVE_AnalysisThe nine-file repository contains one substantive exploit: a Bash script for CVE-2025-32463 that generates and compiles a C NSS module, prepares an attacker-controlled chroot configuration, and invokes vulnerable sudo to attempt root command execution. The default payload launches Bash, while script arguments select another command. Its rm -rf operation targets the generated temporary staging directory and is cleanup, not evidence of a fake exploit. The compiler command includes -Wl,-init,woot although no woot function is defined; this is a build/load portability concern, and successful execution is not established by the supplied files. The sudo directory also contains Ubuntu 24.04 Dockerfiles building vulnerable sudo 1.9.17 and patched 1.9.17p1, both starting as user lowpriv, plus a Docker build/run command reference. Those commands assume the appropriate lab directory is the build context; there is no Dockerfile beside Docker_setup itself. Four files contain executable or build instructions, with C embedded inside the Bash script. The remaining files are three READMEs, an MIT license, and .gitignore. The OpenSSH CVE-2024-6387 directory is documentation-only. Both CVE READMEs link analysis PDFs that are absent from the supplied inventory. The exploit has no network communications; explicit downloads occur only while building the labs. Containerization supports testing and does not demonstrate a container escape. No framework integration is present. Repository URL, revision, and archive size were not provided; empty metadata strings and size 0 represent unavailable values.jigrit · Disclosed Sep 29, 2026 · bash · c · localOperationalcve-2024-6387-pocThis repository is a small standalone proof-of-concept for CVE-2024-6387 (regreSSHion), containing one C exploit source file, a short README, and a long copy of the Qualys advisory. The main file, 7etsuo-regreSSHion.c, is a network exploit targeting OpenSSH sshd on glibc-based Linux systems via the unauthenticated SSH service. It accepts an IP and port, opens a TCP socket, performs a partial SSH handshake, prepares heap state with crafted packets, estimates parsing time, and repeatedly attempts to win the SIGALRM race condition around LoginGraceTime expiration. The code loops through candidate glibc base addresses for crude ASLR guessing and performs thousands of attempts, reflecting the probabilistic nature of the bug. The exploit is clearly intended to achieve remote code execution as root, but it is incomplete and best classified as a POC rather than an operational exploit. The source explicitly states that the shellcode is a placeholder, glibc bases need adjustment, timing parameters require tuning, heap layout must be adapted per target, and structure offsets must be verified for the target glibc version. The truncated code also shows helper routines such as setup_connection, send_ssh_version, receive_ssh_version, send_kex_init, receive_kex_init, perform_ssh_handshake, prepare_heap, time_final_packet, attempt_race_condition, create_public_key_packet, and create_fake_file_structure, which together indicate the exploit’s structure: establish SSH connectivity, shape memory state, then trigger the race with carefully timed packet delivery. No hardcoded victim infrastructure, C2, callback host, or post-exploitation endpoint is present. The only network target is the operator-supplied SSH server address and port. The repository’s README summarizes the vulnerability and affected versions, while regresshion.txt provides the original advisory, exploitation theory, affected version history, and mitigation guidance. Overall, this repo is a standalone C-based remote exploit POC for OpenSSH regreSSHion, focused on demonstrating the race-condition exploitation workflow rather than delivering a finished weaponized payload.7etsuo · Disclosed Jul 1, 2024 · c · markdown · networkPoCcve-2024-6387-pocThis repository contains a proof-of-concept exploit for CVE-2024-6387 (regreSSHion), a critical remote code execution vulnerability in OpenSSH's server (sshd) on glibc-based Linux systems. The exploit targets a signal handler race condition introduced in OpenSSH 8.5p1 and present up to 9.7p1, allowing unauthenticated attackers to execute arbitrary code as root by carefully timing connections and exploiting unsafe async-signal handling in the SSH daemon. The main file, '7etsuo-regreSSHion.c', is a C program that repeatedly attempts to exploit the race condition by connecting to a user-specified IP and port (typically SSH port 22), performing the SSH handshake, and sending crafted packets to manipulate the heap and trigger the vulnerability. The shellcode is a placeholder and must be replaced with a real payload for practical exploitation. The exploit requires tuning for timing and heap layout, and may need adjustment for specific glibc versions. The repository also includes a README.md with a brief description and a detailed advisory (regresshion.txt) explaining the vulnerability, affected versions, and mitigation strategies. No hardcoded IPs, domains, or file paths are present; the exploit is fully user-configurable for the target. The code is a functional POC and not weaponized, as it requires manual payload insertion and tuning for each target.zgzhang · Disclosed Jul 1, 2024 · c · networkPoCcve-2024-6387-pocThis repository contains a proof-of-concept exploit for CVE-2024-6387 (regreSSHion), a critical remote code execution vulnerability in OpenSSH's sshd on glibc-based Linux systems. The main exploit file, '7etsuo-regreSSHion.c', is a C program that targets a race condition in the SIGALRM handler of vulnerable OpenSSH versions (8.5p1 to 9.8p1). The exploit attempts to trigger the race condition by making repeated SSH connections to the target server, carefully timing packets to manipulate the heap and exploit the async-signal-unsafe code path. The shellcode is a placeholder and must be replaced by the user with actual payload code. The exploit is unauthenticated and, if successful, results in remote code execution as root. The repository also includes a README.md summarizing the vulnerability and a copy of the Qualys security advisory (regresshion.txt) with detailed technical background. The exploit requires the attacker to specify the target IP and port (typically port 22 for SSH). The code is a POC and may require tuning for timing, heap layout, and glibc base addresses to work reliably on different targets.acrono · Disclosed Jul 1, 2024 · c · networkPoCcve-2024-6387-pocThis repository contains a proof-of-concept exploit for CVE-2024-6387 (regreSSHion), a critical remote code execution vulnerability in OpenSSH's sshd (versions 8.5p1 to 9.8p1) on glibc-based Linux systems. The exploit leverages a race condition in the SIGALRM handler, which calls async-signal-unsafe functions, allowing an unauthenticated attacker to execute arbitrary code as root. The main file, '7etsuo-regreSSHion.c', is a C program that repeatedly attempts to exploit the race condition by connecting to a user-specified SSH server (IP and port), performing the SSH handshake, and sending crafted packets to manipulate heap layout and timing. The shellcode is a placeholder and must be replaced by the user with a suitable payload. The exploit requires fine-tuning for the target's glibc base address, timing, and heap layout. The repository also includes a README.md summarizing the vulnerability and a copy of the Qualys security advisory (regresshion.txt) detailing the technical background and mitigation steps. No hardcoded endpoints are present; the target is specified at runtime. The exploit is a POC and not weaponized, requiring manual adjustment and payload insertion.lflare · Disclosed Jul 1, 2024 · c · networkPoCCVE-2024-6387-PoCThis repository contains a single C-language proof-of-concept exploit (PoC RCE_OpenSSH.c) targeting CVE-2024-6387, a race condition vulnerability in OpenSSH 9.2p1 (regreSSHion) on glibc-based Linux systems. The exploit attempts to achieve remote code execution as root by exploiting a signal handler race in the SSH daemon. The code is structured to repeatedly connect to a user-specified IP and port (the target's SSH service), perform the SSH handshake, and attempt the race condition using various glibc base addresses to bypass ASLR. The shellcode is a placeholder and must be replaced with actual payload code by the user. The exploit requires fine-tuning of timing and heap manipulation parameters for each target. The repository also includes a minimal README. No hardcoded IPs, domains, or file paths are present; the target is specified at runtime. The exploit is a functional PoC and not weaponized, as it requires manual payload insertion and parameter tuning.getdrive · Disclosed Jul 1, 2024 · c · networkPoCCVE-2024-6387This repository contains a proof-of-concept exploit for CVE-2024-6387 (regreSSHion), a critical remote code execution vulnerability in OpenSSH server (sshd) on glibc-based Linux systems. The main exploit file, '7etsuo-regreSSHion.c', is a C program that targets a signal handler race condition in affected OpenSSH versions (8.5p1 through 9.8p1). The exploit works by repeatedly connecting to the target SSH server and attempting to trigger the race condition, which can lead to unauthenticated remote code execution as root. The shellcode is a placeholder and must be replaced with a real payload by the user. The exploit requires tuning for the target's glibc base address and timing parameters, as described in the code comments and the included Qualys advisory ('regresshion.txt'). The README provides usage instructions and a brief vulnerability summary. No hardcoded IPs or domains are present; the target is specified at runtime. The repository is structured as a typical PoC: one C source file (the exploit), a README, and a detailed advisory text file.P4x1s · Disclosed Jul 2, 2024 · c · networkPoCCVE-2024-6387This repository contains two Python proof-of-concept scripts (PoC.py and PoCipv6.py) and a README.md. The scripts target the OpenSSH CVE-2024-6387 vulnerability, a critical race condition in the OpenSSH signal handler that can lead to remote code execution as root. Both scripts implement a multithreaded approach to increase the chances of successfully triggering the race condition, with support for both IPv4 and IPv6 targets. The exploit works by connecting to the target's SSH service, performing a handshake, preparing the heap, and then attempting to trigger the race condition by sending a specially crafted payload. The scripts allow configuration of the target IP, port, number of attempts, number of threads, and glibc base address. The README provides background on the vulnerability, usage instructions, and legal disclaimers. No hardcoded IPs, domains, or file paths are present; all target information is supplied by the user at runtime.d0rb · Disclosed Jul 2, 2024 · python · markdown · networkPoCCVE-2024-6387-POCThis repository contains a Python proof-of-concept exploit for CVE-2024-6387, a critical remote code execution vulnerability in OpenSSH. The main file, Exploit_2024_6387.py, is a multithreaded script that attempts to exploit a race condition in the OpenSSH server by repeatedly connecting to the target's SSH port (default 22 at IP 192.168.1.100) and sending crafted payloads. The exploit uses multiple threads to increase the likelihood of success and stops further attempts once exploitation is successful. The README.md provides background on the vulnerability, usage instructions, and legal disclaimers. The exploit is a POC and does not include a fully weaponized or customizable payload, but demonstrates the ability to achieve root-level code execution if the target is vulnerable. The repository is straightforward, with clear separation between code and documentation, and is intended for educational and research purposes only.SkyGodling · Disclosed Jul 2, 2024 · python · markdown · networkPoCCVE-2024-6387-Exploit-POCThis repository contains a proof-of-concept (POC) exploit for CVE-2024-6387, a race condition vulnerability in OpenSSH that can lead to remote code execution. The main file, CVE-2024-6387.py, is a Python script that establishes a TCP connection to a target SSH server, performs a partial SSH handshake, and sends specially crafted packets to manipulate the server's heap memory. The exploit attempts to trigger the race condition by carefully timing packet delivery and heap manipulation, with the goal of executing attacker-supplied shellcode on the server. The script includes a placeholder for shellcode, which must be replaced by the user with a real payload for actual exploitation. The README.md provides a detailed explanation of the exploit's structure, usage instructions, and legal disclaimer. The exploit targets network-accessible SSH servers running vulnerable versions of OpenSSH, and requires the attacker to specify the target IP and port. No hardcoded external endpoints are present beyond the default localhost and port 22, which are meant to be replaced by the user.MrR0b0t19 · Disclosed Jul 2, 2024 · python · networkPoCCVE-2024-6387This repository provides a working exploit and scanner for CVE-2024-6387 (regreSSHion), a critical unauthenticated remote code execution vulnerability in OpenSSH server (sshd) on glibc-based Linux systems. The exploit targets a race condition in the SIGALRM signal handler, allowing an attacker to execute arbitrary code as root by sending specially crafted network packets to the SSH service. Repository structure: - '7etsuo-regreSSHion.c': The main C exploit code, which implements the race condition attack. It requires the attacker to specify the target IP and port, and attempts exploitation by brute-forcing timing and glibc base addresses. The shellcode is customizable, allowing for arbitrary payloads (e.g., reverse shell). - 'CVE-2024-6387.py': A Python script that serves as both a scanner and an exploitation orchestrator. It can scan single or multiple targets (from file, CIDR, or list) for vulnerable OpenSSH versions by grabbing SSH banners, and can invoke the C exploit (as a shared library) to perform exploitation. It supports output in CSV, TXT, and JSON formats. - 'README.md': Provides detailed background, usage instructions, payload customization examples, and legal disclaimers. It also includes references to advisories and technical write-ups. - 'targets.txt': Placeholder for a list of target IPs (empty by default). The exploit is operational: it provides a working attack path and customizable payload, but requires the user to compile the C code and optionally generate shellcode (e.g., with msfvenom). The Python script automates scanning and can invoke the exploit for mass exploitation. The main attack vector is network-based, targeting the SSH service (default port 22, but customizable). No hardcoded IPs or domains are present; targets are user-supplied. The exploit is not part of a framework, but is a standalone PoC with practical, real-world impact.l0n3m4n · Disclosed Jul 2, 2024 · c · python · networkPoCCVE-2024-6387This repository contains a proof-of-concept exploit for CVE-2024-6387 (regreSSHion), a critical remote code execution vulnerability in OpenSSH's sshd on glibc-based Linux systems. The exploit is implemented in C (7etsuo-regreSSHion.c) and targets a race condition in the SIGALRM handler, which can be triggered by unauthenticated remote attackers. The exploit attempts to win a race condition by repeatedly connecting to the target SSH server and sending specially crafted packets, aiming to execute arbitrary shellcode as root. The shellcode is a placeholder and must be replaced with a real payload for practical exploitation. The Makefile provides a simple build process, and the README.md gives usage instructions and details about affected OpenSSH versions. The included regresshion.txt is a detailed advisory from Qualys, explaining the vulnerability, affected versions, and mitigation strategies. The exploit requires the attacker to specify the target's IP address and SSH port, and is designed to work against default or non-hardened configurations. The overall structure is typical for a POC: a single C source file, build instructions, documentation, and a vulnerability advisory.sxlmnwb · Disclosed Jul 3, 2024 · c · makefile · networkPoCCVE-2024-6387This repository contains a Python proof-of-concept (PoC) exploit for CVE-2024-6387, a race condition vulnerability in OpenSSH (also known as 'regreSSHion'). The exploit targets 32-bit glibc-based Linux systems running vulnerable versions of OpenSSH (such as 9.2p1). The main file, 'CVE-2024-6387-poc.py', implements a multi-threaded brute-force approach to trigger the race condition by repeatedly performing SSH handshakes and sending specially crafted packets to the target SSH server. The exploit attempts to manipulate heap memory structures and timing to achieve arbitrary code execution, with a placeholder shellcode included. The README provides detailed setup instructions using Docker to create a vulnerable environment and explains the exploit's statistical nature, requiring a large number of attempts (up to 100,000) to succeed. The exploit is network-based, requiring only the target's IP address and SSH port as input. No hardcoded IPs or domains are present; the target is specified at runtime. The repository is structured with a single exploit script and a comprehensive README, making it a focused PoC for researchers and security professionals.lala-amber · Disclosed Jul 4, 2024 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
AlmalinuxAlmalinuxoperating_system
Amazon Web ServicesAmazon Linuxoperating_system
Amazon Web ServicesLinux 2023operating_system
AppleMacosoperating_system
Arista NetworksEosoperating_system
CanonicalUbuntu Linuxoperating_system
Debian ProjectDebian Linuxoperating_system
FreebsdFreebsdoperating_system
NetApp500f Firmwareoperating_system
NetApp8300 Firmwareoperating_system
NetApp8700 Firmwareoperating_system
NetAppA150 Firmwareoperating_system
NetAppA1k Firmwareoperating_system
NetAppA220 Firmwareoperating_system
NetAppA250 Firmwareoperating_system
NetAppA400 Firmwareoperating_system
NetAppA70 Firmwareoperating_system
NetAppA700s Firmwareoperating_system
NetAppA800 Firmwareoperating_system
NetAppA90 Firmwareoperating_system
NetAppA900 Firmwareoperating_system
NetAppA9500 Firmwareoperating_system
NetAppActiveiq Unified Managerapplication
NetAppBootstrap Osoperating_system
NetAppC190 Firmwareoperating_system
NetAppC250 Firmwareoperating_system
NetAppC400 Firmwareoperating_system
NetAppC800 Firmwareoperating_system
NetAppE-Series Santricity Os Controllerapplication
NetAppFas2720 Firmwareoperating_system
NetAppFas2750 Firmwareoperating_system
NetAppFas2820 Firmwareoperating_system
NetAppOntapapplication
NetAppOntap Select Deploy Administration Utilityapplication
NetAppOntap Toolsapplication
NetbsdNetbsdoperating_system
OpenbsdOpensshapplication
Red HatEnterprise Linux Eusoperating_system
Red HatEnterprise Linux For Arm 64operating_system
Red HatEnterprise Linux For Arm 64 Eusoperating_system
Red HatEnterprise Linux For Ibm Z Systemsoperating_system
Red HatEnterprise Linux For Ibm Z Systems Eusoperating_system
Red HatEnterprise Linux For Power Little Endianoperating_system
Red HatEnterprise Linux For Power Little Endian Eusoperating_system
Red HatEnterprise Linux Server Ausoperating_system
Red HatOpenshift Container Platformapplication
Red HatRed Hat Enterprise Linuxoperating_system
SonicwallSma 6200 Firmwareoperating_system
SonicwallSma 6210 Firmwareoperating_system
SonicwallSma 7200 Firmwareoperating_system
SonicwallSma 7210 Firmwareoperating_system
SonicwallSma 8200v Firmwareoperating_system
SonicwallSra Ex 7000 Firmwareoperating_system
SuseLinux Enterprise Microoperating_system
FAQ

Frequently asked questions

Is CVE-2024-6387 exploited in the wild?
Yes. As of Nov 2, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2024-6387?
Yes. Mallory tracks 27 public exploits or proofs of concept for CVE-2024-6387, the earliest disclosed Jul 1, 2024.
Is there a patch for CVE-2024-6387?
Upgrade upstream OpenSSH to 9.8p1 or later, or install the operating-system or appliance vendor's fixed package or firmware containing the backported correction. The fix removes unsafe operations from the asynchronous SIGALRM handling path.
What products are affected by CVE-2024-6387?
Openbsd Openssh, NetApp 500f Firmware, NetApp 8300 Firmware, NetApp 8700 Firmware, NetApp A150 Firmware, and at least 49 more.
How severe is CVE-2024-6387?
CVE-2024-6387 has a CVSS v3.1 score of 8.1 (High) and an EPSS score of 60.5% (99th percentile) as of Nov 2, 2026.
Activity feed

Recent activity

83 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+36 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence1Every report linking this CVE to a named adversary.
Associated malware3Malware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity27Community discussion across Reddit, Mastodon, and other social sources.