SecurityContext

CVE-2020-26278: Weave Net - Privilege Escalation

  • Cve: CVE-2020-26278
  • Name: Weave Net - Privilege Escalation
  • Description: Weave Net is open source software which creates a virtual network that connects Docker containers across multiple hosts and enables their automatic discovery. Weave Net before version 2.8.0 has a vulnerability in which can allow an attacker to take over any host in the cluster. Weave Net is supplied with a manifest that runs pods on every node in a Kubernetes cluster, which are responsible for managing network connections for all other pods in the cluster. This requires a lot of power over the host, and the manifest sets `privileged: true`, which gives it that power. It also set `hostPID: true`, which gave it the ability to access all other processes on the host, and write anywhere in the root filesystem of the host. This setting was not necessary, and is being removed. You are only vulnerable if you have an additional vulnerability (e.g. a bug in Kubernetes) or misconfiguration that allows an attacker to run code inside the Weave Net pod, No such bug is known at the time of release, and there are no known instances of this being exploited. Weave Net 2.8.0 removes the hostPID setting and moves CNI plugin install to an init container. Users who do not update to 2.8.0 can edit the hostPID line in their existing DaemonSet manifest to say false instead of true, arrange some other way to install CNI plugins (e.g. Ansible) and remove those mounts from the DaemonSet manifest.
  • Impact: Attackers with code execution inside the Weave Net pod can potentially take over entire cluster hosts, leading to full cluster compromise.
  • Remediation: Update to version 2.8.0 or later, or modify existing DaemonSet manifest to set 'hostPID: false' and remove unnecessary mounts, and avoid running untrusted code inside the pod.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: privilege_escalation
  • Requirement type: logged_in
  • Requirements: Attacker needs to run code inside the Weave Net pod, which requires existing vulnerability or misconfiguration.
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8
  • Cvss vector: CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
  • Epss score: 0.00745
  • Epss percentile: 0.55528
  • Assignee: [email protected]
  • Published at: 2021-01-20T22:15:11Z
  • Age in days: 2134
  • Modified at: 2026-06-17T03:07:59Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-26278
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-250Execution with Unnecessary Privileges

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/weaveworks/weave/commit/a0ac81b3b4cae6d0dcaf3732fd91cedefc89f720Patch, Third Party Advisory
https://github.com/weaveworks/weave/pull/3876Patch, Third Party Advisory
https://github.com/weaveworks/weave/blob/master/CHANGELOG.md#release-280Release Notes, Third Party Advisory
https://github.com/weaveworks/weave/security/advisories/GHSA-pg3p-v8c6-c6h3Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
weave:weave< 2.8.0nonvd/v1/products/weave/weave

Projects

RepositoryLink kindsIndexedUrl
weaveworks/weavecommit, pull, security_advisoryyes/v1/repositories/weaveworks/weave

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts