Race condition in NuGet - CVE-2023-29337

 

Race condition in NuGet - CVE-2023-29337

Published: June 14, 2023


Vulnerability identifier: #VU77278
CSH Severity: Medium
CVSS v4: 7.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-29337
CWE-ID: CWE-362
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the system.

The vulnerability exists due to a race condition in NuGet Client. A remote user can exploit the race and execute arbitrary code on the target system.


Affected software

NuGet
Amazon Linux AMI
Red Hat Enterprise Linux for ARM 64
Anolis OS
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for IBM z Systems
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for x86_64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Ubuntu
dotnet-targeting-pack-6.0
dotnet-runtime-6.0
dotnet-hostfxr-6.0
aspnetcore-runtime-6.0
dotnet-host
dotnet-apphost-pack-6.0
aspnetcore-targeting-pack-6.0
dotnet-runtime-6.0 (Ubuntu package)
aspnetcore-runtime-6.0 (Ubuntu package)
dotnet6 (Ubuntu package)
dotnet-hostfxr-6.0 (Ubuntu package)
dotnet-host (Ubuntu package)
dotnet-sdk-6.0 (Ubuntu package)
dotnet6.0
rh-dotnet60-dotnet (Red Hat package)
dotnet6.0 (Red Hat package)
netstandard-targeting-pack-2.1
dotnet-templates-6.0
dotnet
dotnet-sdk-6.0-source-built-artifacts
dotnet-sdk-6.0
aspnetcore-runtime-7.0 (Ubuntu package)
dotnet7 (Ubuntu package)
dotnet-hostfxr-7.0 (Ubuntu package)
dotnet-runtime-7.0 (Ubuntu package)
dotnet-host-7.0 (Ubuntu package)
dotnet-sdk-7.0 (Ubuntu package)
dotnet7.0 (Red Hat package)
Robotic Process Automation for Cloud Pak

How to mitigate CVE-2023-29337

Install updates from vendor's website.

dotnet-targeting-pack-6.0 - update to 6.0.20-1.0.1
dotnet-runtime-6.0 - update to 6.0.20-1.0.1
dotnet-hostfxr-6.0 - update to 6.0.20-1.0.1
aspnetcore-runtime-6.0 - update to 6.0.20-1.0.1
dotnet-host - update to 6.0.20-1.0.1
dotnet-apphost-pack-6.0 - update to 6.0.20-1.0.1
aspnetcore-targeting-pack-6.0 - update to 6.0.20-1.0.1
dotnet-runtime-6.0 (Ubuntu package) - addressed in versions 6.0.118-0ubuntu1~22.04.1, 6.0.118-0ubuntu1~22.10.1, 6.0.118-0ubuntu1~23.04.1, 6.0.119-0ubuntu1~22.04.1, 6.0.119-0ubuntu1~22.10.1, 6.0.119-0ubuntu1~23.04.1
aspnetcore-runtime-6.0 (Ubuntu package) - addressed in versions 6.0.118-0ubuntu1~22.04.1, 6.0.118-0ubuntu1~22.10.1, 6.0.118-0ubuntu1~23.04.1, 6.0.119-0ubuntu1~22.04.1, 6.0.119-0ubuntu1~22.10.1, 6.0.119-0ubuntu1~23.04.1
dotnet6 (Ubuntu package) - addressed in versions 6.0.118-0ubuntu1~22.04.1, 6.0.118-0ubuntu1~22.10.1, 6.0.118-0ubuntu1~23.04.1, 6.0.119-0ubuntu1~22.04.1, 6.0.119-0ubuntu1~22.10.1, 6.0.119-0ubuntu1~23.04.1
dotnet-hostfxr-6.0 (Ubuntu package) - addressed in versions 6.0.118-0ubuntu1~22.04.1, 6.0.118-0ubuntu1~22.10.1, 6.0.118-0ubuntu1~23.04.1, 6.0.119-0ubuntu1~22.04.1, 6.0.119-0ubuntu1~22.10.1, 6.0.119-0ubuntu1~23.04.1
dotnet-host (Ubuntu package) - addressed in versions 6.0.118-0ubuntu1~22.04.1, 6.0.118-0ubuntu1~22.10.1, 6.0.118-0ubuntu1~23.04.1, 6.0.119-0ubuntu1~22.04.1, 6.0.119-0ubuntu1~22.10.1, 6.0.119-0ubuntu1~23.04.1
dotnet-sdk-6.0 (Ubuntu package) - addressed in versions 6.0.118-0ubuntu1~22.04.1, 6.0.118-0ubuntu1~22.10.1, 6.0.118-0ubuntu1~23.04.1, 6.0.119-0ubuntu1~22.04.1, 6.0.119-0ubuntu1~22.10.1, 6.0.119-0ubuntu1~23.04.1
dotnet6.0 - update to 6.0.118-1
rh-dotnet60-dotnet (Red Hat package) - update to 6.0.118-1.el7_9
dotnet6.0 (Red Hat package) - addressed in versions 6.0.118-1.el8_8, 6.0.118-1.el9_2, 6.0.120-1.el8_6, 6.0.120-1.el9_0
netstandard-targeting-pack-2.1 - update to 6.0.120-1.0.1
dotnet-templates-6.0 - update to 6.0.120-1.0.1
dotnet - update to 6.0.120-1.0.1
dotnet-sdk-6.0-source-built-artifacts - update to 6.0.120-1.0.1
dotnet-sdk-6.0 - update to 6.0.120-1.0.1
aspnetcore-runtime-7.0 (Ubuntu package) - addressed in versions 7.0.107-0ubuntu1~22.04.1, 7.0.107-0ubuntu1~22.10.1, 7.0.107-0ubuntu1~23.04.1, 7.0.108-0ubuntu1~22.04.1, 7.0.108-0ubuntu1~22.10.1, 7.0.108-0ubuntu1~23.04.1
dotnet7 (Ubuntu package) - addressed in versions 7.0.107-0ubuntu1~22.04.1, 7.0.107-0ubuntu1~22.10.1, 7.0.107-0ubuntu1~23.04.1, 7.0.108-0ubuntu1~22.04.1, 7.0.108-0ubuntu1~22.10.1, 7.0.108-0ubuntu1~23.04.1
dotnet-hostfxr-7.0 (Ubuntu package) - addressed in versions 7.0.107-0ubuntu1~22.04.1, 7.0.107-0ubuntu1~22.10.1, 7.0.107-0ubuntu1~23.04.1, 7.0.108-0ubuntu1~22.04.1, 7.0.108-0ubuntu1~22.10.1, 7.0.108-0ubuntu1~23.04.1
dotnet-runtime-7.0 (Ubuntu package) - addressed in versions 7.0.107-0ubuntu1~22.04.1, 7.0.107-0ubuntu1~22.10.1, 7.0.107-0ubuntu1~23.04.1, 7.0.108-0ubuntu1~22.04.1, 7.0.108-0ubuntu1~22.10.1, 7.0.108-0ubuntu1~23.04.1
dotnet-host-7.0 (Ubuntu package) - addressed in versions 7.0.107-0ubuntu1~22.04.1, 7.0.107-0ubuntu1~22.10.1, 7.0.107-0ubuntu1~23.04.1, 7.0.108-0ubuntu1~22.04.1, 7.0.108-0ubuntu1~22.10.1, 7.0.108-0ubuntu1~23.04.1
dotnet-sdk-7.0 (Ubuntu package) - addressed in versions 7.0.107-0ubuntu1~22.04.1, 7.0.107-0ubuntu1~22.10.1, 7.0.107-0ubuntu1~23.04.1, 7.0.108-0ubuntu1~22.04.1, 7.0.108-0ubuntu1~22.10.1, 7.0.108-0ubuntu1~23.04.1
dotnet7.0 (Red Hat package) - addressed in versions 7.0.107-1.el8_8, 7.0.107-1.el9_2
Robotic Process Automation for Cloud Pak - addressed in versions 21.0.7.7, 23.0.8

External References

Related Security Bulletins