Skip to main content

THC Hydra CVE-2026-56766

| EUVDEUVD-2026-39515 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-06-25 VulnCheck GHSA-3r6x-6cp5-6575
8.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Stand up malicious NTLM-speaking server
  2. Delivery
    Victim runs Hydra NTLM module against it
  3. Exploit
    Server returns Type-2 challenge with overlong domain
  4. Execution
    Base64 response overflows 500-byte stack buffer
  5. Persist
    Overwrite return address absent stack canary
  6. Impact
    Execute code as Hydra operator

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the victim to actively run THC Hydra (<= 9.7) with NTLM authentication selected against an attacker-controlled server speaking SMTP, POP3, IMAP, NNTP, HTTP, HTTP-Proxy, or HTTP-Proxy-Urlenum; the attacker must control the server side to send a malicious NTLM Type-2 challenge containing an excessively long domain string. Limiting factors: this is a reverse/client-side attack, so the attacker cannot initiate it - they must wait for or lure a Hydra user to connect (CVSS UI:A); and reliable code execution is explicitly conditioned on the target host lacking stack protection, so default modern systems with stack canaries/ASLR will more likely crash than be hijacked. No authentication is required of the attacker (CVSS PR:N), but the practical target population is limited to operators of the Hydra tool itself.

Impact

Signals are mixed and require careful reading. The CVSS 4.0 vector (8.6 High, AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H) reflects network reach and no required privileges, but critically UI:A - active interaction is required because the victim must run Hydra against the malicious server. There is no EPSS score, no CISA KEV listing, and no POC in the provided data, so this is not confirmed actively exploited and must not be treated as a wormable internet-facing flaw. Real-world risk is further bounded by the description's own caveat that RCE is achievable only 'on systems without stack protection' - modern compilers and distros enable stack canaries and ASLR by default, which typically downgrade the outcome from reliable RCE to a crash. The affected population is unusual: penetration testers and red teams running Hydra, not production servers, so exploitation is plausible as a targeted counter-offensive (a defender or honeypot operator attacking incoming brute-forcers) rather than mass exploitation. Net: a genuine and noteworthy RCE worth patching for security practitioners, but lower practical urgency than the 8.6 base score implies given UI:A, no exploitation evidence, and the stack-protection dependency.

Exploit ScenarioDerived

A defender, honeypot, or malicious service operator stands up an SMTP/IMAP/HTTP endpoint that advertises NTLM authentication. When a red-teamer or attacker runs Hydra with the NTLM option against that endpoint, the server returns a crafted NTLM Type-2 challenge with an overlong domain string, overflowing the 500-byte stack buffer by up to 330 bytes and, on a host without stack canaries, executing attacker-supplied code in the context of the Hydra operator. No public POC is identified at this time, and the attack requires the victim to actively initiate the Hydra session (UI:A).

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 25, 2026

Remote code execution in THC Hydra through 9.7 allows a malicious or attacker-controlled server to compromise the machine running the Hydra brute-force client during NTLM authentication. When Hydra connects to such a server across its SMTP, POP3, IMAP, NNTP, HTTP, HTTP-Proxy, or HTTP-Proxy-Urlenum modules, a crafted NTLM Type-2 challenge with an overlong domain string causes the base64-encoded response to overflow a 500-byte stack buffer by 18 to 330 bytes, enabling code execution on hosts lacking stack protection. No public exploit identified at time of analysis, but a vendor patch (commit 9cc84c2) is available, and the issue inverts the usual threat model - the operator of the offensive tool becomes the victim.

RemediationAI

Update Hydra to a build that includes upstream fix commit 9cc84c2 (https://github.com/vanhauser-thc/thc-hydra/commit/9cc84c20e75f5fef6bb1790bb9ada2afad2204e2); this is an upstream fix available as a commit, and a released patched version (9.8-dev or a later tag) should be confirmed before deployment since the provided data does not name a tagged release. Until rebuilt, avoid using Hydra's NTLM authentication option against untrusted or attacker-influenced targets, since the malicious party is the server you point Hydra at - restrict scans to known, trusted endpoints. As a strong compensating control, run Hydra only on hosts with stack-smashing protection and ASLR enabled (for example compiled with -fstack-protector-strong and -D_FORTIFY_SOURCE), which the advisory implies prevents reliable code execution; the trade-off is that an oversized challenge may still crash the process. Running Hydra inside a disposable container or VM further limits blast radius if a crafted challenge is encountered. Refer to the VulnCheck advisory (https://www.vulncheck.com/advisories/hydra-stack-buffer-overflow-in-ntlm-authentication-handler) to confirm the fixed release.

Affected VersionsENISA

thc-hydra 0 ≤9.7

Affected Packages

euvd thc_hydra no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Hydra is the widely used vanhauser-thc/thc-hydra network login brute-forcing tool. The flaw is a CWE-121 stack-based buffer overflow in its NTLM authentication handling. NTLM is a three-message handshake; here Hydra (the client) parses a server-supplied Type-2 challenge that contains a server-controlled domain/target string, then builds the base64-encoded Type-3 response. Across seven protocol modules that response is assembled (via sprintf into a fixed ~500-byte stack buffer) without validating that the server-controlled domain length plus protocol/header bytes will fit, so an oversized domain inflates the base64 output past the buffer boundary. The CPE cpe:2.3:a:vanhauser-thc:thc-hydra:*:*:*:*:*:*:*:* confirms the affected product, and the upstream commit diff shows the fix adds length guards (returning error 3 on oversized responses) to hydra-imap.c, hydra-nntp.c, hydra-pop3.c, hydra-smtp.c, hydra-http-proxy.c, and hydra-http-proxy-urlenum.c, while hydra-http.c instead dynamically reallocs the buffer before sprintf.

Know when Thc Hydra gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.6 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

Network-reachable but the victim must run Hydra against the malicious server (UI:R), and reliable RCE depends on the host lacking stack protection (AC:H); success yields full code execution (C/I/A:H).

3.1 AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 7.5 HIGH

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Hydra through 9.7, fixed in commit 9cc84c2, contains a stack buffer overflow in NTLM authentication across SMTP, POP3, IMAP, NNTP, HTTP, HTTP-Proxy, and HTTP-Proxy-Urlenum modules when processing malicious NTLM Type-2 challenges. A malicious server can send a crafted NTLM Type-2 challenge with an excessively long domain string, causing base64-encoded response data to overflow a 500-byte stack buffer by 18 to 330 bytes, enabling remote code execution on systems without stack protection.

Executive ViewAI

Why It Matters

THC Hydra password-testing tool version 9.7 contains a critical remote code execution vulnerability (CVE-2026-56766, CVSS 8.6) that could turn your security team's own testing infrastructure into an attack vector if Hydra connects to a malicious server. Organizations using this tool for authorized credential testing face risk of system compromise and potential lateral movement. A vendor patch is available and should be deployed immediately to all affected systems.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 63% exploitable
Prevalence
Medium
very popular pentest brute-force tool, but niche to security testing
Exploit
POC
Public exploit code exists
Data Quality
10 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL Exploit-DB GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

63
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
openSUSE Tumbleweed Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy