CVE-2026-70338 Microsoft PowerShell Security Feature Bypass Vulnerability

High 7.8 Published Updated

An attacker can bypass security features in Microsoft PowerShell via improper code generation, requiring a patch to mitigate.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-70338?

CVE-2026-70338 is a high-severity vulnerability in Microsoft PowerShell 7.4, published on 11 Aug 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

Improper control of generation of code ('code injection') in Microsoft PowerShell allows an unauthorized attacker to bypass a security feature locally.

Weakness: CWE-94

Which versions are affected by CVE-2026-70338?

1 open source package ship an affected version, including powershell. It affects 1 product.

PackageAffectedFixed in
powershell BitnamiFrom 7.4.07.4.19, 7.5.10, 7.6.5

Products include Microsoft Powershell.

How do I fix CVE-2026-70338?

Upgrade powershell to a fixed version for your release line: 7.4.19, 7.5.10 or 7.6.5.

Is CVE-2026-70338 being exploited?

There is no known exploitation of CVE-2026-70338 in the wild and no public exploit code.

Sources

Also known as BIT-powershell-2026-70338, GHSA-mh62-3vqg-v8vm, MINI-5p43-c926-v3rj.

Is CVE-2026-70338 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free