A security feature bypass vulnerability exists in Windows Defender Application Control (WDAC) which could allow an attacker to bypass WDAC enforcement. An attacker who successfully exploited this vulnerability could circumvent PowerShell Core Constrained Language Mode on the machine.
To exploit the vulnerability, an attacker would first have access to the local machine where PowerShell is running in Constrained Language mode. By doing that an attacker could leverage script debugging to abuse signed modules in an unintended way.
The update addresses the vulnerability by correcting how PowerShell functions in Constrained Language Mode. System administrators are advised to update PowerShell Core to an unaffected version (see affected software.)
Please use PowerShell/PowerShell#TBD for discussion of this advisory.
The vulnerability affects PowerShell Core prior to the following versions:
| PowerShell Core Version | Fixed in | |-------------------------|-------------------| | 6.1 | 6.1.5 | | 6.2 | 6.2.2 |
If all of the following are true:
pwsh -v
, then, check the version in the table in Affected Software to see if your version of PowerShell Core is affected.pwsh
or pwsh.exe
, then you are affected. This only existed for preview version of 6.0
.Follow the instructions at Installing PowerShell Core to install the latest version of PowerShell Core.
If you have found a potential security issue in PowerShell Core, please email details to secure@microsoft.com.
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.
You can uninstall the newer version of PowerShell Core and install the previous version of PowerShell Core. This should be treated as a temporary measure. Therefore, the script or module should be updated to work with the patched version of PowerShell Core.
Microsoft recognizes the efforts of those in the security community who help us protect customers through coordinated vulnerability disclosure.
See acknowledgments for more information.
V1.0 (July 16, 2019): Advisory published.
Version 1.0 Last Updated 2019-07-16
{ "nvd_published_at": null, "cwe_ids": [], "severity": "MODERATE", "github_reviewed": true, "github_reviewed_at": "2020-06-16T21:09:07Z" }