Vulnerabilities in pkg:nuget/Microsoft.PowerShell.SDK
PACKAGECVE-2022-26788 is a HIGH (CVSS 7.8) powershell elevation of privilege vulnerability vulnerability (General Security Weakness) affecting Microsoft.PowerShell.SDK libraries in the NuGet ecosystem. The issue involves powershell elevation of privilege vulnerability. Remediation is available by upgrading affected packages to version 7.0.10, 7.1.7, 7.2.3.
pkg:nuget/Microsoft.PowerShell.SDK
Vulnerability advisories affecting package pkg:nuget/Microsoft.PowerShell.SDK. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-q7x5-x7rr-2859 | CVE-2022-26788 | HIGH | PowerShell Elevation of Privilege Vulnerability |
CVE-2022-26788 at a Glance
Security Impact
CVSS: 7.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2022-26788
To remediate this vulnerability, upgrade all affected Microsoft.PowerShell.SDK dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade Microsoft.PowerShell.SDK to 7.0.10
Upgrade Microsoft.PowerShell.SDK to 7.1.7
Upgrade Microsoft.PowerShell.SDK to 7.2.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for Microsoft.PowerShell.SDK
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-26788, inspect your project dependencies for Microsoft.PowerShell.SDK:
inspect dependencies for Microsoft.PowerShell.SDK
Analyze the terminal output to locate any version of Microsoft.PowerShell.SDK in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.10), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Microsoft.PowerShell.SDK, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-26788 Affected Microsoft.PowerShell.SDK Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
Microsoft.PowerShell.SDK
|
NuGet |
≥ 7.0.0-preview.1
< 7.0.10
|
7.0.10
|
|
Microsoft.PowerShell.SDK
|
NuGet |
≥ 7.1.0-preview.1
< 7.1.7
|
7.1.7
|
|
Microsoft.PowerShell.SDK
|
NuGet |
≥ 7.2.0-preview.1
< 7.2.3
|
7.2.3
|
References
Frequently Asked Questions
What is CVE-2022-26788?
Which Microsoft.PowerShell.SDK versions are affected?
What version fixes CVE-2022-26788?
Is Microsoft.PowerShell.SDK affected?
What is the CVSS score of CVE-2022-26788?
What CWE is associated with CVE-2022-26788?
How can I check NuGet dependencies for CVE-2022-26788?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-q7x5-x7rr-2859",
"modified" : "2025-10-13T20:34:19Z",
"published" : "2022-04-16T00:00:33Z",
"aliases" : [ "CVE-2022-26788" ],
"summary" : "PowerShell Elevation of Privilege Vulnerability",
"details" : "PowerShell Elevation of Privilege Vulnerability.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.PowerShell.SDK"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0-preview.1"
}, {
"fixed" : "7.0.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.PowerShell.SDK"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.1.0-preview.1"
}, {
"fixed" : "7.1.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "NuGet",
"name" : "Microsoft.PowerShell.SDK"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.2.0-preview.1"
}, {
"fixed" : "7.2.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-26788"
}, {
"type" : "WEB",
"url" : "https://github.com/PowerShell/Announcements/issues/31"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/PowerShell/PowerShell"
}, {
"type" : "WEB",
"url" : "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2022-26788"
}, {
"type" : "WEB",
"url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2022-26788"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-10-13T20:34:19Z",
"nvd_published_at" : "2022-04-15T19:15:00Z"
}
}