Skip to content
OpenAdvisories

Description

A security regression (CVE-2006-5051) was discovered in OpenSSH's server (sshd). There is a race condition which can lead sshd to handle some signals in an unsafe manner. An unauthenticated, remote attacker may be able to trigger it by failing to authenticate within a set time period.

Affected products

VendorProductAffectedFixed
— OpenSSH 8.5p1 – ≤ 9.7p1 —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9.2 Extended Update Support — —
Red Hat Red Hat OpenShift Container Platform 4.13 — —
Red Hat Red Hat OpenShift Container Platform 4.14 — —
Red Hat Red Hat OpenShift Container Platform 4.15 — —
Red Hat Red Hat OpenShift Container Platform 4.16 — —
Red Hat Red Hat Ceph Storage 5 — —
Red Hat Red Hat Ceph Storage 6 — —
Red Hat Red Hat Ceph Storage 7 — —
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat OpenShift Container Platform 4 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 openssh 1:9.7p1-7 —
Debian 13 openssh 1:9.7p1-7 —
Debian 12 openssh 1:9.2p1-2+deb12u3 DSA-5724-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS openssh 1:9.6p1-3ubuntu13.3 USN-6859-1
Ubuntu 22.04 LTS openssh 1:8.9p1-3ubuntu0.10 USN-6859-1
ReleasePackageFixed inAdvisory
RHEL 9 openssh +4 8.7p1-38.el9_4.1 RHSA-2024:4312
RHEL 9 pam_ssh_agent_auth 0.10.4-5.38.el9_4.1 RHSA-2024:4312
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.2 EUS openssh +4 8.7p1-30.el9_2.4 RHSA-2024:4340
RHEL 9.2 EUS pam_ssh_agent_auth 0.10.4-5.30.el9_2.4 RHSA-2024:4340
RHEL 9.0 E4S openssh +4 8.7p1-12.el9_0.1 RHSA-2024:4389
RHEL 9.0 E4S pam_ssh_agent_auth 0.10.4-4.12.el9_0.1 RHSA-2024:4389

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 openssh +4 8.7p1-38.el9_4.1 ALSA-2024:4312
AlmaLinux 9 pam_ssh_agent_auth 0.10.4-5.38.el9_4.1 ALSA-2024:4312
ReleasePackageFixed inAdvisory
SLES 15 SP6 openssh +1 9.6p1-150600.6.3.1 SUSE-SU-2024:2275-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLE Micro 6.0 openssh 9.6p1-2.1 SUSE-SU-2025:20009-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed openssh 9.6p1-10.1 openSUSE-SU-2024:14088-1
openSUSE Leap 15.6 openssh +1 9.6p1-150600.6.3.1 SUSE-SU-2024:2275-2, SUSE-SU-2024:2275-1
ReleasePackageFixed inAdvisory
Alpine v3.24 openssh 9.8_p1-r0 —
Alpine v3.23 openssh 9.8_p1-r0 —
Alpine v3.22 openssh 9.8_p1-r0 —
Alpine v3.21 openssh 9.8_p1-r0 —
Alpine v3.20 openssh 9.7_p1-r4 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 openssh 9.6_p1-r1 —
Alpine v3.18 openssh 9.3_p2-r2 —
Alpine v3.17 openssh 9.1_p1-r6 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 openssh +3 8.7p1-8.amzn2023.0.11 ALAS2023-2024-649
Amazon Linux 2023 pam_ssh_agent_auth 0.10.4-4.8.amzn2023.0.11 ALAS2023-2024-649

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 openssh 9.8p1-1 —
Azure Linux 2 (CBL-Mariner) openssh 8.9p1-6 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 openssh +4 8.7p1-38.0.2.el9 ELSA-2024-12468, ELSA-2024-4312
Oracle Linux 9 pam_ssh_agent_auth 0.10.4-5.38.0.2.el9 ELSA-2024-12468, ELSA-2024-4312

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

GitHub 97 repositories · most starred shown

  • xaitax/CVE-2024-6387_Check ★ 527 · Jul 1, 2024

    CVE-2024-6387_Check is a lightweight, efficient tool designed to identify servers running vulnerable versions of OpenSSH

  • zgzhang/cve-2024-6387-poc ★ 497 · Jul 1, 2024

    a signal handler race condition in OpenSSH's server (sshd)

  • acrono/cve-2024-6387-poc ★ 375 · Jul 1, 2024

    32-bit PoC for CVE-2024-6387 — mirror of the original 7etsuo/cve-2024-6387-poc

  • Karmakstylez/CVE-2024-6387 ★ 200 · Jul 8, 2024

    Remote Unauthenticated Code Execution Vulnerability in OpenSSH server (CVE-2024-6387)

  • lflare/cve-2024-6387-poc ★ 129 · Jul 1, 2024

    MIRROR of the original 32-bit PoC for CVE-2024-6387 "regreSSHion" by 7etsuo/cve-2024-6387-poc

  • l0n3m4n/CVE-2024-6387 ★ 115 · Jul 2, 2024

    PoC - Remote Unauthenticated Code Execution Vulnerability in OpenSSH server (Scanner and Exploit)

  • This Python script checks for the CVE-2024-6387 vulnerability in OpenSSH servers. It supports multiple IP addresses, URLs, CIDR ranges, and ports. The script can also read addresses from a file.

  • xonoxitron/regreSSHion ★ 71 · Jul 2, 2024

    CVE-2024-6387 (regreSSHion) Exploit (PoC), a vulnerability in OpenSSH's server (sshd) on glibc-based Linux systems.

  • d0rb/CVE-2024-6387 ★ 53 · Jul 2, 2024

    This Python script exploits a remote code execution vulnerability (CVE-2024-6387) in OpenSSH.

  • bigb0x/CVE-2024-6387 ★ 35 · Jul 1, 2024

    Bulk Scanning Tool for OpenSSH CVE-2024-6387, CVE-2006-5051 , CVE-2008-4109 and others.

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 36

References