System.Management.Automation is vulnerable to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
50
CVE Score
Medium
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
PowerShell's FdiNotify callback in CabinetNativeApi.cs extracts CAB help entries by combining the help directory with the raw entry path fdin.psz1, then calls Directory.CreateDirectory and FdiOpen with no check that the result stays inside that directory. The entry path comes from the CAB archive that the help-update feature is extracting. A rooted path, a UNC path, a path containing :, or a .. segment is written outside the help directory. The fix adds ValidateExtractionPath, which rejects rooted or colon-containing entry paths and throws InvalidOperationException before Directory.CreateDirectory or FdiOpen unless the resolved path stays inside the help directory.
Upgrade the System.Management.Automation library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and your application uses PowerShell's help CAB file extraction functionality to expand help content archives.
6.0.4 - 7.4.17
Fixed in 7.4.187.5.0 - 7.5.8
Fixed in 7.5.97.5.10 - 7.5.10
Fixed in 7.5.117.6.0 - 7.6.3
Fixed in 7.6.47.6.5 - 7.6.5
Fixed in 7.6.6System.Management.Automation is vulnerable to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in versions 6.0.4 - 7.4.17, 7.5.0 - 7.5.8, 7.5.10 - 7.5.10, 7.6.0 - 7.6.3 and 7.6.5 - 7.6.5.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.