# regreSSHion: unauthenticated RCE in OpenSSH sshd (CVE-2024-6387) · pwn.watch > Qualys found a signal handler race condition in OpenSSH's sshd on glibc-based Linux that can give an unauthenticated attacker remote code execution as root. It is a regression of CVE-2006-5051 that came back in OpenSSH 8.5p1 (October 2020). Exploitation is difficult, but Qualys counted over 14 million potentially vulnerable internet-exposed servers. Fixed in OpenSSH 9.8p1. Page: https://pwn.watch/i/openssh-regresshion-cve-2024-6387 · generated 2026-12-06T19:58:06.567Z ## Status - Severity: high · status: closed · patch: patched - Product: OpenSSH sshd (glibc-based Linux) - Started: 2024-07-01 · closed: 2024-07-01 - CVEs: CVE-2024-6387 - Affected: 8.5p1 up to (not including) 9.8p1; Versions before 4.4p1 unless patched for CVE-2006-5051 and CVE-2008-4109 (Qualys) - Fixed in: 9.8p1 ## Follow this incident - RSS (one item per update): https://pwn.watch/i/openssh-regresshion-cve-2024-6387/feed.xml - JSON Feed: https://pwn.watch/i/openssh-regresshion-cve-2024-6387/feed.json - Full data (timeline, sources, posts, agentBrief): https://pwn.watch/i/openssh-regresshion-cve-2024-6387.json - This file: https://pwn.watch/i/openssh-regresshion-cve-2024-6387/llms.txt ## Updates (newest first) - 2024-07-01: Qualys discloses regreSSHion; OpenSSH 9.8p1 released with the fix (https://blog.qualys.com/vulnerabilities-threat-research/2024/07/01/regresshion-remote-unauthenticated-code-execution-vulnerability-in-openssh-server) ## Fix brief # Security brief: regreSSHion: unauthenticated RCE in OpenSSH sshd (CVE-2024-6387) Source: https://pwn.watch/i/openssh-regresshion-cve-2024-6387 · status: closed (closed Jul 1, 2024) · severity: high · updated Jul 1, 2024 ## Patch status **PATCHED: fixed releases exist. Upgrade to a fixed version.** ## What it is Qualys found a signal handler race condition in OpenSSH's sshd on glibc-based Linux that can give an unauthenticated attacker remote code execution as root. It is a regression of CVE-2006-5051 that came back in OpenSSH 8.5p1 (October 2020). Exploitation is difficult, but Qualys counted over 14 million potentially vulnerable internet-exposed servers. Fixed in OpenSSH 9.8p1. Severity detail: CVSS 8.1 (Red Hat, CNA); rating Important - Product: OpenSSH sshd (glibc-based Linux) - CVE / advisory ids: CVE-2024-6387 ## Affected versions - 8.5p1 up to (not including) 9.8p1 - Versions before 4.4p1 unless patched for CVE-2006-5051 and CVE-2008-4109 (Qualys) ## Check whether you're affected No generic command applies (the product is a hosted service, appliance or desktop app). Check the installed version in its admin UI / About screen and compare with the versions above. ## Fix Upgrade to one of these fixed versions (or later on the same branch): - 9.8p1 After upgrading, re-run the checks above and redeploy/restart the affected services. ## Latest updates - Jul 1, 2024: Qualys discloses regreSSHion; OpenSSH 9.8p1 released with the fix ## Advisories - [OpenSSH 9.8 release notes](https://www.openssh.com/txt/release-9.8) (OpenSSH) - [NVD: CVE-2024-6387](https://nvd.nist.gov/vuln/detail/CVE-2024-6387) (NVD) ## Write-ups & news - [regreSSHion: remote unauthenticated code execution vulnerability in OpenSSH server](https://blog.qualys.com/vulnerabilities-threat-research/2024/07/01/regresshion-remote-unauthenticated-code-execution-vulnerability-in-openssh-server) --- Machine-readable: https://pwn.watch/i/openssh-regresshion-cve-2024-6387.json · all incidents: https://pwn.watch/incidents.json. Verify against the vendor advisory before changing production systems.