OpenSSH RCE Vulnerability (CVE-2024–6387): What You Need to Kno
A race condition in how sshd handles timeout signals could let an unauthenticated attacker run code as root on affected Linux systems. The text says this is practical mainly on 32-bit systems, where a root shell could be obtained within hours.
Published on medium.com
A serious vulnerability has been disclosed in OpenSSH (CVE-2024–6387), potentially allowing unauthenticated remote code execution as root on affected Linux systems.
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 race condition in sshd's handling of timeout signals, introduced in OpenSSH 8.5p1, that can be manipulated to gain code execution.
Impact
An unauthenticated remote attacker could gain root code execution, though the text says this is only practical on 32-bit systems and not yet on 64-bit ones.
What the attacker needed
Network access to sshd; 32-bit Linux with glibc; OpenSSH 8.5p1 to 9.8p1; hours of timing attempts
The fix
It should be fixed by upgrading to OpenSSH 9.8p1 or the distribution's patched release, with setting LoginGraceTime to 0 as a temporary workaround that carries a denial-of-service risk.
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 the software that lets you log in to a Linux server remotely. A race condition means two things happen at almost the same moment and the program handles them in the wrong order. Here that mistake could let someone who has not logged in at all run their own commands with the highest level of permission.
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.