How to Detect the OpenSSH Vulnerability – CVE-2024-6387 – regreSSHion

Frame 1000002163

In this OX Security briefing, CEO and co-founder Neatsun Ziv talks with senior security researcher Ronen Itias about CVE-2024-6387, the OpenSSH vulnerability nicknamed regreSSHion. They explain what the flaw is (a network-triggerable remote code execution in a core Linux component), why its 8.1 rating needs context, and why exploitation is hard because it relies on a race condition that, in the lab, took thousands of attempts over many hours on old 32-bit Linux. They cover why it is a roughly 20-year-old regression, why 64-bit systems are much harder to attack, the practical workarounds (timeout and connection limits), and a measured prediction of whether it will be exploited in the wild.

Key Takeaways

  • regreSSHion (CVE-2024-6387) is an OpenSSH remote code execution flaw. It sits in a core Linux component, can be triggered over the network, and potentially affects millions of exposed machines.
  • Rated 8.1 (High), but the details matter. On the surface it looks huge; reading the Qualys write-up shows the real severity and risk are more nuanced than the headline number.
  • It is a race condition, so it is hard to exploit. Unlike Heartbleed, you can’t just send a request; in the lab it took about 10,000 attempts over six to eight hours on old 32-bit Linux with ~100 open connections.
  • It is a roughly 20-year-old regression. The same bug was fixed nearly two decades ago and reappeared around 2020 when a vulnerable function was reintroduced, hence the name “regreSSHion.”
  • 64-bit is far harder to exploit than 32-bit. ASLR over a 64-bit address space makes exploitation extremely hard, if possible at all; the demonstrated exploit was on 32-bit Linux.
  • Mitigations exist, but patching is the priority. Reduce the login grace timeout (default 120 seconds), limit concurrent connections in the SSH config, patch, and don’t run unverified PoC code from obscure repositories.

Video Transcript

Speakers

Neatsun Ziv

Neatsun Ziv

View on LinkedIn

CEO and Co-Founder, OX Security

CEO and co-founder of OX Security.

Ronen Atias

Ronen Atias

View on LinkedIn

Senior Security Researcher, OX Security

Senior security researcher at OX Security.

FAQ

A remote code execution vulnerability in OpenSSH, a prominent component of Linux. It can be triggered over the network, and because Linux runs so much of the internet, millions of machines are potentially exposed.

It is rated 8.1, high but not critical. On the surface it looks alarming, but the Qualys research write-up shows that exploitation is genuinely hard and the practical risk is more nuanced.

It is a race condition, not a simple request-and-response bug. In lab conditions it took roughly 10,000 attempts over six to eight hours on old 32-bit Linux with about 100 concurrent connections, and the payload differs per Linux flavor.

The same bug and race condition were reported and fixed nearly 20 years ago, then reappeared around 2020 when the vulnerable function was reintroduced, so operating systems from that period became vulnerable again.

Far less so. ASLR over a 64-bit address space makes exploitation extremely hard, if possible at all; the demonstrated exploit was on 32-bit systems.

Patch. In the meantime, reduce the login grace timeout (120 seconds by default) toward zero, limit the number of concurrent SSH connections in the configuration file, and avoid running unverified proof-of-concept code from untrusted sources.