CVE-2023-29337: NuGet Client Remote Code Execution Vulnerability

CVE-2023-29337 · Severity: low · CVSS 3.1 · Published 2023-06-14

NuGet Client Remote Code Execution Vulnerability

Technologies: NuGet.CommandLine (NuGet), NuGet.Commands (NuGet). Vendors: NuGet.

Quick answers

Is CVE-2023-29337 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2023-29337 being exploited in the wild.
How severe is CVE-2023-29337?
Low severity, with a CVSS score of 3.1, published 14 June 2023.
Which products and versions are affected?
NuGet.CommandLine (NuGet) ECOSYSTEM:introduced=6.0.0,fixed=6.0.5; NuGet.Commands (NuGet) ECOSYSTEM:introduced=6.0.0,fixed=6.0.5; NuGet.Common (NuGet) ECOSYSTEM:introduced=6.0.0,fixed=6.0.5; NuGet.PackageManagement (NuGet) ECOSYSTEM:introduced=6.0.0,fixed=6.0.5; and 1 more.
Is there a fix for CVE-2023-29337?
Yes. NuGet.CommandLine (NuGet): upgrade to 6.0.5 or later; NuGet.Commands (NuGet): upgrade to 6.0.5 or later; NuGet.Common (NuGet): upgrade to 6.0.5 or later; NuGet.PackageManagement (NuGet): upgrade to 6.0.5 or later; NuGet.Protocol (NuGet): upgrade to 6.0.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2023-29337?
Check whether you run Microsoft.Build.NuGetSdkResolver (NuGet), NuGet.CommandLine (NuGet), NuGet.Commands (NuGet) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • NuGet.CommandLine (NuGet): upgrade to 6.0.5 or later
    dotnet add package NuGet.CommandLine --version 6.0.5
  • NuGet.Commands (NuGet): upgrade to 6.0.5 or later
    dotnet add package NuGet.Commands --version 6.0.5
  • NuGet.Common (NuGet): upgrade to 6.0.5 or later
    dotnet add package NuGet.Common --version 6.0.5
  • NuGet.PackageManagement (NuGet): upgrade to 6.0.5 or later
    dotnet add package NuGet.PackageManagement --version 6.0.5
  • NuGet.Protocol (NuGet): upgrade to 6.0.5 or later
    dotnet add package NuGet.Protocol --version 6.0.5

Affected products

  • Microsoft.Build.NuGetSdkResolver (NuGet)
  • NuGet.CommandLine (NuGet) ECOSYSTEM:introduced=6.0.0,fixed=6.0.5
  • NuGet.Commands (NuGet) ECOSYSTEM:introduced=6.0.0,fixed=6.0.5
  • NuGet.Common (NuGet) ECOSYSTEM:introduced=6.0.0,fixed=6.0.5
  • NuGet.PackageManagement (NuGet) ECOSYSTEM:introduced=6.0.0,fixed=6.0.5
  • NuGet.Protocol (NuGet) ECOSYSTEM:introduced=6.0.0,fixed=6.0.5

Identifiers

  • CVE-2023-29337
  • GHSA-6qmf-mmc7-6c2p

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.