CVE-2026-70338: CWE-94: Improper Control of Generation of Code ('Code Injection') in Microsoft PowerShell 7.4
Improper control of generation of code ('code injection') in Microsoft PowerShell allows an unauthorized attacker to bypass a security feature locally.
AI Analysis
Technical Summary
This vulnerability, identified as CWE-94, involves improper control of code generation in Microsoft PowerShell 7.4, enabling an unauthorized local attacker to bypass security mechanisms. The CVSS 3.1 score of 7.8 reflects high impact on confidentiality, integrity, and availability. Microsoft has released an official fix for this issue, as documented in their security update guide.
Potential Impact
An unauthorized local attacker could exploit this vulnerability to bypass security features, potentially leading to full compromise of confidentiality, integrity, and availability of the affected system. The high CVSS score indicates significant risk if exploited.
Mitigation Recommendations
An official fix is available from Microsoft. Users of PowerShell 7.4.0 should apply the vendor-provided patch as soon as possible. Refer to the Microsoft advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-70338 for detailed remediation instructions.
CVE-2026-70338: CWE-94: Improper Control of Generation of Code ('Code Injection') in Microsoft PowerShell 7.4
Description
Improper control of generation of code ('code injection') in Microsoft PowerShell allows an unauthorized attacker to bypass a security feature locally.
CVSS v3.1
Score 7.8high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability, identified as CWE-94, involves improper control of code generation in Microsoft PowerShell 7.4, enabling an unauthorized local attacker to bypass security mechanisms. The CVSS 3.1 score of 7.8 reflects high impact on confidentiality, integrity, and availability. Microsoft has released an official fix for this issue, as documented in their security update guide.
Potential Impact
An unauthorized local attacker could exploit this vulnerability to bypass security features, potentially leading to full compromise of confidentiality, integrity, and availability of the affected system. The high CVSS score indicates significant risk if exploited.
Mitigation Recommendations
An official fix is available from Microsoft. Users of PowerShell 7.4.0 should apply the vendor-provided patch as soon as possible. Refer to the Microsoft advisory at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-70338 for detailed remediation instructions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- microsoft
- Date Reserved
- 2026-08-04T00:04:56.036Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- official-fix
- Vendor Advisory Urls
- [{"url":"https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-70338","vendor":"Microsoft"}]
Threat ID: 6a7b5841bf8831d539156a5e
Added to database: 08/11/2026, 17:13:37 UTC
Last enriched: 08/11/2026, 17:29:45 UTC
Last updated: 08/12/2026, 00:38:39 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.