# CVE-2025-25004: PowerShell Elevation of Privilege Vulnerability

> An authorized local attacker can exploit improper access control in PowerShell to elevate privileges on affected Windows systems.

- **Severity:** High 7.3 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:R/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:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 14 Oct 2025
- **Updated:** 26 Feb 2026
- **Also known as:** BIT-powershell-2025-25004, GHSA-pcw6-863g-fcmj

## What is CVE-2025-25004?

CVE-2025-25004 is a high-severity vulnerability in Microsoft Windows 10 1507, published on 14 Oct 2025. 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 access control in Microsoft PowerShell allows an authorized attacker to elevate privileges locally.

Weakness: CWE-284 (Improper Access Control)

## Which versions are affected by CVE-2025-25004?

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


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `powershell` | Bitnami | From 7.4.0 | 7.4.13, 7.5.4 |

Products: Microsoft Powershell, Microsoft Windows 10 1507, Microsoft Windows 10 1607, Microsoft Windows 10 1809, Microsoft Windows 10 21h2, Microsoft Windows 10 22h2, Microsoft Windows 11 22h2, Microsoft Windows 11 23h2, Microsoft Windows 11 24h2, Microsoft Windows 11 25h2, Microsoft Windows Server 2008, Microsoft Windows Server 2012, Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022, Microsoft Windows Server 2022 23h2, Microsoft Windows Server 2025.

## How do I fix CVE-2025-25004?

Upgrade powershell to a fixed version for your release line: 7.4.13 or 7.5.4.

## Is CVE-2025-25004 being exploited?

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

## Other vulnerabilities in Microsoft Windows 10 1507

- [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-2025-25004 and fix it if it is affected.

What it is: CVE-2025-25004 is a high-severity vulnerability in Microsoft Windows 10 1507, published on 14 Oct 2025. 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-2025-25004 in the wild and no public exploit code.

Affected packages and fixed versions:
- powershell (Bitnami): affected from 7.4.0; fixed in 7.4.13, 7.5.4

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-2025-25004/ (Markdown: https://insights.sbomify.com/CVE-2025-25004/index.md)
```

## Sources

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

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