Choco: RAR extraction with older 7zip can cause memory corruption (CVE-2018-5996) / ZIP Shrink vulnerability (CVE-2017-17969)

Created on 24 Jan 2018  路  5Comments  路  Source: chocolatey/choco

Most helpful comment

Howdy folks - https://chocolatey.org/packages/chocolatey/0.10.9-beta-20180223 is still in moderation.

It will automatically approve in the next half hour to an hour - choco upgrade chocolatey -y -pre --version 0.10.9-beta-20180223 should get you it immediately.

All 5 comments

Workaround

~~~powershell

Ensure we can run everything

Set-ExecutionPolicy Bypass -Scope Process -Force

try
{
}
catch
{
Write-Warning "This may fail, if you see TLS errors, please download manually."
}

Download files

Invoke-WebRequest -UseBasicParsing -Uri https://cdn.rawgit.com/chocolatey/choco/1f8024c102cebe0cf2628cdab4e322416376036c/src/chocolatey.resources/tools/7z.exe -UseDefaultCredential -OutFile "$env:ChocolateyInstall\tools\7z.exe"
Invoke-WebRequest -UseBasicParsing -Uri https://cdn.rawgit.com/chocolatey/choco/1f8024c102cebe0cf2628cdab4e322416376036c/src/chocolatey.resources/tools/7z.dll -UseDefaultCredential -OutFile "$env:ChocolateyInstall\tools\7z.dll"
~~~

Got the e-mail alert for this, but I can't upgrade to 0.10.9 via -pre:
~
PS C:\WINDOWS\system32> cup chocolatey chocolatey.extension -y -pre
Chocolatey v0.10.8 Professional
Upgrading the following packages:
chocolatey;chocolatey.extension
By upgrading you accept licenses for the packages.
chocolatey v0.10.8 is the latest version available based on your source(s).
chocolatey.extension v1.12.11 is the latest version available based on your source(s).
~

Same here, on this end.

Howdy folks - https://chocolatey.org/packages/chocolatey/0.10.9-beta-20180223 is still in moderation.

It will automatically approve in the next half hour to an hour - choco upgrade chocolatey -y -pre --version 0.10.9-beta-20180223 should get you it immediately.

Magic works, thanks for the heads up. With puppet it will be a breeze ;)

Was this page helpful?
0 / 5 - 0 ratings