CVE-2026-55201: Evil-WinRM Path Traversal Vulnerability – Patch Guidance
Evil-WinRM versions through 3.9 contain a path traversal flaw in how they handle file downloads from Windows servers. When a user downloads files from a remote Windows machine using Evil-WinRM, a compromised or rogue server can trick the client into writing files outside the intended download folder by embedding special directory-traversal sequences (like "../") in filenames. An attacker controlling the remote server could exploit this to overwrite important files on the client machine—such as SSH keys or shell configuration files—potentially gaining persistent access or escalating privileges on the client system.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 6.8 MEDIUM · CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- Weaknesses (CWE)
- CWE-22
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-17 / 2026-07-14
NVD description (verbatim)
Evil-WinRM through 3.9, fixed in commit 6ecd570, contains a path traversal vulnerability in the download_dir() function that allows a rogue or compromised remote Windows server to write files outside the intended download directory by returning filenames with traversal sequences from Get-ChildItem command output that are passed unsanitized to File.join(). Attackers controlling the remote server can exploit this to overwrite sensitive client-side files such as SSH authorized_keys or shell configuration files, achieving persistent access or privilege escalation on the client machine.
3 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability exists in Evil-WinRM's download_dir() function, which processes filenames returned by the Get-ChildItem PowerShell command from a remote Windows server. These filenames are passed unsanitized to File.join(), allowing path traversal sequences to escape the intended download directory. Because the Windows server response is trusted without validation, a compromised or rogue server can inject traversal sequences (e.g., "../../.ssh/authorized_keys") into filename output, causing files to be written to arbitrary locations on the client's filesystem. The fix is available in commit 6ecd570, which presumably sanitizes or validates filenames before file operations.
Business impact
This vulnerability creates a critical supply-chain and endpoint risk for security teams and penetration testers who rely on Evil-WinRM for Windows system administration and red-team operations. A compromised remote server—whether due to an attacker or insider threat—can silently overwrite sensitive client-side credentials, SSH keys, or shell initialization files, granting the attacker persistent foothold or elevated privileges on the analyst's workstation. This is particularly dangerous in environments where analysts interact with untrusted or high-risk Windows systems, as the attack surface is broadened beyond the remote target to the analyst's own machine.
Affected systems
Evil-WinRM versions 3.9 and earlier are affected. The vulnerability requires a scenario where a user is downloading files from a remote Windows system, making it primarily a concern for security professionals, system administrators, and penetration testers who use Evil-WinRM in their daily workflows. The attack surface depends on exposure to rogue or compromised Windows servers that could be queried for file downloads.
Exploitability
The vulnerability requires two conditions: (1) the user must initiate a file download operation via Evil-WinRM's download_dir() function against a remote Windows server, and (2) the remote server must be compromised, rogue, or controlled by an attacker. An attacker cannot exploit this remotely without first compromising or controlling the Windows server being queried. However, once either condition is met, exploitation is straightforward—the attacker simply returns malicious filenames in Get-ChildItem output. The user interaction requirement (initiating a download) limits exposure somewhat, but does not eliminate risk in high-interaction environments like penetration testing labs.
Remediation
Upgrade Evil-WinRM to a version that includes the fix from commit 6ecd570 (versions after 3.9 are presumed to contain this fix; verify against the vendor's release notes). The patch should implement filename sanitization, rejecting or escaping path traversal sequences before passing filenames to file operations. In the interim, minimize downloads from untrusted or high-risk Windows systems, and validate the integrity of downloaded files if possible.
Patch guidance
Apply the update to Evil-WinRM that incorporates commit 6ecd570 once released in a stable version. Verify the patch details against the official Evil-WinRM repository or vendor advisory to confirm the exact version number and installation method. Until patched, consider restricting file downloads to trusted servers or using alternative file-transfer methods (such as direct WinRM copy, SMB, or out-of-band transfer) when interacting with untrusted systems.
Detection guidance
Monitor Evil-WinRM usage for attempts to download files containing path traversal sequences in filenames (e.g., "../", "..\\", or encoded variants). Log and alert on file operations that write outside the intended download directory. Endpoint detection and response (EDR) tools should flag suspicious modification of sensitive files like .ssh/authorized_keys, /etc/passwd, or shell configuration files immediately following Evil-WinRM activity. Network monitoring could detect unusual Get-ChildItem responses returning suspicious filenames, though this requires deep inspection of WinRM traffic.
Why prioritize this
Although rated MEDIUM severity, this vulnerability deserves prioritization for organizations that employ Evil-WinRM, particularly security teams and red teams. The attack leads to privilege escalation and persistent access on analyst workstations—a high-value target for attackers. Additionally, because many analysts may not be aware they are running a vulnerable version, patching should be urgent. The scenario (compromised remote server) is realistic in penetration testing and incident response contexts where analysts interact with already-breached systems.
Risk score, explained
The CVSS 3.1 score of 6.8 (MEDIUM) reflects a high-impact attack (confidentiality and integrity both exploited) but requires user interaction (initiating a download) and a compromised remote server (limiting the attack vector to network access only if the user is downloading from that server). The requirement for user interaction and server compromise prevents a CRITICAL or HIGH rating, but the potential for credential theft and privilege escalation on the client machine justifies a MEDIUM score rather than LOW.
Frequently asked questions
Do I need to be connected to the internet for this vulnerability to affect me?
No, the vulnerability can be exploited over any network connection to a Windows system via Evil-WinRM—whether local network, VPN, or internet. The key requirement is that you initiate a file download from a rogue or compromised remote Windows server.
What if I only use Evil-WinRM to run commands, not download files?
If you do not use the download_dir() function or related file-download features, you are not exposed to this specific vulnerability. However, best practice is still to update to patch your Evil-WinRM installation, as new vulnerabilities may emerge.
Can an attacker exploit this without compromising the remote server?
No. An attacker must either compromise the Windows server you are querying or trick you into connecting to a rogue server they control. The vulnerability does not allow remote code execution on the client from the network alone; it requires server-side control.
Are there workarounds other than patching?
Until you can patch, avoid downloading files from untrusted or high-risk Windows systems when possible. Use alternative file-transfer methods (SMB, WinRM copy, etc.) if available. Additionally, monitor your ~/.ssh/authorized_keys and shell configuration files for unauthorized changes.
This analysis is provided for educational and awareness purposes. The specific version numbers, patch commit references, and technical details are based on the CVE description provided. Organizations should verify patch availability and version compatibility against the official Evil-WinRM repository and vendor advisories before deploying updates. CVSS scores and severity ratings are sourced from the provided vulnerability record. This assessment does not constitute professional security advice; consult your security team or a qualified professional for guidance specific to your environment. Source: NVD (public-domain), retrieved 2026-07-27. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2018-25393MEDIUMNavigate CMS 2.8.5 Path Traversal Vulnerability (CVSS 6.5)
- CVE-2018-25421MEDIUMOpen STA Manager 2.3 Path Traversal File Download Vulnerability
- CVE-2019-25734MEDIUMContact Form by WD CSRF & Local File Inclusion Vulnerability
- CVE-2019-25740MEDIUMJoomla com_jsjobs Arbitrary File Deletion Vulnerability
- CVE-2022-50953MEDIUMWordPress admin-word-count-column Plugin Local File Read Vulnerability
- CVE-2024-47263MEDIUMSynology Hyper Backup Path Traversal – Admin Privilege Required
- CVE-2024-47273MEDIUMSynology Hyper Backup Path Traversal Vulnerability (4.3 MEDIUM)
- CVE-2025-24268MEDIUMmacOS Path Traversal Vulnerability – Patch Sequoia 15.4