With the recent CVE bulletin, Microsoft Security Advisory CVE-2018-0875: Hash Collision can cause Denial of Service, it warrants us to update PowerShell Core to 6.0.2 and .NET Core to 2.0.6.
This post covers updating PowerShell Core and .NET Core packages using Homebrew, the Microsoft-recommend method for installing/managing these packages. This method can be used any time you want to update either package:
- Open Terminal.
- Run
brew update
(It will appear nothing is happening but watch the window title bar) - Run
brew cask upgrade powershell
- Run
brew cask upgrade dotnet
- Once completed, run
pwsh
to load PowerShell. You should see 6.0.2 (or the newest version) at the top:
1
2
3
4
5
6
7
PowerShell v6.0.2
Copyright (c) Microsoft Corporation. All rights reserved.
https://aka.ms/pscore6-docs
Type 'help' to get help.
PS />
- You can also confirm by using $PSVersionTable:
1
2
3
4
5
6
7
8
9
10
11
12
13
PS /> $PSVersionTable
Name Value
---- -----
PSVersion 6.0.2
PSEdition Core
GitCommitId v6.0.2
OS Darwin 17.4.0 Darwin Kernel Version 17.4.0: S...
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Now, run dotnet –info (two dashes) and you should see Version 2.0.6:
1
2
3
4
5
6
PS /Users/aarontheadmin> dotnet --info
Microsoft .NET Core Shared Framework Host
Version : 2.0.6
Build : 74b1c703813c8910df5b96f304b0f2b78cdf194dYour packages are officially updated.
Comments powered by Disqus.