CVE-2025-54100: Command Injection and RCE in Windows PowerShell Invoke-WebRequest
- Vendor
- Microsoft Corporation
CVE-2025-54100 is a Windows PowerShell remote code execution vulnerability caused by improper neutralization of special elements in command processing. The issue is associated with how PowerShell, specifically Invoke-WebRequest and related curl alias usage, processes and parses retrieved web content. Under vulnerable behavior, a crafted response can cause embedded script content to be executed during parsing, resulting in command injection and arbitrary code execution in the security context of the user running the PowerShell command. Public reporting consistently describes the flaw as affecting Windows PowerShell on Windows Server 2008 and later, with exploitation commonly framed as a user being induced to run a crafted PowerShell command that fetches attacker-controlled content.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows arbitrary code execution as the current user. Because the vulnerability executes attacker-controlled content in the user security context, impact depends on that user’s privileges and may range from execution of follow-on payloads and implant delivery to full compromise of the host where the user has administrative rights. The flaw is also suitable for social-engineering-driven initial access and can support persistence, credential theft, lateral movement, or broader post-exploitation activity once code execution is obtained.
Mitigation
If you can’t patch tonight, do this now.
Where immediate patching is not possible, reduce exposure by restricting or closely controlling PowerShell use, especially workflows that retrieve and process remote web content. Prefer safer parsing behavior for Invoke-WebRequest, including use of the -UseBasicParsing parameter where operationally appropriate, as publicly documented in connection with this issue. Additional mitigations include least-privilege operation for users and administrators, limiting execution of untrusted PowerShell commands, constraining automation that fetches remote content, and enabling detailed PowerShell logging and command-line telemetry to detect suspicious use.
Remediation
Patch, then assume compromise.
Apply the Microsoft security update released in December 2025 for affected Windows PowerShell versions. Available reporting indicates that fully addressing the issue may require not only installing the patch but also rebooting the system where required so the update is completely applied. After patching, Invoke-WebRequest behavior changes to present a security warning intended to reduce unsafe execution of script-bearing web content.
Exploits
2 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2025-54100 exploited in the wild?
- Yes. As of Sep 25, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2025-54100?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2025-54100, the earliest disclosed Dec 13, 2025.
- Is there a patch for CVE-2025-54100?
- Apply the Microsoft security update released in December 2025 for affected Windows PowerShell versions. Available reporting indicates that fully addressing the issue may require not only installing the patch but also rebooting the system where required so the update is completely applied.
- What products are affected by CVE-2025-54100?
- Microsoft Corporation Windows Server 2008, Microsoft Corporation Windows 10 1607, Microsoft Corporation Windows 10 1809, Microsoft Corporation Windows 10 21h2, Microsoft Corporation Windows 10 22h2, and 13 more.
- How severe is CVE-2025-54100?
- CVE-2025-54100 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.89% (57th percentile) as of Sep 25, 2026.
Recent activity
60 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.