What is the OpenSSH regreSSHion vulnerability (CVE-2024-6387)?
A regression in OpenSSH reintroduced a race condition that could allow an attacker to execute arbitrary commands on affected systems. Exploitation is highly complex and limited to specific 32-bit Linux distributions, requiring many requests and a stable network.
intruder.io
Published on intruder.io
On the 1st of July, Qualys released research regarding a vulnerability within OpenSSH. This vulnerability could in limited circumstances allow an attacker to execute arbitrary commands on the affected system by exploiting a race condition within OpenSSH.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a regression introduced in October 2020 when protections against a 2006 vulnerability were mistakenly removed, reintroducing a race condition.
Impact
An attacker could execute arbitrary commands on affected systems, but exploitation is limited to specific 32-bit Linux distributions, takes hours to days, and can be blocked by Fail2Ban or similar protections.
What the attacker needed
OpenSSH 8.5p1 to 9.8p1 or 4.4p1 and before; 32-bit Linux distribution; Stable network connection (~10ms jitter); Ability to send ~10,000 requests
The fix
Apply the latest patches; if unable to patch, set LoginGraceTime to 0 to protect against code execution (but not denial of service), and avoid exposing SSH to the internet or use Fail2Ban.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
OpenSSH is a program that lets you log in to other computers securely. A race condition is a bug where two things happen at almost the same time and the program gets confused. In this case, an attacker might be able to run their own commands on the computer, but it is very hard to do and only works in specific setups.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.