Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessStand up malicious NTLM-speaking server
-
DeliveryVictim runs Hydra NTLM module against it
-
ExploitServer returns Type-2 challenge with overlong domain
-
ExecutionBase64 response overflows 500-byte stack buffer
-
PersistOverwrite return address absent stack canary
-
ImpactExecute 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). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Same weakness CWE-121 – Stack-based Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-39515
GHSA-3r6x-6cp5-6575
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB
VulDB