powershell is vulnerable to Path Traversal
53
Medium Risk
The Update-Help and Save-Help cmdlets in powershell extract downloaded help content from CAB archives. The extraction routine combines each archive entry path with the destination help directory without validating it, so an entry containing directory traversal sequences, a rooted or UNC path, or an alternate data stream reference is written outside the intended directory. Processing a crafted help CAB from an untrusted help source therefore allows arbitrary files to be created or overwritten, which can lead to code execution. The fix validates each entry against the canonical help directory and rejects rooted paths, colon/ADS paths, and any path that resolves outside the target directory.
You are affected if you are using a version that falls within the vulnerable range and you run Update-Help or Save-Help against an untrusted or attacker-controlled help source.
powershell is vulnerable to Path Traversal in versions 7.0.0 - 7.4.17, 7.5.0 - 7.5.8 and 7.6.0 - 7.6.3.
Upgrade the powershell library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant