CVE-2020-1701: Kubevirt.io/kubevirt Permissions Bypass Vulnerability

MODERATE
Advisory Identifier: GHSA-849r-8wvp-4wwg
CVSS 6.5
CWE-732
Published
Advisory Summary

CVE-2020-1701 is a MODERATE (CVSS 6.5) permissions bypass vulnerability (CWE-732: Incorrect Permission Assignment for Critical Resource) affecting Kubevirt.io/kubevirt libraries in the Go ecosystem. The issue involves permissions bypass in kubevirt. Remediation is available by upgrading affected packages to version 0.26.0.

CVE-2020-1701 at a Glance

CVE Identifier CVE-2020-1701
GHSA Identifier GHSA-849r-8wvp-4wwg
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-732: Incorrect Permission Assignment for Critical Resource
Affected Product Kubevirt.io/kubevirt
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

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

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

How to Fix CVE-2020-1701

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

kubevirt.io/kubevirt fixed: 0.26.0
Upgrade kubevirt.io/kubevirt to 0.26.0
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 kubevirt.io/kubevirt

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-1701, inspect your project dependencies for Kubevirt.io/kubevirt:

inspect dependencies for kubevirt.io/kubevirt

Analyze the terminal output to locate any version of Kubevirt.io/kubevirt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.26.0), 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 Kubevirt.io/kubevirt, 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 flaw was found in the KubeVirt main virt-handler versions before 0.26.0 regarding the access permissions of virt-handler. An attacker with access to create VMs could attach any secret within their namespace, allowing them to read the contents of that secret.

CVE-2020-1701 Affected Kubevirt.io/kubevirt Versions

1 component(s)
Fixed Versions:
0.26.0
Product / Package Ecosystem Affected Versions Fixed Version
kubevirt.io/kubevirt
Go
< 0.26.0
0.26.0

References

Frequently Asked Questions

What is CVE-2020-1701?
CVE-2020-1701 is a security vulnerability in Kubevirt.io/kubevirt involving Permissions bypass in KubeVirt under CWE-732: Incorrect Permission Assignment for Critical Resource.
Which Kubevirt.io/kubevirt versions are affected?
Affected versions include releases prior to 0.26.0 across affected packages: kubevirt.io/kubevirt.
What version fixes CVE-2020-1701?
Upgrading to 0.26.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is kubevirt.io/kubevirt affected?
Yes, kubevirt.io/kubevirt is affected in releases prior to 0.26.0. Upgrade your dependency to 0.26.0 or later.
What is the CVSS score of CVE-2020-1701?
CVE-2020-1701 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2020-1701?
CVE-2020-1701 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-1701?
Run the dependency tree command: 'inspect dependencies for kubevirt.io/kubevirt'. 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-849r-8wvp-4wwg",
  "modified" : "2024-04-24T21:33:44Z",
  "published" : "2021-06-01T18:40:38Z",
  "aliases" : [ "CVE-2020-1701" ],
  "summary" : "Permissions bypass in KubeVirt",
  "details" : "A flaw was found in the KubeVirt main virt-handler versions before 0.26.0 regarding the access permissions of virt-handler. An attacker with access to create VMs could attach any secret within their namespace, allowing them to read the contents of that secret.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "kubevirt.io/kubevirt"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.26.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-1701"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubevirt/kubevirt/issues/2967"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubevirt/containerized-data-importer/pull/1098"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubevirt/kubevirt/pull/3001"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kubevirt/kubevirt/commit/9efa8d7388d4fe1c698c6980aa7122c06bd141be"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1792092"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kubevirt/kubevirt"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-732" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-04-24T21:33:44Z",
    "nvd_published_at" : "2021-05-27T20:15:00Z"
  }
}