# CVE-2026-70338: Microsoft PowerShell Security Feature Bypass Vulnerability

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

- **Severity:** High 7.8 (`CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C`)
- **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:** Yes
- **Published:** 11 Aug 2026
- **Updated:** 28 Oct 2026
- **Also known as:** BIT-powershell-2026-70338, GHSA-mh62-3vqg-v8vm, MINI-5p43-c926-v3rj

## 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 (Improper Control of Generation of Code)

## Which versions are affected by CVE-2026-70338?

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


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `powershell` | Bitnami | From 7.4.0 | 7.4.19, 7.5.10, 7.6.5 |

Products: 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.

## Other vulnerabilities in Microsoft PowerShell 7.4

- [CVE-2018-8327](https://insights.sbomify.com/CVE-2018-8327/): Code injection in PowerShell Editor (critical 9.8)
- [CVE-2026-96251](https://insights.sbomify.com/CVE-2026-96251/): Microsoft PowerShell Remote Code Execution Vulnerability (high 8.8)
- [CVE-2026-70337](https://insights.sbomify.com/CVE-2026-70337/): Microsoft PowerShell Remote Code Execution Vulnerability (high 8.8)
- [CVE-2022-41076](https://insights.sbomify.com/CVE-2022-41076/): PowerShell Remote Code Execution Vulnerability (high 8.5)
- [CVE-2026-50523](https://insights.sbomify.com/CVE-2026-50523/): Microsoft PowerShell Remote Code Execution Vulnerability (high 7.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-70338 and fix it if it is affected.

What it is: 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.
Exploitation: There is no known exploitation of CVE-2026-70338 in the wild and no public exploit code.

Affected packages and fixed versions:
- powershell (Bitnami): affected from 7.4.0; fixed in 7.4.19, 7.5.10, 7.6.5

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-70338/ (Markdown: https://insights.sbomify.com/CVE-2026-70338/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-70338
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-70338
- OSV: https://osv.dev/vulnerability/CVE-2026-70338

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-70338/
Summaries are generated and may contain mistakes; the official description above is the record.
