Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2025-54100: Command Injection and RCE in Windows PowerShell Invoke-WebRequest

Published Dec 9, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS0.89%57th percentile
CISA KEVNoNot listed
In the wildReported1 exploitation record in Mallory
Vendor
Microsoft Corporation
IdentifiersCVE-2025-54100CWE-77 · Improper Neutralization of Special…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

2 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit.

View more in app →
CVE-2025-54100This repository provides a proof-of-concept (PoC) exploit for CVE-2025-54100, a command injection vulnerability in Windows PowerShell 5.1's Invoke-WebRequest cmdlet. The repository contains four files: a Python exploit script (CVE-2025-54100.py), a README.md with detailed vulnerability and usage information, a .gitignore, and a requirements.txt listing FastAPI and Uvicorn as dependencies. The main exploit script implements a FastAPI web server that serves a crafted HTML/JavaScript payload at the root endpoint ('/'). When a vulnerable Windows PowerShell client fetches this endpoint using Invoke-WebRequest (without the -UseBasicParsing switch), the response is parsed by the MSHTML engine, which executes the embedded script. The current payload is non-malicious and simply triggers an alert for verification, but the mechanism demonstrates the potential for remote code execution. The exploit is network-based, requiring the victim to connect to the attacker's server. The repository is structured for easy use and testing, with clear instructions and mitigation advice in the README.ThemeHackers · Disclosed Dec 13, 2025 · python · networkPoCCVE-2025-54100This repository is a proof-of-concept (PoC) exploit for CVE-2025-54100, a remote code execution vulnerability affecting Windows PowerShell 5.1 when using Invoke-WebRequest without the -UseBasicParsing flag. The repository contains four files: a Python FastAPI server (app.py), a README.md with detailed usage and background, a requirements.txt for dependencies, and a LICENSE. The main exploit logic is in app.py, which serves a crafted HTML payload at the root HTTP endpoint. When a vulnerable Windows system accesses this endpoint (e.g., via Invoke-WebRequest or mshta), the HTML/JavaScript attempts to instantiate ActiveX objects to execute calc.exe, demonstrating RCE. The exploit is non-destructive and intended for research/validation. The README provides clear instructions for setup, exploitation, and mitigation. No hardcoded IPs are present in the code, but the README uses example IPs for demonstration. The attack vector is network-based, requiring the victim to access the attacker's HTTP server. The auxiliary /log endpoint is present for client-side logging but is not essential to the exploit. The PoC is mature as a demonstration but not weaponized for broader attacks.xiaoLvChen · Disclosed Dec 29, 2025 · python · html · networkPoC
Exposure surface

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.

VendorProductType
Microsoft CorporationWindows 10 1607operating_system
Microsoft CorporationWindows 10 1809operating_system
Microsoft CorporationWindows 10 21h2operating_system
Microsoft CorporationWindows 10 22h2operating_system
Microsoft CorporationWindows 11 23h2operating_system
Microsoft CorporationWindows 11 24h2operating_system
Microsoft CorporationWindows 11 25h2operating_system
Microsoft CorporationWindows Server 2008operating_system
Microsoft CorporationWindows Server 2008 R2operating_system
Microsoft CorporationWindows Server 2008 Sp2operating_system
Microsoft CorporationWindows Server 2012operating_system
Microsoft CorporationWindows Server 2012 R2operating_system
Microsoft CorporationWindows Server 2016operating_system
Microsoft CorporationWindows Server 2019operating_system
Microsoft CorporationWindows Server 2022operating_system
Microsoft CorporationWindows Server 2022 23h2operating_system
Microsoft CorporationWindows Server 2025operating_system
Microsoft CorporationWindows Server 23h2operating_system
FAQ

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.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity31Community discussion across Reddit, Mastodon, and other social sources.