Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-21187: CWE-94: Improper Control of Generation of Code ('Code Injection') in Microsoft Power Automate for Desktop

0
High
VulnerabilityCVE-2025-21187cvecve-2025-21187cwe-94
Published: Tue Jan 14 2025 (01/14/2025, 18:04:20 UTC)
Source: CVE Database V5
Vendor/Project: Microsoft
Product: Power Automate for Desktop

Description

Microsoft Power Automate Remote Code Execution Vulnerability

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/26/2026, 23:29:58 UTC

Technical Analysis

CVE-2025-21187 is a remote code execution vulnerability identified in Microsoft Power Automate for Desktop version 1.0.0.0. The root cause is improper control over the generation of code, categorized as CWE-94, which allows code injection attacks. This vulnerability enables an attacker to inject and execute arbitrary code within the context of the affected application. The CVSS v3.1 base score is 7.8, indicating high severity. The attack vector is local (AV:L), requiring the attacker to have local access but no privileges (PR:N). User interaction (UI:R) is necessary, meaning the victim must be tricked into performing an action such as opening a malicious file or input. The vulnerability affects confidentiality, integrity, and availability (C:H/I:H/A:H), allowing full system compromise if exploited. The scope is unchanged (S:U), meaning the impact is limited to the vulnerable component. No known exploits have been reported yet, and no patches are currently available, increasing the urgency for defensive measures. This vulnerability is particularly concerning for organizations automating workflows with Power Automate for Desktop, as it could lead to unauthorized code execution and system compromise.

Potential Impact

The vulnerability poses a significant risk to organizations using Microsoft Power Automate for Desktop, especially those relying on automation for critical business processes. Successful exploitation could lead to complete system compromise, including unauthorized access to sensitive data, manipulation or destruction of data, and disruption of automated workflows. This could result in operational downtime, data breaches, and potential lateral movement within corporate networks. Since the attack requires local access and user interaction, insider threats or social engineering attacks become viable vectors. The lack of an available patch increases exposure time, potentially allowing attackers to develop exploits. Organizations in sectors such as finance, healthcare, manufacturing, and government, where automation tools are heavily used, face elevated risks. The vulnerability could also be leveraged as a foothold for broader attacks within enterprise environments.

Mitigation Recommendations

Organizations should immediately implement strict access controls to limit local access to systems running Power Automate for Desktop. User training to recognize and avoid suspicious files or inputs is critical to reduce the risk of social engineering exploitation. Employ application whitelisting and endpoint detection and response (EDR) solutions to monitor and block unauthorized code execution attempts. Disable or restrict Power Automate for Desktop usage where feasible until a patch is released. Regularly audit and monitor automation workflows for anomalies. Network segmentation can limit the impact of a compromised system. Maintain up-to-date backups to enable recovery in case of compromise. Stay alert for official patches or advisories from Microsoft and apply them promptly once available. Consider deploying endpoint privilege management to minimize the ability of attackers to execute code with elevated privileges.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
microsoft
Date Reserved
2024-12-05T21:43:30.764Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 68c0bd4c9ed239a66badea46

Added to database: 9/9/2025, 11:50:36 PM

Last enriched: 2/26/2026, 11:29:58 PM

Last updated: 3/24/2026, 3:12:07 AM

Views: 53

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses