CVE-2019-0976: NuGet.Commands NuGet Package Manager Tampering Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-3hcm-6fjc-47qq
CVSS 5.5
CWE-732
Published
Advisory Summary

CVE-2019-0976 is a MODERATE (CVSS 5.5) nuget package manager tampering vulnerability vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting NuGet.Commands libraries in the NuGet ecosystem. The issue involves nuget package manager tampering vulnerability. Remediation is available by upgrading affected packages to version 5.0.2.

CVE-2019-0976 at a Glance

CVE Identifier CVE-2019-0976
GHSA Identifier GHSA-3hcm-6fjc-47qq
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product NuGet.Commands
Package Ecosystem NuGet
Published Date
Last Updated

Security Impact

CVSS: 5.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2019-0976

To remediate this vulnerability, upgrade all affected NuGet.Commands dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

NuGet.Commands fixed: 5.0.2
Upgrade NuGet.Commands to 5.0.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for NuGet.Commands

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-0976, inspect your project dependencies for NuGet.Commands:

inspect dependencies for NuGet.Commands

Analyze the terminal output to locate any version of NuGet.Commands in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-732: Incorrect Permission Assignment for Critical Resource, where the product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors. In NuGet.Commands, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

A tampering vulnerability exists in the NuGet Package Manager for Linux and Mac that could allow an authenticated attacker to modify contents of the intermediate build folder (by default `obj`), aka 'NuGet Package Manager Tampering Vulnerability'.

CVE-2019-0976 Affected NuGet.Commands Versions

1 component(s)
Fixed Versions:
5.0.2
Product / Package Ecosystem Affected Versions Fixed Version
NuGet.Commands
NuGet
≥ 5.0.0
< 5.0.2
5.0.2

References

Frequently Asked Questions

What is CVE-2019-0976?
CVE-2019-0976 is a security vulnerability in NuGet.Commands involving NuGet Package Manager Tampering Vulnerability under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which NuGet.Commands versions are affected?
Affected versions include releases prior to 5.0.2 across affected packages: NuGet.Commands.
What version fixes CVE-2019-0976?
Upgrading to 5.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is NuGet.Commands affected?
Yes, NuGet.Commands is affected in releases prior to 5.0.2. Upgrade your dependency to 5.0.2 or later.
What is the CVSS score of CVE-2019-0976?
CVE-2019-0976 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2019-0976?
CVE-2019-0976 is classified under CWE-732: Incorrect Permission Assignment for Critical Resource (The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.).
How can I check NuGet dependencies for CVE-2019-0976?
Run the dependency tree command: 'inspect dependencies for NuGet.Commands'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-3hcm-6fjc-47qq",
  "modified" : "2024-03-24T20:28:51Z",
  "published" : "2022-05-24T22:28:08Z",
  "aliases" : [ "CVE-2019-0976" ],
  "summary" : "NuGet Package Manager Tampering Vulnerability",
  "details" : "A tampering vulnerability exists in the NuGet Package Manager for Linux and Mac that could allow an authenticated attacker to modify contents of the intermediate build folder (by default `obj`), aka 'NuGet Package Manager Tampering Vulnerability'.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "NuGet",
      "name" : "NuGet.Commands"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0"
      }, {
        "fixed" : "5.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-0976"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/NuGet/Home/issues/7908"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/NuGet/NuGet.Client/commit/e32a2ea7096debd3e513188f6779bb1041593326"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/NuGet/NuGet.Client"
  }, {
    "type" : "WEB",
    "url" : "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2019-0976"
  }, {
    "type" : "WEB",
    "url" : "https://web.archive.org/web/20200227075944/http://www.securityfocus.com/bid/108210"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-732" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-24T20:28:51Z",
    "nvd_published_at" : "2019-05-16T19:29:00Z"
  }
}