Vulnerabilities in pkg:golang/github.com/nmstate/kubernetes-nmstate

PACKAGE
Advisory Identifier: GHSA-jw82-xjgr-g6f8
Advisory Summary

CVE-2020-1742 is a HIGH (CVSS 7.0) kubernetes-nmstate insecure privilege management vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Withdrawn Advisory libraries in the Go ecosystem. The issue involves kubernetes-nmstate insecure privilege management. Remediation is available in the latest vendor maintenance releases.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/nmstate/kubernetes-nmstate

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/nmstate/kubernetes-nmstate. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-jw82-xjgr-g6f8 CVE-2020-1742 HIGH Withdrawn Advisory: kubernetes-nmstate Insecure Privilege Management

CVE-2020-1742 at a Glance

CVE Identifier CVE-2020-1742
GHSA Identifier GHSA-jw82-xjgr-g6f8
Severity HIGH
CVSS v3.1 Base Score 7.0
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Withdrawn Advisory
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.0

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

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

How to Fix CVE-2020-1742

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

github.com/nmstate/kubernetes-nmstate fixed: Latest secure release
Upgrade github.com/nmstate/kubernetes-nmstate to Latest secure release
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 github.com/nmstate/kubernetes-nmstate

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-1742, inspect your project dependencies for Withdrawn Advisory:

inspect dependencies for github.com/nmstate/kubernetes-nmstate

Analyze the terminal output to locate any version of Withdrawn Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 Withdrawn Advisory, 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

## Withdrawn Advisory This advisory has been withdrawn. This link is maintained to preserve external references. ## Original Description An insecure modification vulnerability flaw was found in containers using nmstate/kubernetes-nmstate-handler. An attacker with access to the container could use this flaw to modify /etc/passwd and escalate their privileges. Versions before kubernetes-nmstate-handler-container-v2.3.0-30 are affected.

CVE-2020-1742 Affected Withdrawn Advisory Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/nmstate/kubernetes-nmstate
Go

References

Frequently Asked Questions

What is CVE-2020-1742?
CVE-2020-1742 is a security vulnerability in Withdrawn Advisory involving kubernetes-nmstate Insecure Privilege Management under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Withdrawn Advisory versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/nmstate/kubernetes-nmstate.
What version fixes CVE-2020-1742?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/nmstate/kubernetes-nmstate affected?
Yes, github.com/nmstate/kubernetes-nmstate is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2020-1742?
CVE-2020-1742 has a CVSS v3.1 base score of 7.0 (HIGH) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2020-1742?
CVE-2020-1742 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 Go dependencies for CVE-2020-1742?
Run the dependency tree command: 'inspect dependencies for github.com/nmstate/kubernetes-nmstate'. 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-jw82-xjgr-g6f8",
  "modified" : "2023-08-23T21:44:47Z",
  "published" : "2022-05-24T19:04:13Z",
  "withdrawn" : "2023-08-23T21:44:47Z",
  "aliases" : [ "CVE-2020-1742" ],
  "summary" : "Withdrawn Advisory: kubernetes-nmstate Insecure Privilege Management",
  "details" : "## Withdrawn Advisory\nThis advisory has been withdrawn. This link is maintained to preserve external references.\n\n## Original Description\nAn insecure modification vulnerability flaw was found in containers using nmstate/kubernetes-nmstate-handler. An attacker with access to the container could use this flaw to modify /etc/passwd and escalate their privileges. Versions before kubernetes-nmstate-handler-container-v2.3.0-30 are affected.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/nmstate/kubernetes-nmstate"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "< 2.3.0-30"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-1742"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1803608"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-269", "CWE-732" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-07-13T23:17:51Z",
    "nvd_published_at" : "2021-06-07T20:15:00Z"
  }
}