CVE-2023-29337 NuGet Client Remote Code Execution Vulnerability

High 7.1 Published Updated

A race condition in the NuGet client allows attackers to execute arbitrary code during package installation.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2023-29337?

CVE-2023-29337 is a high-severity vulnerability in Microsoft NuGet 5.11.4, published on 14 Jun 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

NuGet Client Remote Code Execution Vulnerability

Weakness: CWE-367

Which versions are affected by CVE-2023-29337?

40 open source packages ship an affected version, including NuGet.CommandLine, Microsoft.Build.NuGetSdkResolver and NuGet.Commands. It affects 1 product.

PackageAffectedFixed in
NuGet.CommandLine NuGetFrom 4.6.05.11.5
NuGet.CommandLine NuGetFrom 4.6.05.11.5
NuGet.CommandLine NuGetFrom 6.0.06.0.5
NuGet.CommandLine NuGetFrom 6.0.06.0.5
NuGet.CommandLine NuGetFrom 6.2.06.2.4
NuGet.CommandLine NuGetFrom 6.2.06.2.4
34 more packages
NuGet.CommandLine NuGetFrom 6.3.06.3.3
NuGet.CommandLine NuGetFrom 6.3.06.3.3
NuGet.CommandLine NuGetFrom 6.4.06.4.2
NuGet.CommandLine NuGetFrom 6.4.06.4.2
NuGet.CommandLine NuGetFrom 6.5.06.5.1
NuGet.CommandLine NuGetFrom 6.5.06.5.1
NuGet.CommandLine NuGetFrom 6.6.06.6.1
NuGet.CommandLine NuGetFrom 6.6.06.6.1
Microsoft.Build.NuGetSdkResolver NuGetAll versionsNone
Microsoft.Build.NuGetSdkResolver NuGetAll versionsNone
NuGet.Commands NuGetFrom 4.6.05.11.5
NuGet.Commands NuGetFrom 4.6.05.11.5
NuGet.Commands NuGetFrom 6.0.06.0.5
NuGet.Commands NuGetFrom 6.0.06.0.5
NuGet.Commands NuGetFrom 6.2.06.2.4
NuGet.Commands NuGetFrom 6.2.06.2.4
NuGet.Commands NuGetFrom 6.3.06.3.3
NuGet.Commands NuGetFrom 6.3.06.3.3
NuGet.Commands NuGetFrom 6.4.06.4.2
NuGet.Commands NuGetFrom 6.4.06.4.2
NuGet.Commands NuGetFrom 6.5.06.5.1
NuGet.Commands NuGetFrom 6.5.06.5.1
NuGet.Commands NuGetFrom 6.6.06.6.1
NuGet.Commands NuGetFrom 6.6.06.6.1
NuGet.Common NuGetFrom 4.6.05.11.5
NuGet.Common NuGetFrom 4.6.05.11.5
NuGet.Common NuGetFrom 6.0.06.0.5
NuGet.Common NuGetFrom 6.0.06.0.5
NuGet.Common NuGetFrom 6.2.06.2.4
NuGet.Common NuGetFrom 6.2.06.2.4
NuGet.Common NuGetFrom 6.3.06.3.3
NuGet.Common NuGetFrom 6.3.06.3.3
NuGet.Common NuGetFrom 6.4.06.4.2
NuGet.Common NuGetFrom 6.4.06.4.2

Products include Microsoft Nuget.

How do I fix CVE-2023-29337?

Upgrade NuGet.CommandLine to a fixed version for your release line: 5.11.5, 6.0.5, 6.2.4 or 6.3.3.

Is CVE-2023-29337 being exploited?

There is no known exploitation of CVE-2023-29337 in the wild and no public exploit code.

Sources

Also known as CLEANSTART-2025-EH90452, DEBIAN-CVE-2023-29337, GHSA-6qmf-mmc7-6c2p, UBUNTU-CVE-2023-29337.

Is CVE-2023-29337 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free