CVE-2023-29337

CVE-2023-29337 is a high-severity security vulnerability in Microsoft.Build.NuGetSdkResolver (nuget), affecting versions = 5.9.0-rc.7122. It is fixed in 6.2.4, 6.3.3, 6.4.2, 6.5.1, 6.6.1, 6.0.5, 5.11.5.

Does this CVE actually affect you?

Kodem shows which CVEs are reachable and running in your applications, so you fix what's exploitable, not just what's listed.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

Runtime intelligence, not another scanner.

Summary

NuGet Client Remote Code Execution Vulnerability

Description

Microsoft is releasing this security advisory to provide information about a vulnerability in .NET and NuGet on Linux. This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.

A vulnerability exists in .NET 6.0, .NET 7.0 and NuGet(nuget.exe, NuGet.Protocol, NuGet.Common, NuGet.CommandLine, NuGet.Commands, Microsoft.Build.NuGetSdkResolver, NuGet.PackageManagement) where a potential race condition that can lead to a symlink attack on Linux. Non-Linux platforms are not affected.

Affected software

This issue only affects Linux systems.

NuGet & NuGet Packages

  • Any NuGet.exe, NuGet.Protocol, NuGet.Common, NuGet.CommandLine, NuGet.Commands, Microsoft.Build.NuGetSdkResolver, NuGet.PackageManagement 6.6.0 version or earlier.
  • Any NuGet.exe, NuGet.Protocol, NuGet.Common, NuGet.CommandLine, NuGet.Commands, Microsoft.Build.NuGetSdkResolver, NuGet.PackageManagement 6.5.0 version or earlier.
  • Any NuGet.exe, NuGet.Protocol, NuGet.Common, NuGet.CommandLine, NuGet.Commands, Microsoft.Build.NuGetSdkResolver, NuGet.PackageManagement 6.4.1 version or earlier.
  • Any NuGet.exe, NuGet.Protocol, NuGet.Common, NuGet.CommandLine, NuGet.Commands, Microsoft.Build.NuGetSdkResolver, NuGet.PackageManagement 6.3.2 version or earlier.
  • Any NuGet.exe, NuGet.Protocol, NuGet.Common, NuGet.CommandLine, NuGet.Commands, Microsoft.Build.NuGetSdkResolver, NuGet.PackageManagement 6.2.3 version or earlier.
  • Any NuGet.exe, NuGet.Protocol, NuGet.Common, NuGet.CommandLine, NuGet.Commands, Microsoft.Build.NuGetSdkResolver, NuGet.PackageManagement 6.0.4 version or earlier.
  • Any NuGet.exe, NuGet.Protocol, NuGet.Common, NuGet.CommandLine, NuGet.Commands, Microsoft.Build.NuGetSdkResolver, NuGet.PackageManagement 5.11.4

.NET SDK(s)

  • Any .NET SDK 7.0.106 or earlier, or 7.0.303 or earlier
  • Any .NET SDK 6.0.117 or earlier, or 6.0.312 or earlier, or 6.0.409 or earlier.

Other details

Announcement for this issue can be found at https://github.com/NuGet/Announcements/issues/69

MSRC details for this can be found at https://msrc.microsoft.com/update-guide/vulnerability/CVE-2023-29337

Impact

CVE-2023-29337 has a CVSS score of 7.1 (High). The vector is network-reachable, low privileges required, and user interaction required. A CVSS score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether this affects your application depends on whether the vulnerable code is present and reachable in your environment. A fixed version is available (6.2.4, 6.3.3, 6.4.2, 6.5.1, 6.6.1, 6.0.5, 5.11.5); upgrading removes the vulnerable code path.

Affected versions

Microsoft.Build.NuGetSdkResolver (= 5.9.0-rc.7122) NuGet.PackageManagement (>= 6.2.0, < 6.2.4) NuGet.PackageManagement (>= 6.3.0, < 6.3.3) NuGet.PackageManagement (>= 6.4.0, < 6.4.2) NuGet.PackageManagement (= 6.5.0) NuGet.PackageManagement (= 6.6.0) Microsoft.Build.NuGetSdkResolver (= 5.10.0-rc.7240) Microsoft.Build.NuGetSdkResolver (= 5.11.0-rc.10) NuGet.Commands (>= 6.2.0, < 6.2.4) NuGet.Commands (>= 6.3.0, < 6.3.3) NuGet.Commands (>= 6.4.0, < 6.4.2) NuGet.Commands (= 6.5.0) NuGet.Commands (= 6.6.0) NuGet.CommandLine (>= 6.2.0, < 6.2.4) NuGet.CommandLine (>= 6.3.0, < 6.3.3) NuGet.CommandLine (>= 6.4.0, < 6.4.2) NuGet.CommandLine (= 6.5.0) NuGet.CommandLine (= 6.6.0) NuGet.Common (>= 6.2.0, < 6.2.4) NuGet.Common (>= 6.3.0, < 6.3.3) NuGet.Common (>= 6.4.0, < 6.4.2) NuGet.Common (= 6.5.0) NuGet.Common (= 6.6.0) NuGet.Protocol (>= 6.2.0, < 6.2.4) NuGet.Protocol (>= 6.3.0, < 6.3.3) NuGet.Protocol (>= 6.4.0, < 6.4.2) NuGet.Protocol (= 6.5.0) NuGet.Protocol (= 6.6.0) NuGet.PackageManagement (>= 6.0.0, < 6.0.5) NuGet.Commands (>= 6.0.0, < 6.0.5) NuGet.CommandLine (>= 6.0.0, < 6.0.5) NuGet.Common (>= 6.0.0, < 6.0.5) NuGet.Protocol (>= 6.0.0, < 6.0.5) NuGet.PackageManagement (>= 4.6.0, < 5.11.5) NuGet.Commands (>= 4.6.0, < 5.11.5) NuGet.CommandLine (>= 4.6.0, < 5.11.5) NuGet.Common (>= 4.6.0, < 5.11.5) NuGet.Protocol (>= 4.7.0, < 5.11.5)

Security releases

NuGet.PackageManagement → 6.2.4 (nuget) NuGet.PackageManagement → 6.3.3 (nuget) NuGet.PackageManagement → 6.4.2 (nuget) NuGet.PackageManagement → 6.5.1 (nuget) NuGet.PackageManagement → 6.6.1 (nuget) NuGet.Commands → 6.2.4 (nuget) NuGet.Commands → 6.3.3 (nuget) NuGet.Commands → 6.4.2 (nuget) NuGet.Commands → 6.5.1 (nuget) NuGet.Commands → 6.6.1 (nuget) NuGet.CommandLine → 6.2.4 (nuget) NuGet.CommandLine → 6.3.3 (nuget) NuGet.CommandLine → 6.4.2 (nuget) NuGet.CommandLine → 6.5.1 (nuget) NuGet.CommandLine → 6.6.1 (nuget) NuGet.Common → 6.2.4 (nuget) NuGet.Common → 6.3.3 (nuget) NuGet.Common → 6.4.2 (nuget) NuGet.Common → 6.5.1 (nuget) NuGet.Common → 6.6.1 (nuget) NuGet.Protocol → 6.2.4 (nuget) NuGet.Protocol → 6.3.3 (nuget) NuGet.Protocol → 6.4.2 (nuget) NuGet.Protocol → 6.5.1 (nuget) NuGet.Protocol → 6.6.1 (nuget) NuGet.PackageManagement → 6.0.5 (nuget) NuGet.Commands → 6.0.5 (nuget) NuGet.CommandLine → 6.0.5 (nuget) NuGet.Common → 6.0.5 (nuget) NuGet.Protocol → 6.0.5 (nuget) NuGet.PackageManagement → 5.11.5 (nuget) NuGet.Commands → 5.11.5 (nuget) NuGet.CommandLine → 5.11.5 (nuget) NuGet.Common → 5.11.5 (nuget) NuGet.Protocol → 5.11.5 (nuget)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

Already deployed Kodem?

See it in your environmentNew to Kodem? Get a demo →

Remediation advice

To fix the issue, please install the latest version of .NET 6.0 or .NET 7.0 and NuGet (NuGet.exe, NuGet.Protocol, NuGet.Common, NuGet.CommandLine, NuGet.Commands, NuGet.PackageManagement versions). If you have installed one or more .NET SDKs through Visual Studio, Visual Studio will prompt you to update Visual Studio, which will also update your .NET SDKs.

Frequently Asked Questions

  1. What is CVE-2023-29337? CVE-2023-29337 is a high-severity security vulnerability in Microsoft.Build.NuGetSdkResolver (nuget), affecting versions = 5.9.0-rc.7122. It is fixed in 6.2.4, 6.3.3, 6.4.2, 6.5.1, 6.6.1, 6.0.5, 5.11.5.
  2. How severe is CVE-2023-29337? CVE-2023-29337 has a CVSS score of 7.1 (High). This score reflects the worst-case severity of the vulnerability, not your specific exposure. Whether it represents real risk in your environment depends on whether the vulnerable code is present and reachable.
  3. Which packages are affected by CVE-2023-29337?
    • Microsoft.Build.NuGetSdkResolver (nuget) (versions = 5.9.0-rc.7122)
    • NuGet.PackageManagement (nuget) (versions >= 6.2.0, < 6.2.4)
    • NuGet.Commands (nuget) (versions >= 6.2.0, < 6.2.4)
    • NuGet.CommandLine (nuget) (versions >= 6.2.0, < 6.2.4)
    • NuGet.Common (nuget) (versions >= 6.2.0, < 6.2.4)
    • NuGet.Protocol (nuget) (versions >= 6.2.0, < 6.2.4)
  4. Is there a fix for CVE-2023-29337? Yes. CVE-2023-29337 is fixed in 6.2.4, 6.3.3, 6.4.2, 6.5.1, 6.6.1, 6.0.5, 5.11.5. Upgrade to this version or later.
  5. Is CVE-2023-29337 exploitable, and should I be worried? Whether CVE-2023-29337 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  6. What actually determines whether CVE-2023-29337 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  7. How do I fix CVE-2023-29337?
    • Upgrade NuGet.PackageManagement to 6.2.4 or later
    • Upgrade NuGet.PackageManagement to 6.3.3 or later
    • Upgrade NuGet.PackageManagement to 6.4.2 or later
    • Upgrade NuGet.PackageManagement to 6.5.1 or later
    • Upgrade NuGet.PackageManagement to 6.6.1 or later
    • Upgrade NuGet.Commands to 6.2.4 or later
    • Upgrade NuGet.Commands to 6.3.3 or later
    • Upgrade NuGet.Commands to 6.4.2 or later
    • Upgrade NuGet.Commands to 6.5.1 or later
    • Upgrade NuGet.Commands to 6.6.1 or later
    • Upgrade NuGet.CommandLine to 6.2.4 or later
    • Upgrade NuGet.CommandLine to 6.3.3 or later
    • Upgrade NuGet.CommandLine to 6.4.2 or later
    • Upgrade NuGet.CommandLine to 6.5.1 or later
    • Upgrade NuGet.CommandLine to 6.6.1 or later
    • Upgrade NuGet.Common to 6.2.4 or later
    • Upgrade NuGet.Common to 6.3.3 or later
    • Upgrade NuGet.Common to 6.4.2 or later
    • Upgrade NuGet.Common to 6.5.1 or later
    • Upgrade NuGet.Common to 6.6.1 or later
    • Upgrade NuGet.Protocol to 6.2.4 or later
    • Upgrade NuGet.Protocol to 6.3.3 or later
    • Upgrade NuGet.Protocol to 6.4.2 or later
    • Upgrade NuGet.Protocol to 6.5.1 or later
    • Upgrade NuGet.Protocol to 6.6.1 or later
    • Upgrade NuGet.PackageManagement to 6.0.5 or later
    • Upgrade NuGet.Commands to 6.0.5 or later
    • Upgrade NuGet.CommandLine to 6.0.5 or later
    • Upgrade NuGet.Common to 6.0.5 or later
    • Upgrade NuGet.Protocol to 6.0.5 or later
    • Upgrade NuGet.PackageManagement to 5.11.5 or later
    • Upgrade NuGet.Commands to 5.11.5 or later
    • Upgrade NuGet.CommandLine to 5.11.5 or later
    • Upgrade NuGet.Common to 5.11.5 or later
    • Upgrade NuGet.Protocol to 5.11.5 or later

Stop the waste.
Protect your environment with Kodem.