# CVE-2026-50523: Microsoft PowerShell Remote Code Execution Vulnerability

> An authorized attacker can execute arbitrary code locally via command injection in Microsoft PowerShell.

- **Severity:** High 7.8 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 14 Aug 2026
- **Updated:** 28 Oct 2026
- **Also known as:** BIT-powershell-2026-50523, GHSA-2x33-4fc7-ppvw, MINI-v6hq-r63v-3q72

## What is CVE-2026-50523?

CVE-2026-50523 is a high-severity command injection vulnerability in Microsoft PowerShell 7.4, published on 14 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

Improper neutralization of special elements used in a command ('command injection') in Microsoft PowerShell allows an authorized attacker to execute code locally.

Weakness: CWE-77 (Improper Neutralization of Special Elements used in a Command)

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

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-50523?

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

## Is CVE-2026-50523 being exploited?

There is no known exploitation of CVE-2026-50523 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-70338](https://insights.sbomify.com/CVE-2026-70338/): Microsoft PowerShell Security Feature Bypass Vulnerability (high 7.8)

## Fix prompt for AI coding agents

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

What it is: CVE-2026-50523 is a high-severity command injection vulnerability in Microsoft PowerShell 7.4, published on 14 Aug 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-50523 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-50523/ (Markdown: https://insights.sbomify.com/CVE-2026-50523/index.md)
```

## Sources

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

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