Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Microsoft Security Advisory CVE-2025-25004: PowerShell Elevation of Privilege Vulnerability

未关闭
#81 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
5/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
powershell
领域
security

调研方向

This is a Microsoft advisory for CVE-2025-25004, not a code task, and the payload names no file, test or entry point. The affected-software table lists PowerShell 7.5 up to 7.5.3 and 7.4 up to 7.4.12 as vulnerable on Windows only. Security reports go to [email protected], and questions belong in a support issue, so a newcomer should not start a fix here.

由索引模型根据 Issue 内容生成。

描述

PowerShell Security

Microsoft Security Advisory CVE-2025-25004: PowerShell Elevation of Privilege Vulnerability

Executive Summary

Improper access control in PowerShell 7 allows an authorized attacker to elevate privileges locally.

System administrators are advised to update PowerShell 7 to an unaffected version (see affected software).

Discussion

Please open a support question to discuss the PowerShell aspects of this advisory.

Affected Software

The vulnerability affects PowerShell 7 prior to the following versions:

PowerShell 7 Version Affected version Patched Version
7.5 <= 7.5.3 7.5.4
7.4 <= 7.4.12 7.4.13

The vulnerability affects PowerShell when running on the following operating systems:

Operating System Affected
Windows Yes
macOS No
Linux No

Advisory FAQ

What privileges could be gained by an attacker who successfully exploited the vulnerability?

An attacker who successfully exploited this vulnerability could create, modify, or delete files in the security context of the NT AUTHORITY\SYSTEM account.

According to the CVSS metric, user interaction is required (UI:R) and privileges required is Low (PR:L). What does that mean for this vulnerability?

An authenticated attacker could place a malicious file in a specified custom module path and then wait for a user to run a privileged .NET application that starts a PowerShell session under NT AUTHORITY\SYSTEM privileges

How do I know if I am affected?

If all of the following are true:

  1. Run pwsh -v, then, check the version in the table in Affected Software to see if your version of PowerShell 7 is affected.
How do I update to an unaffected version?

Follow the instructions at Installing PowerShell 7 to install the latest version of PowerShell 7.

Updating PowerShell 7 using Microsoft Update

Updating PowerShell 7 using Microsoft Update

Mitigation factors

This only affects PowerShell sessions running as NT AUTHORITY\SYSTEM and not a standard user.

Other Information

Reporting Security Issues

If you have found a potential security issue in PowerShell 7,
please email details to [email protected].

Support

You can ask questions about this issue on GitHub in the PowerShell organization.
This is located at https://github.com/PowerShell/.
The Announcements repo (https://github.com/PowerShell/Announcements)
will contain this bulletin as an issue and will include a link to a discussion issue where you can ask questions.

Disclaimer

The information provided in this advisory is provided "as is" without warranty of any kind. Microsoft disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Microsoft Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Microsoft Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.

What if the update breaks my script or module?

You can uninstall the newer version of PowerShell 7 and install the previous version of PowerShell 7.
This should be treated as a temporary measure.
Therefore, the script or module should be updated to work with the patched version of PowerShell 7.

Acknowledgments

tsuki
Casper

Microsoft recognizes the efforts of those in the security community who help us protect customers through coordinated vulnerability disclosure.

See acknowledgments for more information.

External Links

CVE-2025-25004

Revisions

V1.0 (October 21, 2025): Advisory published.

Version 1.0
Last Updated 2023-10-21

主要语言
没有语言数据
星标
20
派生
8
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

PowerShell/Announcements 的其他 Issue

查看 PowerShell/Announcements 的全部 Issue

相似的 Issue

更多 Security Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。