Improper Access Control Affecting nuget.commandline package, versions [,5.11.6)[6.0.2,6.0.6)[6.1.0,6.3.4)[6.4.0,6.4.3)[6.5.0,6.6.2)[6.7.0,6.7.1)[6.8.0,6.8.1)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.12% (48th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Access Control vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DOTNET-NUGETCOMMANDLINE-6245711
  • published14 Feb 2024
  • disclosed9 Jan 2024
  • creditVishal Mishra, Anita Gaud, Stav Nir

Introduced: 9 Jan 2024

CVE-2024-0057  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade NuGet.CommandLine to version 5.11.6, 6.0.6, 6.3.4, 6.4.3, 6.6.2, 6.7.1, 6.8.1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Access Control when using X.509 chain building APIs but do not completely validate the X.509 certificate due to a logic flaw. An attacker could present an arbitrary untrusted certificate with malformed signatures, triggering a bug in the framework. The framework will correctly report that X.509 chain building failed, but it will return an incorrect reason code for the failure. Applications which utilize this reason code to make their own chain building trust decisions may inadvertently treat this scenario as a successful chain build. This could allow an adversary to subvert the app's typical authentication logic.

CVSS Scores

version 3.1