Privilege Defined With Unsafe Actions Affecting system.management.automation package, versions [7.0.0-preview.1,7.0.10)[7.1.0-preview.1,7.1.7)[7.2.0-preview.1,7.2.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.33% (56th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DOTNET-SYSTEMMANAGEMENTAUTOMATION-13546143
  • published14 Oct 2025
  • disclosed16 Apr 2022
  • creditZubair Ashraf, Firooz Akbari, Mattias Borg

Introduced: 16 Apr 2022

CVE-2022-26788  (opens in a new tab)
CWE-267  (opens in a new tab)

How to fix?

Upgrade System.Management.Automation to version 7.0.10, 7.1.7, 7.2.3 or higher.

Overview

System.Management.Automation is a System Management Automation for PowerShell.

Affected versions of this package are vulnerable to Privilege Defined With Unsafe Actions in the module search paths that will return empty strings for special folders that don't exist in some accounts (like System account), and the module path code appends path locations without first checking if the root path is non-empty. An attacker can drop modules in locations that higher privilege accounts will load from, thus gaining escalated privilege code execution.

CVSS Base Scores

version 4.0
version 3.1