cve.bz

CVE-2024-0057 microsoft: Improper Input Validation

9.8 criticalEPSS 2.8%Fix available

Critical (9.8) in microsoft. EPSS 2.8% estimated probability of exploitation activity in the next 30 days. Fixed in NuGet.CommandLine 5.11.6, 6.0.6, 6.3.4.

On this page
NET, .NET Framework, and Visual Studio Security Feature Bypass Vulnerability

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
2.8% (unchanged from 2.8% a week ago; 2.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-05-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-0057 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-0057?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-0057?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-0057 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Microsoft .NET 8.0from 8.0 before 8.0.1
Microsoft .NET 7.0from 7.0.0 before 7.0.15
Microsoft .NET 6.0from 6.0.0 before 6.0.26
Microsoft Visual Studio 2022 version 17.2from 17.2.0 before 17.2.23
Microsoft Visual Studio 2019 version 16.11 (includes 16.0 - 16.10)from 16.11.0 before 16.11.34
Microsoft Visual Studio 2022 version 17.4from 17.4.0 before 17.4.15
Microsoft Visual Studio 2022 version 17.6from 17.6.0 before 17.6.11
Microsoft Visual Studio 2022 version 17.8from 17.8.0 before 17.8.4
Microsoft NuGet 5.11.0from 5.11.0 before 5.11.6.0
Microsoft NuGet 17.4.0from 17.4.0 before 17.4.3.0
Microsoft NUGET 17.6.0from 17.6.0 before 17.6.2.0
Microsoft NuGet 17.8.0from 17.8.0 before 17.8.1.0
Microsoft PowerShell 7.2from 7.2.0 before 7.2.18
Microsoft PowerShell 7.3from 7.3.0 before 7.3.11
Microsoft PowerShell 7.4from 7.4.0 before 7.4.2
Microsoft .NET Framework 4.8from 4.8.0 before 4.8.04690.02
Microsoft .NET Framework 3.5 AND 4.8from 4.8.0 before 4.8.04690.02
Microsoft .NET Framework 3.5 AND 4.7.2from 4.7.0 before 4.7.04081.03
Microsoft .NET Framework 4.6.2/4.7/4.7.1/4.7.2from 4.7.0 before 4.7.04081.02
Microsoft .NET Framework 3.5 AND 4.8.1from 4.8.1 before 4.8.09214.01
Microsoft .NET Framework 2.0 Service Pack 2from 2.0.0 before 3.0.50727.8976
Microsoft .NET Framework 3.0 Service Pack 2from 3.0.0 before 3.0.50727.8976

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-68w7-72jg-6qppNuGetNuGet.CommandLine>=4.6.0 <5.11.65.11.6
GHSA-68w7-72jg-6qppNuGetNuGet.Packaging>=4.6.0 <5.11.65.11.6
GHSA-68w7-72jg-6qppNuGetNuGet.CommandLine>=6.0.0 <6.0.66.0.6
GHSA-68w7-72jg-6qppNuGetNuGet.Packaging>=6.0.0 <6.0.66.0.6
GHSA-68w7-72jg-6qppNuGetNuGet.CommandLine>=6.3.0 <6.3.46.3.4
GHSA-68w7-72jg-6qppNuGetNuGet.Packaging>=6.3.0 <6.3.46.3.4
GHSA-68w7-72jg-6qppNuGetNuGet.CommandLine>=6.4.0 <6.4.36.4.3
GHSA-68w7-72jg-6qppNuGetNuGet.Packaging>=6.4.0 <6.4.36.4.3
GHSA-68w7-72jg-6qppNuGetNuGet.CommandLine>=6.6.0 <6.6.26.6.2
GHSA-68w7-72jg-6qppNuGetNuGet.Packaging>=6.6.0 <6.6.26.6.2
GHSA-68w7-72jg-6qppNuGetNuGet.CommandLine>=6.7.0 <6.7.16.7.1
GHSA-68w7-72jg-6qppNuGetNuGet.Packaging>=6.7.0 <6.7.16.7.1
GHSA-68w7-72jg-6qppNuGetNuGet.CommandLine>=6.8.0 <6.8.16.8.1
GHSA-68w7-72jg-6qppNuGetNuGet.Packaging>=6.8.0 <6.8.16.8.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu22.04:LTSdotnet66.0.126-0ubuntu1~22.04.1UBUNTU-CVE-2024-0057 USN-6578-1
Ubuntu22.04:LTSdotnet77.0.115-0ubuntu1~22.04.1UBUNTU-CVE-2024-0057 USN-6578-1
Red Hatenterprise_linux:8::appstreamdotnet, dotnet8.0, dotnet-sdk-8.0 and 5 more0:8.0.101-1.el8_9RHSA-2024:0150
Red Hatenterprise_linux:8::appstreamdotnet-host, dotnet-hostfxr-8.0, dotnet-runtime-8.0 and 8 more0:8.0.1-1.el8_9RHSA-2024:0150
Red Hatenterprise_linux:8::appstreamdotnet-hostfxr-6.0, dotnet-runtime-6.0, aspnetcore-runtime-6.0 and 6 more0:6.0.26-1.el8_9RHSA-2024:0158
Red Hatenterprise_linux:8::appstreamdotnet-hostfxr-7.0, dotnet-runtime-7.0, aspnetcore-runtime-7.0 and 6 more0:7.0.15-1.el8_9RHSA-2024:0157
Red Hatenterprise_linux:8::appstreamdotnet6.0, dotnet-sdk-6.0, dotnet6.0-debuginfo and 3 more0:6.0.126-1.el8_9RHSA-2024:0158
Red Hatenterprise_linux:8::appstreamdotnet7.0, dotnet-sdk-7.0, dotnet7.0-debuginfo and 3 more0:7.0.115-1.el8_9RHSA-2024:0157
Red Hatenterprise_linux:8::crbdotnet-host-debuginfo, dotnet-hostfxr-8.0-debuginfo, dotnet-runtime-8.0-debuginfo and 1 more0:8.0.1-1.el8_9RHSA-2024:0150
Red Hatenterprise_linux:8::crbdotnet-hostfxr-6.0-debuginfo, dotnet-runtime-6.0-debuginfo, dotnet-apphost-pack-6.0-debuginfo0:6.0.26-1.el8_9RHSA-2024:0158
Red Hatenterprise_linux:8::crbdotnet-hostfxr-7.0-debuginfo, dotnet-runtime-7.0-debuginfo, dotnet-apphost-pack-7.0-debuginfo0:7.0.15-1.el8_9RHSA-2024:0157
Red Hatenterprise_linux:8::crbdotnet6.0-debuginfo, dotnet6.0-debugsource, dotnet-sdk-6.0-debuginfo and 1 more0:6.0.126-1.el8_9RHSA-2024:0158
Red Hatenterprise_linux:8::crbdotnet7.0-debuginfo, dotnet7.0-debugsource, dotnet-sdk-7.0-debuginfo and 1 more0:7.0.115-1.el8_9RHSA-2024:0157
Red Hatenterprise_linux:8::crbdotnet8.0-debuginfo, dotnet8.0-debugsource, dotnet-sdk-8.0-debuginfo and 1 more0:8.0.101-1.el8_9RHSA-2024:0150
14 more for Red Hat in the JSON and on Red Hat's page.
AlmaLinux8dotnet, dotnet-sdk-8.0, dotnet-templates-8.0 and 2 more8.0.101-1.el8_9ALSA-2024:0150
AlmaLinux8dotnet-host, dotnet-hostfxr-8.0, dotnet-runtime-8.0 and 4 more8.0.1-1.el8_9ALSA-2024:0150
AlmaLinux8dotnet-hostfxr-6.0, dotnet-runtime-6.0, aspnetcore-runtime-6.0 and 3 more6.0.26-1.el8_9ALSA-2024:0158
AlmaLinux8dotnet-hostfxr-7.0, dotnet-runtime-7.0, aspnetcore-runtime-7.0 and 3 more7.0.15-1.el8_9ALSA-2024:0157
AlmaLinux8dotnet-sdk-6.0, dotnet-templates-6.0, dotnet-sdk-6.0-source-built-artifacts6.0.126-1.el8_9ALSA-2024:0158
AlmaLinux8dotnet-sdk-7.0, dotnet-templates-7.0, dotnet-sdk-7.0-source-built-artifacts7.0.115-1.el8_9ALSA-2024:0157
AlmaLinux9dotnet-host, dotnet-hostfxr-8.0, dotnet-runtime-8.0 and 4 more8.0.1-1.el9_3ALSA-2024:0152
AlmaLinux9dotnet-hostfxr-6.0, dotnet-runtime-6.0, aspnetcore-runtime-6.0 and 3 more6.0.26-1.el9_3ALSA-2024:0156
AlmaLinux9dotnet-hostfxr-7.0, dotnet-runtime-7.0, aspnetcore-runtime-7.0 and 3 more7.0.15-1.el9_3ALSA-2024:0151
AlmaLinux9dotnet-sdk-6.0, dotnet-templates-6.0, dotnet-sdk-6.0-source-built-artifacts6.0.126-1.el9_3ALSA-2024:0156
AlmaLinux9dotnet-sdk-7.0, dotnet-templates-7.0, dotnet-sdk-7.0-source-built-artifacts7.0.115-1.el9_3ALSA-2024:0151
AlmaLinux9dotnet-sdk-8.0, dotnet-templates-8.0, netstandard-targeting-pack-2.1 and 1 more8.0.101-1.el9_3ALSA-2024:0152
Rocky Linux8dotnet6.00:6.0.126-1.el8_9RLSA-2024:0158
Rocky Linux8dotnet7.00:7.0.115-1.el8_9RLSA-2024:0157
Rocky Linux8dotnet8.00:8.0.101-1.el8_9RLSA-2024:0150
Alpinev3.19dotnet7-build7.0.115-r0ALPINE-CVE-2024-0057
Alpinev3.19dotnet7-runtime7.0.15-r0ALPINE-CVE-2024-0057
Alpinev3.19, v3.20dotnet6-build6.0.126-r0ALPINE-CVE-2024-0057
Alpinev3.19, v3.20dotnet6-runtime6.0.26-r0ALPINE-CVE-2024-0057

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

The ability for an attacker to exploit this vulnerability by presenting an arbitrary untrusted certificate with malformed signatures can lead to a breach in the application's authentication logic. This loophole poses a serious threat, as it could lead to unauthorized access, data breaches, and the compromise of sensitive information.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
.NET Core on Red Hat Enterprise Linuxrh-dotnet60-dotnet-0:6.0.126-1.el7_9Fixed 2024-01-15RHSA-2024:0255
Red Hat Enterprise Linux 8dotnet8.0-0:8.0.101-1.el8_9Fixed 2024-01-10RHSA-2024:0150
Red Hat Enterprise Linux 8dotnet7.0-0:7.0.115-1.el8_9Fixed 2024-01-10RHSA-2024:0157
Red Hat Enterprise Linux 8dotnet6.0-0:6.0.126-1.el8_9Fixed 2024-01-10RHSA-2024:0158
Red Hat Enterprise Linux 9dotnet7.0-0:7.0.115-1.el9_3Fixed 2024-01-10RHSA-2024:0151
Red Hat Enterprise Linux 9dotnet8.0-0:8.0.101-1.el9_3Fixed 2024-01-10RHSA-2024:0152
Red Hat Enterprise Linux 9dotnet6.0-0:6.0.126-1.el9_3Fixed 2024-01-10RHSA-2024:0156

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-0057.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON