Skip to content
KitploitKITPLOIT
ИнструментыЭксплойтыБлог
Log in
Отправить
ИнструментыЭксплойтыБлог
Отправить

Инструменты для хакинга, пентеста и кибербезопасности — ваш арсенал защиты!

Kitploit — это каталог инструментов для хакинга, кибербезопасности и пентестинга. Находите последние обновления проектов для поиска уязвимостей, анализа систем, автоматизации тестирования и усиления вашей безопасности.

ЛентыКонтактыКонфиденциальность© 2026 Kitploit

Каталог инструментов

Категории

Все категории
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
Инструменты/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.

Репозиторий
5 дек. 2026 г.Ещё не проверено
Поделиться
Контент недоступен на запрошенном языке. Показываем английскую версию.

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

Скачать инструмент

Похожие инструменты

  • amass

    Глубокое картирование поверхности атаки и обнаружение активов

  • subfinder

    Быстрый инструмент пассивного перечисления поддоменов.

  • reconftw

    reconFTW — это инструмент, предназначенный для автоматизированной разведки целевого домена путем запуска лучшего набора инструментов для сканирования и выявления уязвимостей.

Популярное

Смотреть все →

Откройте для себя самые используемые инструменты нашего сообщества.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    # Приложение GhostLock с запуском в один клик (CVE-2026-43499)

    745
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    Платформа IMSI Catcher, разворачивающая поддельную соту GSM для перехвата SMS, внедрения сообщений и отслеживания мобильных устройств

    732
  • 3

    Callisto

    jetp1ane/callisto

    Автоматизированный инструмент анализа уязвимостей бинарных файлов, который декомпилирует исполняемые файлы с помощью Ghidra, сканирует псевдо-C код с помощью Semgrep и проверяет находки с использованием GPT-3.5-Turbo для уменьшения ложных срабатываний.

    610
  • 4

    opencti

    opencti-platform/opencti

    Открытая платформа киберразведки угроз

    546
  • 5

    ARTEX

    baarai/artex

    Платформа автономного тестирования на проникновение на основе мультиагентной LLM с агентами-планировщиками и агентами-исполнителями, графами активов и исследования, записью MITM-трафика и повторной проверкой уязвимостей.

    414
  • 6

    DFRoot

    a2333c/dfroot

    Инструмент для получения root-прав на Android для Samsung Galaxy S25 Ultra (SM-S938B), который объединяет DirtyFrag CVE-2026-43284 и CVE-2026-43499 для автоматического получения root-прав при загрузке через KernelSU.

    413

Изучить все инструменты

Просмотрите нашу коллекцию инструментов

Смотреть все инструменты →