You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Security] Unable to extract files from nupkg when different file name encoding is used #2816
When extracting the contents of a Chocolatey package (a .nupkg file), depending on the encoding of the file name, Chocolatey is not able to understand about the existence of the file. This causes a problem in terms of how Chocolatey interrogates the contents of a file in order to send a file for scanning (via VirusTotal), as well as performing other functions on the file.
This means that there is the potential for a malicious file to be included within the nupkg file, and for Chocolatey not to be aware of the problem.
This issue stems from a change in the way that the underlying NuGet libraries handle the encoding of file names when they are added to the nupkg file. We need to make NuGet.Core aware of the all the known ways to encode the file name, so that it can correctly handle the extraction of all files contained within the nupkg file.
Patches
A fix for this problem has been released in version 2.11.0.20220901 of the customised version of NuGet.Core which is maintained by the Chocolatey Team.
Activity
(#2816) Update to latest Chocolatey NuGet.Core
(#2816) Update to latest Chocolatey NuGet.Core
Merge branch 'release/1.2.0'
AdmiringWorm commentedon Oct 20, 2022
🎉 This issue has been resolved in version 1.2.0 🎉
The release is available on:
Your GitReleaseManager bot 📦🚀
Merge branch 'master' into develop
[-]TBD[/-][+][Security] Unable to extract files from nupkg when different file name encoding is used[/+]