Microsoft Security Advisory CVE-2026-40400: PowerShell Remote Code Execution Vulnerability
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 8/100
- Tipo de issue
- Documentación
- Claridad
- Necesita aclaración
- Estado de actividad
- Tranquilo
- Stack tecnológico
- powershell
- Área
- security
Línea de trabajo
This is a published security advisory in the Announcements repo, not a change request, and the payload names no file, test or code path to edit. The advisory's affected-version table (PowerShell 7.4, 7.5, 7.6 on Windows) and its unfilled TBD comments are the only concrete content. A newcomer should confirm with the maintainers what, if anything, is being requested before starting; no definition of done is given.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Microsoft Security Advisory CVE-2026-40400: PowerShell Remote Code Execution Vulnerability
Executive Summary
Relative path traversal in PowerShell 7 allows an unauthorized attacker to execute code over a network. It does not affect non-Windows platforms.
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.6 | <7.6.6 | 7.6.6 |
| 7.5 | <7.5.11 | 7.5.11 |
| 7.4 | <7.4.18 | 7.4.18 |
The vulnerability affects PowerShell when running on the following operating systems:
| Operating System | Affected |
|---|---|
| Windows | Yes |
| macOS | No |
| Linux | No |
Advisory FAQ
How do I know if I am affected?
If all of the following are true:
- 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
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
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-2026-40400
Revisions
V2.0 (September 11, 2026): Advisory re-published.
V1.0 (July 20, 2026): Initial advisory, this affected PowerShell 7.4 where version < 7.4.18 (on Windows platform only)
Version 2.0
Last Updated 2026-09-11
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 20
- Forks
- 8
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de PowerShell/Announcements
-
PowerShell Security
Dificultad 5/5 Más de una semana Aptitud para principiantes 5/100
PowerShell/Announcements#101 ·
-
PowerShell Security
Dificultad 5/5 Más de una semana Aptitud para principiantes 5/100
PowerShell/Announcements#100 ·
-
PowerShell Security
Dificultad 3/5 Medio día Aptitud para principiantes 8/100
PowerShell/Announcements#98 ·
-
PowerShell Security
Dificultad 2/5 Menos de una hora Aptitud para principiantes 8/100
PowerShell/Announcements#97 ·
-
PowerShell Security
Dificultad 5/5 Más de una semana Aptitud para principiantes 5/100
PowerShell/Announcements#96 ·
Todos los issues de PowerShell/Announcements
Issues similares
-
Manager flashes an empty "errorOccurred" dialog while redirecting a logged-out user to loginAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
openremote/openremote#3487 · 1 comentario ·
-
bug(cli): theme file home-directory check uses startsWith (sibling dirs pass, Windows casing fails)Abiertoarea/core kind/bug priority/p2 status/bot-triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
google-gemini/gemini-cli#29955 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
intermediate security tests
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
BistaDinesh03/critique#151 ·
Los mantenedores suelen responder en 1 día
-
medium-priority security
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
DigiBanks99/menlo#474 ·
Los mantenedores suelen responder en 1 día
-
bug confirmed issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
open-webui/open-webui#33200 · 1 comentario ·
Los mantenedores suelen responder en 1 día