Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Einreichen
ToolsExploitsBlog
Einreichen

Hacking-, PenTest- und Cybersicherheits-Tools für Ihr Sicherheitsarsenal!

Kitploit ist ein Verzeichnis von Hacking-, Cybersicherheits- und Pentesting-Tools. Entdecken Sie die neuesten Projekt-Updates, um Schwachstellen zu finden, Systeme zu analysieren, Tests zu automatisieren und Ihre Sicherheit zu stärken.

FeedsKontaktDatenschutz© 2026 Kitploit

Tool-Verzeichnis

Kategorien

Alle Kategorien anzeigen
Loading categories
CVE-2024-6387 — PoC and technical analysis of CVE-2024-6387 (regreSSHion), with a Python harness that checks OpenSSH version and measures the LoginGraceTime race window. | Kitploit
Tools/GitHubGitHub/gabrieledattile/cve-2024-6387
ReconnaissanceVulnerability AnalysisExploitationInformation GatheringNetwork SecurityRemote Access Tool
GitHubgabrieledattile/cve-2024-6387

CVE-2024-6387

PoC and technical analysis of CVE-2024-6387 (regreSSHion), with a Python harness that checks OpenSSH version and measures the LoginGraceTime race window.

Repository anzeigen
5. Dez. 2026Noch nicht geprüft
Teilen
Inhalt in der angeforderten Sprache nicht verfügbar. Englische Version wird angezeigt.

CVE-2024-6387 — OpenSSH regreSSHion

A signal-handler race in sshd: remote, unauthenticated code execution as root on glibc-based Linux.

CVECVE-2024-6387 ("regreSSHion")
CVSS v3.18.1 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)
ImpactPre-authentication remote code execution as root
CWECWE-364 (Signal Handler Race Condition), CWE-828
Public fixOpenSSH 9.8 / 9.8p1, released 2024-07-01
DiscoveryQualys Threat Research Unit

Affected products and versions

  • OpenSSH 8.5p1 up to 9.7p1 inclusive on Linux — vulnerable.
  • OpenSSH 4.4p1 up to 8.4p1 — vulnerable only if the patch for CVE-2006-5051 was not backported by the distribution.
  • OpenSSH 9.8p1 and newer — fixed.
  • Linux distributions shipping a vulnerable build include (non-exhaustive) Debian 12, Ubuntu 22.04 LTS / 24.04 LTS, RHEL / AlmaLinux / Rocky Linux 9, Fedora 38/39/40, and Kali Linux.
  • Non-glibc targets (musl, *BSD) were reported as not practically exploitable, because the race relies on glibc's malloc/syslog behaviour.

Root cause

sshd's SIGALRM handler fires when a connection exceeds LoginGraceTime. That handler calls syslog() (and through it, signal-unsafe malloc/free paths) — functions that are not async-signal-safe. When the signal lands while the main packet-handling code is inside the heap, the allocator state can be corrupted. The vulnerable pattern was reintroduced in OpenSSH 8.5p1 after having been fixed in 2006 (CVE-2006-5051, hence "regreSSHion").

Exploitation condition

  1. MaxStartups permits more than one unauthenticated child at a time (the default 10:30:100 does — only a strict MaxStartups 1 closes the door).
  2. A long LoginGraceTime (default 120 s) widens the window in which the alarm can fire while the child is in a heap operation.
  3. With enough concurrent connections the server saturates its unauthenticated child slots, the attacker keeps the racy children alive until the alarm fires, and — with high enough attempt volume — wins the race and executes code as root in the forked child serving the malicious connection.

Exploitation is probabilistic: the race must be hit, and a per-target ASLR/heap layout question must be solved; published analyses quote large numbers of attempts (tens of thousands of connections, hours) for reliable hits.

Impact

Unauthenticated network attacker reaching sshd obtains remote code execution as root, i.e. full host compromise before any credential is presented. sshd's privilege separation does not save the target: the vulnerable code runs in the privileged parent context.

What this repository adds

Most catalogued material stops at triggering the condition (open many connections, wait for LoginGraceTime, watch for a crash). This repository adds:

  • an explicit description of the race window — why MaxStartups and LoginGraceTime together define the exploitable interval, and what the attacker must overlap to win it;
  • a verification harness (poc/regresshion_check.py) that decides whether a given host is in vulnerable preconditions, not just whether a banner says "OpenSSH": it parses the version against 9.8, and can measure the real grace-time close delay of the target, which is the quantity that determines the size of the window.

Usage of the PoC

Requires only Python 3 standard library.

# Passive check: banner + version verdict
python3 poc/regresshion_check.py 10.0.0.10

# Additionally measure the grace-time window (opens N connections, no auth)
python3 poc/regresshion_check.py 10.0.0.10 -n 20 -p 2222 -t 150

The script is non-destructive: it opens TCP connections, reads the banner, sends the client identification line and (optionally) waits for the server to close. Exit code 0 = server looks vulnerable, 1 = not vulnerable/unknown, 2 = connection error.

Mitigation

  • Upgrade to OpenSSH 9.8p1 or newer, or apply the distribution's backport.
  • If upgrading is not immediately possible, LoginGraceTime 0 removes the alarm entirely (the socket then has no grace period and idle connections are not timed out by that handler), at the cost of long-lived unauthenticated slots.
  • Reducing MaxStartups to 1 narrows but does not fully remove the exposure.

References

  • OpenSSH 9.8 release notes / advisory: https://www.openssh.com/txt/release-9.8
  • NVD entry: https://nvd.nist.gov/vuln/detail/CVE-2024-6387
  • Qualys advisory: https://www.qualys.com/2024/07/09/cve-2024-6387/

Gabriele D'Attile — https://github.com/GabrieleDattile

Tool herunterladen

Ähnliche Tools

  • amass

    Tiefgehende Angriffsflächenkartierung und Asset-Erkennung

  • subfinder

    Schnelles passives Tool zur Subdomain-Enumeration.

  • reconftw

    reconFTW ist ein Tool, das entwickelt wurde, um automatisiertes Recon auf einer Zieldomäne durchzuführen, indem es die beste Auswahl an Tools zum Scannen und Auffinden von Schwachstellen ausführt.

Beliebteste

Alle anzeigen →

Entdecken Sie die meistgenutzten Tools unserer Community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    745
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI-Catcher-Plattform, die eine gefälschte GSM-Zelle bereitstellt, um SMS abzufangen, Nachrichten einzuschleusen und Mobilgeräte zu verfolgen

    732
  • 3

    Callisto

    jetp1ane/callisto

    Automatisiertes Binär-Schwachstellenanalyse-Tool, das ausführbare Dateien über Ghidra dekompiliert, Pseudo-C-Code mit Semgrep scannt und Ergebnisse mithilfe von GPT-3.5-Turbo validiert, um Fehlalarme zu reduzieren.

    610
  • 4

    opencti

    opencti-platform/opencti

    Offene Plattform für Cyber-Bedrohungsinformationen

    546
  • 5

    ARTEX

    baarai/artex

    LLM-basierte Multi-Agenten-Plattform für autonome Penetrationstests mit Planer-/Worker-Agenten, Asset- und Explorationsgraphen, MITM-Verkehrsaufzeichnung und Schwachstellen-Retesting.

    414
  • 6

    DFRoot

    a2333c/dfroot

    Android-Root-Tool für das Samsung Galaxy S25 Ultra (SM-S938B), das DirtyFrag CVE-2026-43284 und CVE-2026-43499 verkettet, um beim Booten automatisch über KernelSU Root zu erlangen.

    413

Alle Tools erkunden

Durchsuchen Sie unsere Tool-Sammlung

Alle Tools anzeigen →