CVE-2020-26278
Weave Net Pods running in host PID namespace can be used to escalate other Kubernetes vulnerabilities
Check your servers for CVE-2020-26278
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2020-26278 affects weave, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- changed: the damage reaches other components, such as the host of a container or other users
- Impact
- confidentiality none, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.74%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 56.0% of all scored CVEs. Scores of 1 Dec 2026.
Weakness
- CWE-250 Execution with Unnecessary Privileges
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| weave |
affected < 2.8.0
|
Is my server affected?
Find the installed version of weave and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i weave
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2020-26278 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2020-26278RHEL, Rocky, Alma, Fedora
rpm -q weave
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2020-26278Alpine
apk list --installed | grep -i weaveWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2020-26278
trivy image --scanners vuln IMAGE | grep CVE-2020-26278
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://github.com/weaveworks/weave/commit/a0ac81b3b4cae6d0dcaf3732fd91cedefc89f720 github.com
- https://github.com/weaveworks/weave/pull/3876 github.com
- https://github.com/weaveworks/weave/blob/master/CHANGELOG.md#release-280 github.com
Source: the record CVE-2020-26278 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse