Intel

AIKIDO-2026-899514

System.Management.Automation is vulnerable to Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 19, 2026
October 19, 2026

50

CVE Score

Medium

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Are you affected? Scan for Free

TL;DR

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.

How do I fix this?

Upgrade the System.Management.Automation library to the patch version.

Who does this affect?

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.

Versions

6.0.4 - 7.4.17

Fixed in 7.4.18

7.5.0 - 7.5.8

Fixed in 7.5.9

7.5.10 - 7.5.10

Fixed in 7.5.11

7.6.0 - 7.6.3

Fixed in 7.6.4

7.6.5 - 7.6.5

Fixed in 7.6.6

Background info

System.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.

Get secure today,
quickly and for free.

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.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea