Security Advisory

CVE-2024-6387: regreSSHion OpenSSH sshd Race

Last updated:
  • CVE-2024-6387

CVE-2024-6387, called regreSSHion, is a race condition in the OpenSSH server's SIGALRM handler that lets an unauthenticated remote attacker run code as root on glibc-based Linux. It affects Portable OpenSSH 8.5p1 to 9.7p1, was fixed in 9.8p1 on 2024-07-01, and NVD scores it 8.1. Siemens and ABB list affected industrial devices.

Vulnerability summary

CVSS base score

8.1

High severity

EPSS score (FIRST)

99.5%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2024-6387 · Source: NVD

Affected components

ComponentCPEVersion range
Portable OpenSSH (sshd)cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:*8.5p1 up to and including 9.7p1, and before 4.4p1 unless patched for CVE-2006-5051 and CVE-2008-4109 (fixed in 9.8p1, per Qualys and OpenSSH 9.8 release notes)
Siemens SINUMERIK ONE, SINEMA Remote Connect Server, SINAMICS IIoT module, Industrial Edge Management OS—fixed in SINUMERIK ONE V6.24, SINEMA Remote Connect Server V3.2 SP2 and SINAMICS IIoT module V1.0 HF1; Siemens lists no fix for IEM-OS (per SSA-446545)
Siemens SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP (GNU/Linux subsystem)—V3.1.5 and later listed as affected, no fix available; mitigation is limiting access to the subsystem shell (per SSA-082556)
ABB Arctic wireless gateways ARG600, ARC600, ARR600, ARP600—firmware 3.4.10 to 3.4.13 (per ABB advisory republished by CISA as ICSA-25-100-09)

What does this mean for affected devices?

CVE-2024-6387 is a signal handler race (CWE-362 in NVD, CWE-364 from Red Hat) in sshd. The Qualys advisory explains that when a client does not authenticate within LoginGraceTime (120 seconds by default), sshd's SIGALRM handler calls functions that are not async-signal-safe, such as syslog(). Qualys calls it a regression of CVE-2006-5051 introduced in October 2020 by commit 752250c, which first shipped in 8.5p1, and gives three ranges: before 4.4p1 vulnerable unless patched, 4.4p1 to before 8.5p1 not vulnerable, and 8.5p1 to before 9.8p1 vulnerable again. It affects sshd in its default configuration.

The exploit Qualys demonstrated targets glibc, where syslog() calls malloc() and free(), and gives "unauthenticated remote code execution as root" because the handler runs in sshd's privileged, unsandboxed code. Against Debian 12's 9.2p1 on i386 it took about 6 to 8 hours of connections. The OpenSSH 9.8 release notes add that exploitation on non-glibc systems "is conceivable but has not been examined" and that systems lacking ASLR "may potentially have an easier path to exploitation". OpenBSD is not vulnerable. NVD's Primary score is 8.1, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD); the high attack complexity reflects the race.

Industrial vendors confirm the device exposure. Siemens ProductCERT SSA-446545 lists SINUMERIK ONE (fixed in V6.24), SINEMA Remote Connect Server (V3.2 SP2), the SINAMICS IIoT module (V1.0 HF1) and Industrial Edge Management OS, for which Siemens names no fix, and recommends disabling SSH or limiting port 22 to trusted systems. SSA-082556 lists the GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP with no fix available. ABB's advisory for its Arctic ARG600, ARC600, ARR600 and ARP600 wireless gateways, republished by CISA as ICSA-25-100-09, lists firmware 3.4.10 to 3.4.13.

This CVE is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13, CISA KEV), but FIRST EPSS gives it 0.995, the 99.9th percentile, in its 2026-11-15 dataset (FIRST EPSS). Our KEV and EPSS prioritisation guide covers how to rank a CVE in that position.

Two version traps matter when matching firmware. NVD's OpenSSH range ends at versionEndIncluding 9.8, so a tool that drops the p1 suffix can flag the fixed 9.8p1. Distributions backport instead of upgrading: the Debian tracker lists bookworm fixed at 1:9.2p1-2+deb12u3 (DSA-5724-1) and bullseye, on 8.4p1, as not affected. If a fixed build cannot ship at once, Qualys and OpenSSH give LoginGraceTime 0 as the mitigation, at the cost of easier MaxStartups exhaustion. Our OpenSSH vulnerabilities in embedded firmware guide explains why the C library decides the risk on a device, and the memory corruption fix guide covers checking that a fix landed in the shipped binary.

How to fix this class of issueNo dedicated SoftWSP guide covers this weakness class; the fix is usually the vendor patch or firmware update referenced above. Our related guide explains how to plan and verify it: NIST SP 800-40 Rev. 4: enterprise patch management planning, explained.

Evidence

  • SIGALRM handler race after LoginGraceTime; regression of CVE-2006-5051 from commit 752250c in 8.5p1; ranges <4.4p1, 8.5p1 to <9.8p1; glibc RCE as root; ~6-8 hours on Debian 12 i386; LoginGraceTime 0 mitigation. — Qualys Security Advisory
  • 9.8p1 released 2024-07-01; Portable OpenSSH 8.5p1 to 9.7p1 inclusive; non-glibc exploitation conceivable but not examined; no-ASLR systems may have an easier path; OpenBSD not vulnerable. — OpenSSH release notes
  • NVD Primary CVSS 3.1 8.1, AV:N/AC:H/PR:N/UI:N; CWE-362 (NVD), CWE-364 (Red Hat); CPE ranges openssh before 4.4 and 8.6 to 9.8 inclusive, plus 8.5p1 listed as an exact version. — NVD
  • SINUMERIK ONE fix V6.24, SINEMA Remote Connect Server V3.2 SP2, SINAMICS IIoT module V1.0 HF1, IEM-OS no fix; mitigations disable SSH, restrict port 22. — Siemens SSA-446545
  • S7-1500 CPU 1518(F)-4 PN/DP MFP GNU/Linux subsystem V3.1.5 and later affected, no fix available (version 8, 2026-10-13). — Siemens SSA-082556
  • ABB Arctic ARG600/ARC600/ARR600/ARP600 firmware 3.4.10 to 3.4.13 affected. — CISA ICSA-25-100-09 (ABB) CSAF
  • Debian bookworm fixed 1:9.2p1-2+deb12u3 (DSA-5724-1); bullseye not affected. — Debian Security Tracker
  • Not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). — CISA KEV
  • EPSS 0.99506 (99.9th percentile), dataset 2026-11-15, read 2026-11-16. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Qualys Security Advisory: regreSSHion (CVE-2024-6387)
  3. OpenSSH release notes (9.8/9.8p1)
  4. Siemens SSA-446545 (regreSSHion in industrial products)
  5. Siemens SSA-082556 (S7-1500 CPU 1518 MFP GNU/Linux subsystem)
  6. CISA ICSA-25-100-09: ABB Arctic Wireless Gateways (CSAF)
  7. Debian Security Tracker
  8. CISA KEV
  9. CISA KEV data (catalog JSON)
  10. FIRST EPSS

Frequently asked questions

Which OpenSSH versions does CVE-2024-6387 affect?

Portable OpenSSH 8.5p1 up to and including 9.7p1, plus versions before 4.4p1 that were never patched for CVE-2006-5051 and CVE-2008-4109. Versions 4.4p1 to before 8.5p1 are not affected, and 9.8p1, released 2024-07-01, fixes it (per Qualys and the OpenSSH 9.8 release notes).

Is a musl or uClibc device affected by regreSSHion?

The race is in sshd itself, so a musl or uClibc build in the 8.5p1 to 9.7p1 range still carries the bug. The demonstrated root exploit relies on glibc's syslog() calling malloc() and free(); OpenSSH says exploitation on non-glibc systems is conceivable but has not been examined (per Qualys and OpenSSH).

Which industrial devices are affected by CVE-2024-6387?

Siemens SSA-446545 lists SINUMERIK ONE (fixed in V6.24), SINEMA Remote Connect Server (V3.2 SP2), the SINAMICS IIoT module (V1.0 HF1) and Industrial Edge Management OS. SSA-082556 lists the S7-1500 CPU 1518 MFP GNU/Linux subsystem, and ABB lists Arctic gateway firmware 3.4.10 to 3.4.13 (per Siemens ProductCERT and ICSA-25-100-09).

What is the mitigation if a device cannot be updated?

Set LoginGraceTime 0 in sshd_config, which removes the code execution path but makes it easier to exhaust MaxStartups connections. Siemens also recommends disabling SSH where possible and limiting port 22 to trusted systems (per Qualys and Siemens SSA-446545).

Is CVE-2024-6387 in the CISA KEV catalog?

No, it is not listed as of 2026-11-16 (catalog version 2026.11.13). FIRST EPSS gives it 0.995, the 99.9th percentile, in the 2026-11-15 dataset (per CISA KEV and FIRST EPSS).