Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. NuGet.CommandLine
  4. ›
  5. CVE-2022-41032

CVE-2022-41032: NuGet Elevation of Privilege Vulnerability

October 11, 2022 (updated February 28, 2025)

Microsoft is releasing this security advisory to provide information about a vulnerability in .NET 7.0.0-rc, .NET 6.0, .NET Core 3.1, and NuGet (NuGet.exe, NuGet.Commands, NuGet.CommandLine, NuGet.Protocol). This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.

A vulnerability exists in .NET 7.0.0-rc.1, .NET 6.0, .NET Core 3.1, and NuGet clients (NuGet.exe, NuGet.Commands, NuGet.CommandLine, NuGet.Protocol) where a malicious actor could cause a user to execute arbitrary code.

References

  • github.com/NuGet/Announcements/issues/65
  • github.com/NuGet/NuGet.Client
  • github.com/NuGet/NuGet.Client/commit/6392863cf83f4870e18f1d02f2463cca633e59ed
  • github.com/NuGet/NuGet.Client/security/advisories/GHSA-g3q9-xf95-8hp5
  • github.com/advisories/GHSA-g3q9-xf95-8hp5
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FOG35Z5RL5W5RGLLYLN46CI4D2UPDSWM
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HDPT2MJC3HD7HYZGASOOX6MTDR4ASBL5
  • lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/X7BMHO5ITRBZREVTEKHQRGSFRPDMALV3
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FOG35Z5RL5W5RGLLYLN46CI4D2UPDSWM
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HDPT2MJC3HD7HYZGASOOX6MTDR4ASBL5
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/X7BMHO5ITRBZREVTEKHQRGSFRPDMALV3
  • msrc.microsoft.com/update-guide/vulnerability/CVE-2022-41032
  • nvd.nist.gov/vuln/detail/CVE-2022-41032
  • portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2022-41032
  • www.edwardthomson.com/blog/my-first-cve.html

Code Behaviors & Features

Detect and mitigate CVE-2022-41032 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.6.0 before 4.9.6, all versions starting from 5.0.0 before 5.7.3, all versions starting from 5.8.0 before 5.9.3, all versions starting from 5.10.0 before 5.11.3, all versions starting from 6.0.0 before 6.0.3, all versions starting from 6.1.0 before 6.2.2, all versions starting from 6.3.0 before 6.3.1

Fixed versions

  • 4.9.6
  • 5.7.3
  • 5.9.3
  • 5.11.3
  • 6.0.3
  • 6.2.2
  • 6.3.1

Solution

Upgrade to versions 4.9.6, 5.11.3, 5.7.3, 5.9.3, 6.0.3, 6.2.2, 6.3.1 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-269: Improper Privilege Management

Source file

nuget/NuGet.CommandLine/CVE-2022-41032.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:02 +0000.